Augusto Chaves
2012-Apr-03 06:05 UTC
[Mapstraction] Handling Click on a Marker with Bing Maps
Hello, We''ve been trying to handle the click event to open a modal popup when clicking on a marker. Is there a way to do that? Thanks, Augusto -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120403/7b90b2df/attachment.htm>
Ed Freyfogle
2012-Apr-03 07:58 UTC
[Mapstraction] Handling Click on a Marker with Bing Maps
I think this should work (at least it''s how we do it)
var marker = new mxn.Marker(new mxn.LatLonPoint( item.lat, item.lng));
marker.click.addHandler(function(){
// do my special click handler stuff here
});
mxn.addMarker(marker,false); // add it to the map
good luck,
Ed
2012/4/3 Augusto Chaves <aguade at gmail.com>:> Hello,
>
> We''ve been trying to handle the click event to open a modal popup
when
> clicking on a marker.
> Is there a way to do that?
>
> Thanks,
>
> Augusto
>
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>