aboutsummaryrefslogtreecommitdiff
path: root/web/MapView.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 15:25:43 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 15:25:43 +1200
commit8fb41926d958364b812a8777593c7bfb14184a6b (patch)
treef8c595e67735d9a1a374c810ce7693d8ba7f6ee0 /web/MapView.js
parentf7198adaf371e08a72a837d417b29531c117c6ba (diff)
downloadtrackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.tar.gz
trackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.tar.bz2
trackermap-server-8fb41926d958364b812a8777593c7bfb14184a6b.zip
Set Bing as default layer
Diffstat (limited to 'web/MapView.js')
-rw-r--r--web/MapView.js15
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,