aboutsummaryrefslogtreecommitdiff
path: root/web/MapView.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-02 16:35:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-02 16:35:10 +1300
commitb79c04d23c386198a5b62a9dc0f874f9c2d05d02 (patch)
treeca4d8a38446b35ed1049b01dcaee9403af66ca8c /web/MapView.js
parent902059bc467536ff11647af1cf2a61f776213841 (diff)
downloadtrackermap-server-b79c04d23c386198a5b62a9dc0f874f9c2d05d02.tar.gz
trackermap-server-b79c04d23c386198a5b62a9dc0f874f9c2d05d02.tar.bz2
trackermap-server-b79c04d23c386198a5b62a9dc0f874f9c2d05d02.zip
Add Bing Maps init code
Diffstat (limited to 'web/MapView.js')
-rw-r--r--web/MapView.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/web/MapView.js b/web/MapView.js
index c248f02eb..4cc809860 100644
--- a/web/MapView.js
+++ b/web/MapView.js
@@ -23,9 +23,14 @@ Ext.define('MapView', {
listeners: {
afterrender: function() {
- var osm = new ol.layer.Tile({
- source: new ol.source.OSM({})
- });
+
+ /*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 view = new ol.View({
center: ol.proj.transform(styles.map_center, 'EPSG:4326', 'EPSG:3857'),
@@ -35,7 +40,7 @@ Ext.define('MapView', {
this.map = new ol.Map({
target: this.body.dom.id,
- layers: [ osm ],
+ layers: [ layer ],
view: view
});
},