I have quit the same problem.
I am a beginner in developing google maps and have now a map
displaying at my webpage.
But when i got to the point to add markers on the map they don't show
up.
Are there some images that i have to import? I understood that there
are some library's for the markers?
How do i get to display the markers properly?
Thanks.
I used this code:
[Begin code]
function initialize()
{
if(GBrowserIsCompatible())
{
var map= new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
for(var i=0; i<10; i++)
{
var point = new GLatLng(southWest.lat() + latSpan *
Math.random(),
southWest.lng() + lngSpan * Math.random());
map.addOverlay(new GMarker(point));
}
}
}
[end code]
Greetings
Wim
------------------------------
On 13 mei, 07:31, TheShadow <[email protected]> wrote:
> I have checked everything I can I can't find a reason why when I use
> MarkerManager the markers don't show up when I click on the map.
>
> To see them working you can
>
> add
>
> useMarkerManager : false
>
> to mapOpts in editor.js
>
> I've checked that the marker is correct, I've checked that the map is
> correct. I've checked the zoom levels I've checked the markermanager I
> just can't seem to see why its not working. Any help would be greatly
> appreciated.
>
> Link:http://shadowbox.thruhere.net/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
-~----------~----~----~----~------~----~------~--~---