diff options
Diffstat (limited to 'web/app/view/map/Map.js')
-rw-r--r-- | web/app/view/map/Map.js | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js index a43df40e1..8062db8e9 100644 --- a/web/app/view/map/Map.js +++ b/web/app/view/map/Map.js @@ -72,21 +72,7 @@ Ext.define('Traccar.view.map.Map', { this.vectorSource = new ol.source.Vector({}); var vectorLayer = new ol.layer.Vector({ - source: this.vectorSource, - style: new ol.style.Style({ - text: new ol.style.Text({ - text: '\uf041', - font: 'normal 32px FontAwesome', - textBaseline: 'Bottom', - fill: new ol.style.Fill({ - color: 'red' - }), - stroke: new ol.style.Stroke({ - color: 'black', - width: 2 - }) - }) - }) + source: this.vectorSource }); var view = new ol.View({ @@ -101,12 +87,6 @@ Ext.define('Traccar.view.map.Map', { view: view }); - var iconFeature = new ol.Feature({ - geometry: new ol.geom.Point(ol.proj.fromLonLat([-1.257778, 51.751944])) - }); - - this.vectorSource.addFeature(iconFeature); - //this.update(); }, |