mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Adding the focus point for map
This commit is contained in:
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…
Reference in New Issue
Block a user