Hello,
I have a page at http://ari.asu.edu/AZSite that displays points,
lines, and polygons from a MySQL Spatial database, loaded onto the map
via an Ajax call (click the link shown below the map to see what the
Ajax call returns, and then view source to see it as sent from the
browser).
Each shape is given a listener on the click event, which is
supposed to open the info balloon and display a short message. The
message is a link that executes the showPlace function (that for now
just does an alert, but will run another Ajax call that will populate
the green area on the screen with info from the MySQL database for the
record ). The listeners take this form:
GEvent.addListener(map, 'click', function(point0, point) { var myHTML
= "<a href='#' onClick='showPlace(9772)'>84-32</a>";
map.openInfoWindowHtml(point, myHTML);});
Currently, when the user click on any of the shapes, An error is
thrown from line 554 in the API script (not my script), that says,
'undefined' is null or not an object.
What's the cause of this error? I suspect it's something in my Ajax
call that's returning impropoerly set up shapes, but can't quite
figure it out.
Thanks,
-Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---