diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-29 15:25:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-29 15:25:43 +1200 |
commit | 8fb41926d958364b812a8777593c7bfb14184a6b (patch) | |
tree | f8c595e67735d9a1a374c810ce7693d8ba7f6ee0 /web | |
parent | f7198adaf371e08a72a837d417b29531c117c6ba (diff) | |
download | trackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.tar.gz trackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.tar.bz2 trackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.zip |
Set Bing as default layer
Diffstat (limited to 'web')
-rw-r--r-- | web/MapView.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/web/MapView.js b/web/MapView.js index 6e9ca0325..33e0b348a 100644 --- a/web/MapView.js +++ b/web/MapView.js @@ -24,14 +24,21 @@ Ext.define('MapView', { listeners: { afterrender: function() { - /*var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ - key: 'AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F', + var bindKey = 'AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F'; + + var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ + key: bindKey, imagerySet: 'Road' - })});*/ + })}); - var layer = new ol.layer.Tile({ source: new ol.source.OSM({ + /*var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ + key: bindKey, + imagerySet: 'Aerial' })}); + var layer = new ol.layer.Tile({ source: new ol.source.OSM({ + })});*/ + var view = new ol.View({ center: ol.proj.transform(Styles.map_center, 'EPSG:4326', 'EPSG:3857'), zoom: Styles.map_zoom, |