Re: Map not visible
The problem here is that at the time you call
var map = new GMap(document.getElementById("map"));
your map <div> hasn't been created, so the GMap creator fails ("a has no
properties").
You Javascript needs to be executed after the browser has seen
<div id="map" style="width: 400px; height: 320px"></div>
That either means putting it at the end of your HTML (outside any <div>
or <table>, otherwise IE won't be able to cope with it) or calling it in
an onload() function. Onload() functions are executed after everything
else in the HTML document has finished loading.
--
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/
0 Comments:
Yorum Gönder
<< Home