From b79c04d23c386198a5b62a9dc0f874f9c2d05d02 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 Feb 2015 16:35:10 +1300 Subject: Add Bing Maps init code --- web/MapView.js | 13 +++++++++---- web/index.html | 18 +++++++++--------- 2 files changed, 18 insertions(+), 13 deletions(-) (limited to 'web') 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 }); }, diff --git a/web/index.html b/web/index.html index 2fa9304c5..ef4900bfb 100644 --- a/web/index.html +++ b/web/index.html @@ -1,15 +1,15 @@ - Traccar - - - - - - - - +Traccar + + + + + + + + -- cgit v1.2.3