Thanks for the response! Is marker in the first line their a OpenLayers.Layer.Markers object or an OpenLayers.Marker?
2010/1/8 Yury Luneff <[email protected]> > marker.events.register("click", this, function(e) { > alert(this). > }); > > "click" is the event, > "this" is context passed to event handler so one could determine which > marker was clicked using "this" in event handler function. > > > Hey all, I was wondering if there were any examples available or if > > someone could tell me how I would register a mouse event with a > > bunch of markers in a marker layer. Basically I am going to have a > > map with several points and depending on what point they click a new > > page is going to open. For example there are going to be points for > > each county in a given state and when a user clicks on a given > > county, the counties web page will load in a new window. I know how > > to do all of that except for registering different event handlers > > for each marker. Any ideas/suggestions? > > > Thanks! > > > > > -- > С уважением, > Yury mailto:[email protected] > > -- web http://www.hyxspace.com aim hyx1138
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
