diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-03 12:11:21 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-03 12:11:21 +1300 |
commit | 0b166ca5fc20f7b857b214209df2ce8c23eb168c (patch) | |
tree | e3fb767807c57fed490fb8967a310921217ba5a8 /web/MapView.js | |
parent | b79c04d23c386198a5b62a9dc0f874f9c2d05d02 (diff) | |
download | trackermap-server-0b166ca5fc20f7b857b214209df2ce8c23eb168c.tar.gz trackermap-server-0b166ca5fc20f7b857b214209df2ce8c23eb168c.tar.bz2 trackermap-server-0b166ca5fc20f7b857b214209df2ce8c23eb168c.zip |
Use static Ext classes
Diffstat (limited to 'web/MapView.js')
-rw-r--r-- | web/MapView.js | 12 |
1 files changed, 6 insertions, 6 deletions
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({ |