Reputation: 1216
is there any webservice that could display features on the map (openlayers) from PostGIS.
This would be the flow:
Features (points, polygons, multilines) are fetched from the server and displayed with info boxes if one exists
Server (PostGIS) gets update with new features
Tnx.
Upvotes: 0
Views: 74
Reputation: 1216
This is the way I solved it.
GeoJson is provided through service.
Websocket is opened on the map and used to send "refresh" command
DB gets new points, send message through websocket, map updates according to that through GeoJson.
It works for me, cannot say that this is good approach, stay back - beware dragons there!
Upvotes: 1