Hi Matt-

You can effectively stop a marker drag by repeatedly setting the
marker coordinate. To see what I mean, try out this code:

var stepNum:int = 0;
 private function onMapReady(event:Event):void {
        var marker:Marker = new Marker(map.getCenter(), new
MarkerOptions({draggable: true}));
        marker.addEventListener(MapMouseEvent.DRAG_STEP, function(e:Event):void 
{
                stepNum++;
                if (stepNum >= 10) {
                        marker.setLatLng(new LatLng(10, 10));
            }
        });
        map.addOverlay(marker);
 }

After 10 steps, the marker will stay in the same place. It's a bit
messy - but it works.

- pamela

On Tue, Mar 3, 2009 at 2:38 AM, matt <[email protected]> wrote:
>
> Is there any way to control/prevent a maker drag end?  I want to
> validate the position that a marker is being dropped at and prevent
> the drop from occuring?  I cannot see a way in the current event
> structure (in either drag_step or drag_end) to accomplish this.
>
> Matt
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to