[OpenLayers-Dev] dragstart, drag and dragend events

Christopher Schmidt crschmidt at metacarta.com
Tue Jun 12 14:02:32 EDT 2007


On Tue, Jun 12, 2007 at 05:31:54PM +0200, Pierre GIRAUD wrote:
> I cannot get any event register working with "dragstart" or "dragend"
> using something like following :
> 
> map.events.register("dragstart", map, function(evt) {
>                    console.log("drag end");
>                }
>            );

I think you're trying to detect something that isn't going to happen --
dragstart is related to dragging the element. If you're trying to
determine when someone starts dragging the map, you might want movestart
or moveend... What are you trying to do?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list