[OpenLayers-Users] Capturing when a drawn feature has been dragged - How??

Arnd Wippermann arnd.wippermann at web.de
Thu Apr 9 19:30:57 EDT 2009


Hi,

I use this way

ctrlDragFeature.onComplete = ctrlDragFeature_onComplete;
 
Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von plen
Gesendet: Donnerstag, 9. April 2009 21:47
An: users at openlayers.org
Betreff: [OpenLayers-Users] Capturing when a drawn feature has been dragged
- How??


Hello,

I am using the OpenLayers drawing controls for drawing points, lines, and
polygons.  For the "select" control, I have define it like:

select: new OpenLayers.Handler.Feature( { map: MAP_OBJ }, 
                                              getFeaturesLayer(), 
                                              featureEventCallbacks)

and then in the featureEventCallbacks function I have things like:

featureEventCallbacks = {
      "over": function(feature) {
	 // FEATURE MOUSE OVER
      },
      "out": function(feature) {
	 // FEATURE MOUSE OUT
      },
      "click": function(feature) {
              // FEATURE CLICK
      }
};

I am looking for a similar thing concerning the "drag" control so that I can
get notified when the user has dragged a feature.  I have tried to set up
somthing similar to the "select" callbacks but with no luck.  Not sure if I
just don't have the right type (over, out, click) for the drag or it is
handled differently.

Does anyone know how I can capture the end of a drag event (from the drag
control)?

Thanks - Peter

--
View this message in context:
http://n2.nabble.com/Capturing-when-a-drawn-feature-has-been-dragged---How--
-tp2613057p2613057.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list