diff options
Diffstat (limited to 'chimere/static')
| -rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index a73ff49..9927f9b 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -156,6 +156,18 @@ function transform(obj) { new OpenLayers.Pixel(0, -32)); } */ + if (defaults.map_layers == null || defaults.map_layers == []){ + defaults.map_layers = [ + new ol.layer.Tile({ + style: 'Road', + source: new ol.source.MapQuest({layer: 'osm'}) + }), + new ol.layer.Tile({ + style: 'Aerial', + visible: false, + source: new ol.source.MapQuest({layer: 'sat'}) + })]; + } settings = $.extend({}, defaults); if ( options ) $.extend(settings, options); |
