mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Few more improvements into geo-dashboard
This commit is contained in:
parent
3fd2c6b705
commit
c8d41c7b3e
@ -482,7 +482,7 @@
|
|||||||
<h6>Speed<span class="label label-primary pull-right"><span id="speed"></span> km/h</span></h6>
|
<h6>Speed<span class="label label-primary pull-right"><span id="speed"></span> km/h</span></h6>
|
||||||
<h6>Heading<span id="heading" class="label label-primary pull-right"></span></h6>
|
<h6>Heading<span id="heading" class="label label-primary pull-right"></span></h6>
|
||||||
<button type="button" class="btn btn-info btn-xs" onClick="toggleSpeedGraph();return false;">Speed Graph</button>
|
<button type="button" class="btn btn-info btn-xs" onClick="toggleSpeedGraph();return false;">Speed Graph</button>
|
||||||
<button type="button" class="btn btn-info btn-xs" onClick="focusOnSpatialObject(document.getElementById('objectId').innerHTML);return false;">Recent History</button>
|
<button type="button" class="btn btn-info btn-xs" onClick="focusOnRecentHistorySpatialObject();return false;">Recent History</button>
|
||||||
<button type="button" class="btn btn-info btn-xs" onClick="popupDateRange();">Full History</button>
|
<button type="button" class="btn btn-info btn-xs" onClick="popupDateRange();">Full History</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -703,9 +703,9 @@
|
|||||||
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/stationery_alert.html',
|
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/stationery_alert.html',
|
||||||
'Add Stationary Alert', 'glyphicon glyphicon-link', geoToolsMenu);
|
'Add Stationary Alert', 'glyphicon glyphicon-link', geoToolsMenu);
|
||||||
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/within_alert.html',
|
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/within_alert.html',
|
||||||
'Add Geo Fence Enter Alert', 'glyphicon glyphicon-edit', geoToolsMenu);
|
'Add Geo Fence Enter Alert', 'glyphicon glyphicon-log-in', geoToolsMenu);
|
||||||
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/exit_alert.html',
|
createGeoToolListItem(geoPublicUri + '/assets/html_templates/modal/exit_alert.html',
|
||||||
'Add Geo Fence Exit Alert', 'glyphicon glyphicon-edit', geoToolsMenu);
|
'Add Geo Fence Exit Alert', 'glyphicon glyphicon-log-out', geoToolsMenu);
|
||||||
{{/if}}
|
{{/if}}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -144,7 +144,9 @@ 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()]});
|
if (speedGraphControl) {
|
||||||
|
chart.load({columns: [this.speedHistory.getArray()]});
|
||||||
|
}
|
||||||
map.setView([this.latitude, this.longitude]);
|
map.setView([this.latitude, this.longitude]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user