1

I want to create a free/simple web map where users can click & drag to select polygons in the map, then once selected, choose a color for all selected polygons. The map should also maintain these changes even after the user is done (not just browser-side styling).

For example: A simple web map containing polygons of the 50 US states is created. Dave opens the page, clicks & drags to select Texas and New Mexico, and chooses the color red, which colors both states red at once. Later, John opens the page and sees that Texas & NM are red, and then clicks and drags to select New Mexico, Arizona and California and changes their color to blue at once.

I'm experienced in using various mapping libraries (ArcGIS JS API, Google Maps API, Leaflet, etc), so it doesn't really matter which I use, but it just needs to be as simple as possible and free (e.g. no ArcGIS Server). This isn't a commercial application - purely recreational, but I can't seem to think of a simple solution for this.

0

If you want values to be remembered, you're going to need some way to store them (a database) and some way to serve them up using middleware.

The "standards" way would be in the case of middleware to use WFS-T (i.e. supported by GeoServer or TinyOWS if you have a MapServer predilection).

It'd work something like:

  • Client requests Polygons via WFS and receives them.
  • Polygons are styled based on an attribute.
  • User selects polygon and changes colour.
  • Mapping Library of choice turns this into a WFS-T request to update the attribute and returns it to the server.
  • Server updates database.

I don't know how "simple" this is though; I've not dabbled with WFS-T myself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.