FusionMaps does 99.9% of what I need. But after poring through the documentation I can not find out how to do something I thought would be very simple.
I need to add an onClick() handler to the county-level map views. When a county is clicked on, I need to initiate a remote scripting call to a web service and unhide a DIV that will display the data returned for the county clicked on.
Since the map is a Flash object, I am guessing that you can't have a DIV floating on top of the map and any mouse events will be handled by Flash and not JS.
This product is great for updating and displaying maps based on existing data - but how do you use the maps as an interface to updating the data? The Javascript API seems to only deal with displaying data.
If I knew what I was trying to do was impossible then I could drop any further consideration of purchasing this product. If it is possible, how do you add a simple onClick handler to the county map view?
Basically, the onClick handler would pass the county clicked on to a web service which would return data about that county. I would then display a hidden DIV and use that data to check checkboxes within that DIV. As the user then checked and unchecked the checkboxes, I would potentially change the color of the county on the state map and when the user hit the "Save" button in the DIV I would send the checkbox states back to the web service and re-hide the DIV - returning the system state to what it was before the county was clicked on.
To do that in Javascript on an HTML page would only take a few dozen lines of code and about 10 minutes (assuming the web service already exists - which it does).
How do I do that with this product?
Or do I need to attack it from the Flash side? Hiding and un-hiding a Flash object that does the same thing?
What I want to avoid if possible is adding a frame to hold the DIV with the checkboxes because that looks very ugly.
Thanks!