ThinkGeo.com    |     Documentation    |     Premium Support

Drag Dynamic Feature

Hi, I would like to be able to drag a feature drawn in the DynamicOverlay as an InMemoryFeatureLayer in one map and take its bounding box and use it as an extent for my other map. The issue I am having is with this first part of this, which is to click the dynamicfeature and drag it. Is there an ideal way to acheive this type of functionality?


Thanks.



Nelson, 
  
 I think I understand what you are trying to do.  What you should do is to get the feature from your layer and then add it to the EditingOverlay.  Make sure you set the proper properties on editing so that the only option the user has is to move it.  The only thing is I do not think we have an event yet to raise when the user stops dragging or as the user drags.  You could key off the mouse down maybe and the mouse move and up.  Let me talk with the Desktop Team and see how we could support this. 
  
 Can you you go into a bit more detail in what you are doing.  What kind of features they are and how you want it all to work.  The more information we know the better we can help.  If it is confidential then you can e-mail support and ask them to forward it to David & Ben. 
  
 David