Hello,

First of all, I will introduce myself. I'm Martijn and I'm coming from
the Netherlands. (so excuse me for maybe some bad English :-) )

I hope that some one can help me with this problem.

I have made in PHP an array that contains on pos 0 a picture location,
pos1 some coordinates, pos 2 picture location, pos3 some coordinates
and so further.

Now I set some markers on a map with the coordinates from that array.
That works fine but when I want into the InfoWindow the img from the
location he will only takes the last one. Or he doesn't show a Info
Window at all.

Can some one help me??

I'm looking forward :)

By the way, this is the code (just the piece where a problem is
otherwise it's a lot of code :-) )  The link at the original site is
www.ideaal.org/aw4d/


 var baseIcon = new GIcon(G_DEFAULT_ICON);
    baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";;
    baseIcon.iconSize = new GSize(34, 34);
    baseIcon.shadowSize = new GSize(37, 34);
    baseIcon.iconAnchor = new GPoint(9, 34);
    baseIcon.infoWindowAnchor = new GPoint(9, 2);

    function createMarker(point, index) {
        var fotoIcon = new GIcon(baseIcon);
          fotoIcon.image = "icon_camera.png";

          // Set up our GMarkerOptions object
        markerOptions = { icon:fotoIcon };
        var marker = new GMarker(point, markerOptions);

        GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(index);
              });
          return marker;
        }


<?php
$i = 0;
While ($aantald > $i){

$i++;
?>
    var point = new GLatLng(<?php echo $d[$i];?>);

    <?php
    $i = $i - 1;

    echo "map.addOverlay(createMarker(point, $i));";
    $i++;
    $i++;

    }
    ?>


T

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to