I need to add handlers for the following events: ? Marker clicked. ? Marker moved. Looking through the code I don''t see that those are implemented. For example, on Mapstraction I found marker added and marker removed, but not marker moved. Two Questions: 1. Can anyone tell how to add those listeners if they are implemented? 2. If they are not implemented, is there a reason why they are not (road blocks)? If I were to attempt to add implementations, does anyone have any tips or lessons learned from previous attempts? 3. Is there any reason, other than resources, why events have only been implemented in Google (road blocks)? I would first want to get Google working as close as possible to what we have now with native Google, and then add the implementations necessary to make it work with Microsoft too. Thanks, Steve -------------------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100818/74de0261/attachment.htm>
Hi Steve, I think what you''re looking for is the click event on mxn.Marker, it works the same as added and removed. There isn''t a marker moved event as it''s not possible to move markers around in Mapstraction currently, they only way to do that is to remove it and then re-add in a different location. Derek On 18 August 2010 15:32, Mitchell, Steve <Steve.Mitchell at garmin.com> wrote:> I need to add handlers for the following events: > > > > ? Marker clicked. > > ? Marker moved. > > > > Looking through the code I don?t see that those are implemented. For > example, on Mapstraction I found marker added and marker removed, but not > marker moved. > > > > Two Questions: > > > > 1. Can anyone tell how to add those listeners if they are > implemented? > > 2. If they are not implemented, is there a reason why they are not > (road blocks)? If I were to attempt to add implementations, does anyone have > any tips or lessons learned from previous attempts? > > 3. Is there any reason, other than resources, why events have only > been implemented in Google (road blocks)? > > > > I would first want to get Google working as close as possible to what we > have now with native Google, and then add the implementations necessary to > make it work with Microsoft too. > > > > Thanks, > > > > Steve > > > -------------------------------------------------------------------------------- > > This e-mail and any attachments may contain confidential material for the > sole use of the intended recipient. If you are not the intended recipient, > please be aware that any disclosure, copying, distribution or use of this > e-mail or any attachment is prohibited. If you have received this e-mail in > error, please contact the sender and delete all copies. > > > > Thank you for your cooperation. > > > _______________________________________________ > 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/20100818/55746c3d/attachment.htm>
Thanks for the quick response. I?ll check the click event. Just so I know that we are on the same page, I am using dragable = true, so I can move markers around a google provider just fine. I want is the event that fires when the user stops dragging (map, event, marker) so that I can make an AJAX call to update the Lat Lng in the database for that marker. Is that what you are saying is not supported? From: mapstraction-bounces at lists.mapstraction.com [mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Derek Fowler Sent: Wednesday, August 18, 2010 11:17 AM To: mapstraction at lists.mapstraction.com Subject: Re: [Mapstraction] Mapstraction Events Hi Steve, I think what you''re looking for is the click event on mxn.Marker, it works the same as added and removed. There isn''t a marker moved event as it''s not possible to move markers around in Mapstraction currently, they only way to do that is to remove it and then re-add in a different location. Derek On 18 August 2010 15:32, Mitchell, Steve <Steve.Mitchell at garmin.com<mailto:Steve.Mitchell at garmin.com>> wrote: I need to add handlers for the following events: ? Marker clicked. ? Marker moved. Looking through the code I don?t see that those are implemented. For example, on Mapstraction I found marker added and marker removed, but not marker moved. Two Questions: 1. Can anyone tell how to add those listeners if they are implemented? 2. If they are not implemented, is there a reason why they are not (road blocks)? If I were to attempt to add implementations, does anyone have any tips or lessons learned from previous attempts? 3. Is there any reason, other than resources, why events have only been implemented in Google (road blocks)? I would first want to get Google working as close as possible to what we have now with native Google, and then add the implementations necessary to make it work with Microsoft too. Thanks, Steve -------------------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Thank you for your cooperation. _______________________________________________ Mapstraction mailing list Mapstraction at lists.mapstraction.com<mailto: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<mailto:dezfowler at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100818/26065ccb/attachment-0001.htm>
Draggable is only supported by the Google adapter, a couple of the other providers may support it but there isn''t an implementation in Mapstraction for them. As such it can''t really be considered a "supported" feature. Derek On 18 August 2010 21:20, Mitchell, Steve <Steve.Mitchell at garmin.com> wrote:> Thanks for the quick response. I?ll check the click event. > > > > Just so I know that we are on the same page, I am using dragable = true, so > I can move markers around a google provider just fine. I want is the event > that fires when the user stops dragging (map, event, marker) so that I can > make an AJAX call to update the Lat Lng in the database for that marker. Is > that what you are saying is not supported? > > > > *From:* mapstraction-bounces at lists.mapstraction.com [mailto: > mapstraction-bounces at lists.mapstraction.com] *On Behalf Of *Derek Fowler > *Sent:* Wednesday, August 18, 2010 11:17 AM > *To:* mapstraction at lists.mapstraction.com > *Subject:* Re: [Mapstraction] Mapstraction Events > > > > Hi Steve, > > > > I think what you''re looking for is the click event on mxn.Marker, it works > the same as added and removed. > > > > There isn''t a marker moved event as it''s not possible to move markers > around in Mapstraction currently, they only way to do that is to remove it > and then re-add in a different location. > > > > Derek > > > > On 18 August 2010 15:32, Mitchell, Steve <Steve.Mitchell at garmin.com> > wrote: > > I need to add handlers for the following events: > > > > ? Marker clicked. > > ? Marker moved. > > > > Looking through the code I don?t see that those are implemented. For > example, on Mapstraction I found marker added and marker removed, but not > marker moved. > > > > Two Questions: > > > > 1. Can anyone tell how to add those listeners if they are > implemented? > > 2. If they are not implemented, is there a reason why they are not > (road blocks)? If I were to attempt to add implementations, does anyone have > any tips or lessons learned from previous attempts? > > 3. Is there any reason, other than resources, why events have only > been implemented in Google (road blocks)? > > > > I would first want to get Google working as close as possible to what we > have now with native Google, and then add the implementations necessary to > make it work with Microsoft too. > > > > Thanks, > > > > Steve > > > -------------------------------------------------------------------------------- > > This e-mail and any attachments may contain confidential material for the > sole use of the intended recipient. If you are not the intended recipient, > please be aware that any disclosure, copying, distribution or use of this > e-mail or any attachment is prohibited. If you have received this e-mail in > error, please contact the sender and delete all copies. > > > > Thank you for your cooperation. > > > _______________________________________________ > 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 > >-- 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/20100818/8ba3be98/attachment.htm>