A little introduction:
I am creating a map of the town I live in. The map will be used by a group of volunteers that can mark locations on the map that need maintenance or litter picking.
What I have so far is..
- A map of the town with zoom and move functions either by pressing buttons (sprites) or by using the mouse.
- A red and green button (sprites) which will activate the marking process.
When clicked all buttons will go invisible and a colored pin starts following the mouse.
When you click on the map after that you place the pin on the map. That pin will then also be moved with the zoom and scroll functions of the map. All buttons will become visible again allowing you to add another marker.
My question is..
How do I store the markers placed on the map to a database?
And how do I load them again when someone else opens the webpage with the map?
So just for the record.. I want everyone to use the same saved data and add to it or change it.
Some red markers will for example be changed into a green one when some problem area has been taken care of.
I also want to add the users name (from a variable set on login) to the marker and add the date when the marker was placed so these will also have to be stored.
Can I make a textballoon like way of showing this user name and date when an existing marker is clicked?
Have a look at the capx if you want..
https://dl.dropboxusercontent.com/u/175 ... rkers.capx
Thanks for reading,
The name of the placed markers/ pins are 'pingreenplaced' and 'pinredplaced'. They are on layer 2.
They will be placed by CanvasToLayer because the layer is being scaled when zooming in and out. So the mouse position doesn't always directly correspond to the visual spot on the layer. I hope this makes sense.