I have a question about events... is it possible to capture events like mousedown/up/over/out? -- ----------- Tafuni Vito vito at vitotafuni.com --------------------------------------------- "Verba volant, scripta manent... data corrupted" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100526/661161db/attachment.htm>
Hi! Now, the events available in mapstraction are: /** * Map has loaded * @name mxn.Mapstraction#load * @event */ ''load'', /** * Map is clicked {location: LatLonPoint} * @name mxn.Mapstraction#click * @event */ ''click'', /** * Map is panned * @name mxn.Mapstraction#endPan * @event */ ''endPan'', /** * Zoom is changed * @name mxn.Mapstraction#changeZoom * @event */ ''changeZoom'', /** * Marker is removed {marker: Marker} * @name mxn.Mapstraction#markerAdded * @event */ ''markerAdded'', /** * Marker is removed {marker: Marker} * @name mxn.Mapstraction#markerRemoved * @event */ ''markerRemoved'', /** * Polyline is added {polyline: Polyline} * @name mxn.Mapstraction#polylineAdded * @event */ ''polylineAdded'', /** * Polyline is removed {polyline: Polyline} * @name mxn.Mapstraction#polylineRemoved * @event */ ''polylineRemoved'' -- Saludos, Pablo L?pez Escob?s 2010/5/26 Vito Tafuni <vitotafuni at gmail.com>> I have a question about events... is it possible to capture events like > mousedown/up/over/out? > > > -- > ----------- > Tafuni Vito > vito at vitotafuni.com > --------------------------------------------- > "Verba volant, scripta manent... data corrupted" > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100526/13eab7bc/attachment.htm>
You could track those on the container DIV yourself using some other library but Mapstraction doesn''t support them natively, no. Derek On 26 May 2010 11:57, Vito Tafuni <vitotafuni at gmail.com> wrote:> I have a question about events... is it possible to capture events like > mousedown/up/over/out? > > > -- > ----------- > Tafuni Vito > vito at vitotafuni.com > --------------------------------------------- > "Verba volant, scripta manent... data corrupted" > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-- Derek Fowler m. +44 (0) 7966 512 369 e. dezfowler at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100526/a350c602/attachment.htm>
just my 2 cents, but I totally agree with this approach. Why reinvent functionality that jquery/YUI/many other libraries do a great job of solving already? We use mxn in parallel with jquery. works very well 2010/5/26 Derek Fowler <dezfowler at gmail.com>> You could track those on the container DIV yourself using some other > library but Mapstraction doesn''t support them natively, no. > > Derek > > On 26 May 2010 11:57, Vito Tafuni <vitotafuni at gmail.com> wrote: > >> I have a question about events... is it possible to capture events like >> mousedown/up/over/out? >> >> >> -- >> ----------- >> Tafuni Vito >> vito at vitotafuni.com >> --------------------------------------------- >> "Verba volant, scripta manent... data corrupted" >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> > > > -- > Derek Fowler > m. +44 (0) 7966 512 369 > e. dezfowler at gmail.com > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100526/b3033a92/attachment.htm>
i was not asking to reinvent nothing... Fowler''s answer is what i would like to know! but i think that if click event is managed in such way there''s a reason: location so for mousedown/up/over one can use some tricky like convert pixel to lat-long and then obtain the location just another curiosity -- ----------- Tafuni Vito vito at vitotafuni.com --------------------------------------------- "Verba volant, scripta manent... data corrupted" 2010/5/26 Ed Freyfogle <edf at sloan.mit.edu>> just my 2 cents, but I totally agree with this approach. Why reinvent > functionality that jquery/YUI/many other libraries do a great job of solving > already? > > We use mxn in parallel with jquery. works very well > > 2010/5/26 Derek Fowler <dezfowler at gmail.com> > > You could track those on the container DIV yourself using some other >> library but Mapstraction doesn''t support them natively, no. >> >> Derek >> >> On 26 May 2010 11:57, Vito Tafuni <vitotafuni at gmail.com> wrote: >> >>> I have a question about events... is it possible to capture events like >>> mousedown/up/over/out? >>> >>> >>> -- >>> ----------- >>> Tafuni Vito >>> vito at vitotafuni.com >>> --------------------------------------------- >>> "Verba volant, scripta manent... data corrupted" >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >>> >> >> >> -- >> Derek Fowler >> m. +44 (0) 7966 512 369 >> e. dezfowler at gmail.com >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100526/f87e8a49/attachment-0001.htm>