Hi there,
I’m going to be serving map tiles from GeoServer to Google Maps. Great.
I also have a ton of markers that I need to place on the maps too. I’m thinking that I’ll send them down via AJAX/REST as JSON. Just wondering if I should store the data / have it served by GeoServer (where I’m sure it can filter data according to location), or if I should just create a simple MySQL database and write some code to send the JSON down to Google Maps.
What I like about using GeoServer (however that is done / if it can be done) is that I have all my data in one place.
What I like about using MySQL / Servlet is that I’m a developer and it will make it really quick, simple and easy to develop.
I’d love to hear some of your thoughts.
Mark van Wyk
Email: mark@anonymised.com
Mobile: 082 831 9227
Hi Mark,
Just a suggestion to store both your map data for the map tiles and the markers in PostGIS. Now you have all in one place. Then have GeoServer render the tiles and create a servlet that connects to PostGIS and serves up some JSON of the markers that fall within the bbox from Google Maps. You may also want to look into some of the Cluster managers that have been developed for Google maps in case you are indeed serving “tons of markers” as you mentioned. Be aware some browsers will choke at too many markers (i.e. divs) sooner than others… In that case, you may even want to serve your markers as tiles.
Regards,
Edward
Date: Fri, 10 Jun 2011 16:04:23 +0200
From: mark@anonymised.com127…
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Google Map Markers - GeoServer or Servlet
Hi there,
I’m going to be serving map tiles from GeoServer to Google Maps. Great.
I also have a ton of markers that I need to place on the maps too. I’m thinking that I’ll send them down via AJAX/REST as JSON. Just wondering if I should store the data / have it served by GeoServer (where I’m sure it can filter data according to location), or if I should just create a simple MySQL database and write some code to send the JSON down to Google Maps.
What I like about using GeoServer (however that is done / if it can be done) is that I have all my data in one place.
What I like about using MySQL / Servlet is that I’m a developer and it will make it really quick, simple and easy to develop.
I’d love to hear some of your thoughts.
Mark van Wyk
Email: mark@anonymised.com
Mobile: 082 831 9227
------------------------------------------------------------------------------ EditLive Enterprise is the world’s most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
On 10 June 2011 10:48, Edward Mac Gillavry <emacgillavry@anonymised.com> wrote:
Hi Mark,
Just a suggestion to store both your map data for the map tiles and the markers in PostGIS. Now you have all in one place. Then have GeoServer render the tiles and create a servlet that connects to PostGIS and serves up some JSON of the markers that fall within the bbox from Google Maps. You may also want to look into some of the Cluster managers that have been developed for Google maps in case you are indeed serving “tons of markers” as you mentioned. Be aware some browsers will choke at too many markers (i.e. divs) sooner than others… In that case, you may even want to serve your markers as tiles.
It would be simpler to use WFS to send JSON back to the map from GeoServer.
Ian
Ian Turton