|
|
@ -166,13 +166,16 @@ function angleToHeading(angle) {
|
|
|
|
SpatialObject.prototype.removeFromMap = function () {
|
|
|
|
SpatialObject.prototype.removeFromMap = function () {
|
|
|
|
this.removePath();
|
|
|
|
this.removePath();
|
|
|
|
this.marker.closePopup();
|
|
|
|
this.marker.closePopup();
|
|
|
|
|
|
|
|
map.removeLayer(this.marker);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function clearMap() {
|
|
|
|
function clearMap() {
|
|
|
|
for (var i=0; i< currentSpatialObjects.length; i++ ){
|
|
|
|
for (var spacialObject in currentSpatialObjects) {
|
|
|
|
console.log("removed - " + currentSpatialObjects[i]);
|
|
|
|
console.log(spacialObject);
|
|
|
|
currentSpatialObjects[i].removeFromMap();
|
|
|
|
currentSpatialObjects[spacialObject].removePath();
|
|
|
|
|
|
|
|
currentSpatialObjects[spacialObject].removeFromMap();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
currentSpatialObjects = {};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SpatialObject.prototype.createLineStringFeature = function (state, information, coordinates) {
|
|
|
|
SpatialObject.prototype.createLineStringFeature = function (state, information, coordinates) {
|
|
|
@ -702,7 +705,7 @@ function intializeWebsocketUrls() {
|
|
|
|
ApplicationOptions.constance.PATH_SEPARATOR + ApplicationOptions.constance
|
|
|
|
ApplicationOptions.constance.PATH_SEPARATOR + ApplicationOptions.constance
|
|
|
|
.CEP_ON_ALERT_WEB_SOCKET_OUTPUT_ADAPTOR_NAME + ApplicationOptions.constance.PATH_SEPARATOR + ApplicationOptions.constance.VERSION
|
|
|
|
.CEP_ON_ALERT_WEB_SOCKET_OUTPUT_ADAPTOR_NAME + ApplicationOptions.constance.PATH_SEPARATOR + ApplicationOptions.constance.VERSION
|
|
|
|
+ "?deviceId=" + deviceId + "&deviceType=" + deviceType;
|
|
|
|
+ "?deviceId=" + deviceId + "&deviceType=" + deviceType;
|
|
|
|
document.cookie = "websocket-token=f98d6142-e988-3c7f-a8c9-7e6d74da7113; path=/";
|
|
|
|
document.cookie = "websocket-token=619e6170-10e8-31f0-904b-b7770d53e545; path=/";
|
|
|
|
$("#proximity_alert").hide();
|
|
|
|
$("#proximity_alert").hide();
|
|
|
|
initializeWebSocket();
|
|
|
|
initializeWebSocket();
|
|
|
|
initializeOnAlertWebSocket();
|
|
|
|
initializeOnAlertWebSocket();
|
|
|
@ -720,7 +723,6 @@ function intializeWebsocketUrls() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
intializeWebsocketUrls();
|
|
|
|
intializeWebsocketUrls();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|