Dynamic draggable map
Dynamic draggable map
I have been working on a map, that is dynamically updated using jquery. the map is set up so that each 'cell'/location on the map is an object/image. Contents are stored in a database, and accessed via PHP.
When you mouse over an image, a tooltip pops up with the cell's content information. When you click on the cell, a function is called, and actions are performed accordingly.
Right now, i have a call that updates all the cells in the view that is performed when the 'refresh' button is hit.
This works just fine, but as it is, you have to chose new coordinates to change the display contents.
I would like for the ability to actually Click & Drag inside the map, to drag the map to navigate throughout, dynamically loading the cells outside of your current view when you navigate there.
However, i've not been able to think of a good way to accomplish this....
Everyone i've asked has said the best way to do this would probably be via jQuery... thus my post :)
Any ideas of how to accomplish this, or inklings of any ideas would be appreciated :D