Closed miguelgfierro closed 5 years ago
"dataProvider": { "map": "worldLow", "images": [ { "latitude": 40.3951, "longitude": -73.5619, "type": "circle", "color": "#6c00ff" } ] }
There is something odd happening, if I remove everything and just leave in JS:
// Handler for health signal
socket.on("health_signal", function (msg) {
console.log("Response from server: " + msg.data + " (note: " + msg.note + ")");
});
and in python:
# Health end point
@app.route('/health')
def health_check():
socketio.emit('health_signal',
{'data': 'HEALTH CHECK', 'note': 'OK'},
broadcast=True)
return make_response(jsonify({'health': 'OK'}), STATUS_OK)
in the browser I don't see the logs. I have to start from scratch just with the health point in python and JS, and then build up from there
The way to add a new image is:
map.dataProvider.images.push(newLocation);
.Still there is an error because when doing:
and calling the API:
I don't see any logs