From f47349508d3a2dc2e78c30ebb42c24a65abcfa62 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 29 May 2015 23:03:53 +1200 Subject: Show live data on map --- web/app/view/map/Map.js | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'web/app/view/map/Map.js') diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js index 8062db8e9..449293e2f 100644 --- a/web/app/view/map/Map.js +++ b/web/app/view/map/Map.js @@ -26,47 +26,10 @@ Ext.define('Traccar.view.map.Map', { title: strings.map_title, layout: 'fit', - - /*update: function() { - Ext.Ajax.request({ - scope: this, - url: '/api/async', - success: function(response) { - var data = Ext.decode(response.responseText).data; - - var i; - for (i = 0; i < data.length; i++) { - var iconFeature = new ol.Feature({ - geometry: new ol.geom.Point([30, 30]) - }); - this.vectorSource.addFeature(iconFeature); - } - - this.update(); - }, - failure: function() { - // error - } - }); - },*/ listeners: { afterrender: function() { - var transform = this.transform; - - /*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.BingMaps({ - key: bindKey, - imagerySet: 'Aerial' - })});*/ - var layer = new ol.layer.Tile({ source: new ol.source.OSM({ })}); @@ -86,8 +49,6 @@ Ext.define('Traccar.view.map.Map', { layers: [ layer, vectorLayer ], view: view }); - - //this.update(); }, resize: function() { -- cgit v1.2.3