Hi Guys (and ladys:))

i had a createMarker-method which created markers in the method and
did a map.addOverlay(marker); directly in the method.

Now i want to add a onmouseover-event... The problem is, when i paste
the mouseover-code:

GEvent.addListener(marker,"mouseover", function() {
        marker.openInfoWindowHtml(littleHtml);
});

Then my map only show me on mouseover the last created marker...
Again: the method creates the markers and doesn't return a marker...

I've tried to change it to a return-method but i have a problem with
the "point".. look at this method:

function createMarker(firmenbezeichnung, link, linkZumLogo,
beschreibung, kategorie, typ, typ_id, ort, plz, strasse,
strassenzusatz, telefonnummer, oeffnungszeiten, angebote,
veranstaltungen) {
// Put adress together (adress = street + number + place + postcode-
number)
// Adresse zusammendumpen:
                var adresse = strasse + " " + strassenzusatz + " " + ort + " " +
plz;

                geocoder.getLatLng(adresse,
                                                function(point)
                                                {


                                                        // Neuen Marker 
erstellen
                                                        marker = new 
GMarker(point, myIcon);


                                                        var html =      "some 
information for click-event";

                                                        var littleHtml = 
"Onmouseover-info";


                                                        
GEvent.addListener(marker,"mouseover", function() {
                                                                
marker.openInfoWindowHtml(html);
                                                        });

                                                        
//marker.bindInfoWindowHtml(html);


                                                        // Marken auf die Karte 
hinzufügen
                                                        map.addOverlay(marker);
                                                }
                                        );

        }

(i cleared a littlebit the method.)

can anyone help me?

thaanks!

--

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