From 8fb41926d958364b812a8777593c7bfb14184a6b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 29 Apr 2015 15:25:43 +1200 Subject: Set Bing as default layer --- web/MapView.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'web/MapView.js') 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, -- cgit v1.2.3