Adding the focus point for map

revert-dabc3590
Megala 8 years ago
parent 02f87e7531
commit 363dedaedd

@ -138,6 +138,7 @@ SpatialObject.prototype.update = function (geoJSON) {
if (selectedSpatialObject == this.id) { if (selectedSpatialObject == this.id) {
this.updatePath([geoJSON.geometry.coordinates[1], geoJSON.geometry.coordinates[0]]); this.updatePath([geoJSON.geometry.coordinates[1], geoJSON.geometry.coordinates[0]]);
chart.load({columns: [this.speedHistory.getArray()]}); chart.load({columns: [this.speedHistory.getArray()]});
map.setView([this.latitude, this.longitude]);
} }
// TODO: use general popup DOM // TODO: use general popup DOM

Loading…
Cancel
Save