On Jul 22, 5:29 am, University of London Society of Change Ringers
<[email protected]> wrote:
> Hi, I hope I am in the right place!
>
> I have used Fluster clusterer for V3 am having difficulties adding
> infoWindows.  When I click on an icon (hoping to view an infoWindow),
> I am taken to somewhere near Africa:
>
> http://www.satmap.com/map_test.php

your marker variable is left set to:
                <!-- Translate PHP variables into Javascript -->
                var name = "Brans Travel Shop"; var lat = "0"; var lng = "0";

                <!-- CREATE new Marker Don't add to map! -->
                var marker      = new google.maps.Marker({
                        position: new google.maps.LatLng(lat,lng),
                        title: "Hello World: " + name
                });

so when you click on any marker, this happens:
                <!-- ADD Info box to marker -->
                google.maps.event.addListener(marker, 'click', function() {
                        infowindow.open(map,marker);
                });

With marker at 0,0.  Your code is doing exactly what it is supposed
to.  I suspect you need a createMarker function so you get function
closure on your marker and click listener.

You might look at pitfall number 3 on this page of Mike Williams' (v2)
tutorial
The Basics - Part 1 Markers with info windows
http://econym.org.uk/gmap/basic1.htm
as it is the issue you are having.


  -- Larry

>
> Any help would be greatly appreciated!
>
> Thanks, Jacqui

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to