From 0b166ca5fc20f7b857b214209df2ce8c23eb168c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 3 Feb 2015 12:11:21 +1300 Subject: Use static Ext classes --- web/MapView.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web/MapView.js') diff --git a/web/MapView.js b/web/MapView.js index 4cc809860..6e9ca0325 100644 --- a/web/MapView.js +++ b/web/MapView.js @@ -18,24 +18,24 @@ Ext.define('MapView', { extend: 'Ext.form.Panel', xtype: 'map-view', - title: strings.map_title, + title: Strings.map_title, layout: 'fit', listeners: { afterrender: function() { - /*var layer = new ol.layer.Tile({source: new ol.source.BingMaps({ + /*var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ key: 'AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F', imagerySet: 'Road' })});*/ - var layer = new ol.layer.Tile({source: new ol.source.OSM({ + 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, - maxZoom: styles.map_max_zoom + center: ol.proj.transform(Styles.map_center, 'EPSG:4326', 'EPSG:3857'), + zoom: Styles.map_zoom, + maxZoom: Styles.map_max_zoom }); this.map = new ol.Map({ -- cgit v1.2.3