I don't fully understand your question.
However looking at what you've done -  Gevent.add(map, "click") - it
seems you have added an onClick event to the map and not to the
marker.
To add an onClick event to the marker, you have to pass the marker and
not the map to Gevent.add.


How to trigger an onClick event in javascript may depend on the
browser you are using/what version of the browser. Trying googing
'trigger onclick events in javascript' to see how you can do this.


On Dec 15, 2:06 pm, Emre Avsar <[email protected]> wrote:
> I have to check this, can you explain me the 4th step?
> only something like this:
> // getMarker give's a marker with the (id) here the 6th one. (array-
> element starting by 0)
> getMarker(5).click();
>
> and after that it should show me theinfowindow?
>
> i had anyway a little hack and buggy createMarker method. I've chosen
> "map" instead of "marker" variable in the
> Gevent.add(map, "click") something like this. It was for mouseover...
>
> I didn't get that with the normal version with marker, "click" as
> parameters. (or "mouseover")
>
> Greetz
>
> On Dec 14, 6:40 pm, near-a-point <[email protected]> wrote:
>
>
>
> > Steps
>
> > 1)Createa marker
> > 2) Add the marker to an array
> > 2)Createcontent for the marker'sinfowindow- GEvent.addListener
> > (marker, "click", function() {} )
> > 3) Push the marker onto your map
> > 4) Trigger the onclick event for the marker (e.g. myMarker.click())
>
> >http://www.nearapoint.com
>
> > On Dec 14, 6:18 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Dec 14, 6:00 am, Emre Avsar <[email protected]> wrote:
>
> > > > Hi
>
> > > > i have a question, how can ipopuptheinfowindowfrom a marker on
> > > > creating?
>
> > > Have you seen Mike Williams' tutorial?
>
> > >http://econym.org.uk/gmap/
>
> > >   -- Larry- Hide quoted text -
>
> - Show quoted text -

--

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