Hi Hosonno-

You can listen to the DRAG_STEP or DRAG_END event and take appropriate
action then. For example, the following code makes it so the user can
no longer drag the marker after 10 steps:

 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);

You could have code to check whether the marker is in a "droppable"
place, perhaps.

- pamela


On Thu, Apr 9, 2009 at 6:16 PM, hosonno <[email protected]> wrote:
>
> it's there in the API any possibility to fix the marker drop position
> in other mean the user will be able to place marker but only in some
> position
> it can drag the marker but the drop can't be realised only in some
> fixed position (fixed by the developper)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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