fixing minor issues

revert-70aa11f8
lasantha 7 years ago
parent 8376948013
commit c2d8c6522b

@ -156,7 +156,7 @@ SpatialObject.prototype.update = function (geoJSON) {
/* /*
//This is implemented in alertWebSocket //This is implemented in alertWebSocket
if (this.state != "NORMAL") { if (this.state != "NORMAL") {
notifyArt("Object ID: <span style='color: blue;cursor: pointer' onclick='focusOnSpatialObject(" + this.id + ")'>" + this.id + "</span> change state to: <span style='color: red'>" + geoJSON.properties.state + "</span> Info : " + this.information); notifyAlert("Object ID: <span style='color: blue;cursor: pointer' onclick='focusOnSpatialObject(" + this.id + ")'>" + this.id + "</span> change state to: <span style='color: red'>" + geoJSON.properties.state + "</span> Info : " + this.information);
}*/ }*/
var newLineStringGeoJson = this.createLineStringFeature(this.state, this.information, [this.latitude, this.longitude]); var newLineStringGeoJson = this.createLineStringFeature(this.state, this.information, [this.latitude, this.longitude]);
this.pathGeoJsons.push(newLineStringGeoJson); this.pathGeoJsons.push(newLineStringGeoJson);
@ -561,6 +561,8 @@ var webSocketOnAlertMessage = function processMessage(message) {
var json = $.parseJSON(message.data); var json = $.parseJSON(message.data);
if (json.messageType == "Alert") { if (json.messageType == "Alert") {
processAlertMessage(json); processAlertMessage(json);
}else {
console.log("Message type not supported.");
} }
} }
}; };

Loading…
Cancel
Save