Tag Info

New answers tagged


You could issue a AJAX request to your PHP service. In Javascript, add an event listener to your radio buttons that listens for change events. In the listener, issue the AJAX request to your PHP service. Handle the response of the PHP server in the AJAX callback and update your map.


What you are looking for is a way to represent binary geometry as a string so you can easily pass it to the map. See PostGIS geometry outputs section of the docs. You might want to look into GeoJSON a bit.

Top 50 recent answers are included