(1) The "a is null" error that you see in your error log (in single-pass
browsers) comes from the fact that you do this
var map=new GMap2(document.getElementById("map"));
before the browser has seen this
<div id="map"></div>
none of the following code in that file gets executed after that crash.
As it happens, you've got a second
map=new GMap2(document.getElementById('map'));
in function myOnLoad() which creates another map in the same place.
(2) The "html is not defined" error comes from this line in function
myOnLoad()
var control=new HtmlControl(html);
You have to provide some sort of content for the HtmlControl().
(3) If you want to display property information in your info window,
then you have to pass the info to your Javascript somehow. As things
stand, the only information you have about each property is 'id', 'lat'
and 'lng'. If, say, you had a 'html' setting for your properties, then
you could pass json[i].html as an additional parameter to function
newMarker() and use that in the marker.openInfoWindowHtml() call.
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---