ThinkGeo.com    |     Documentation    |     Premium Support

Panning while in DrawModes

Is it possible to Pan the map around while in a DrawMode other than "Normal"?


Polygon and Point should be straightforward, since the shape isn't started until the user clicks and releases on the same location. I'm not sure how the other shape types would work though. Any ideas?



Rob,  
  
 Thanks for point it out. I’ve written it down and we will see whether we will support this feature in the future release. 
  
 Thanks, 
  
 Ben

Any progress on this?

Rob, 
  
 Other than “Normal”, it’s possible to pan the map in “Modify” mode. I guess you mean panning in “Draw” mode. Please think about it, if you want to pan map in “Draw” mode; how can we judge the mouse action in different mode? They are conflicted. 
  
 My recommendation is that add a shift key support for panning; for example, when shift key down; set the mode to normal on the client side while restore to draw mode when mouse up. 
  
 To click and release to draw line or polygon is hard coded which is another drawing action and we don’t support currently; it’ll spend us much time on adding this new feature. So I don’t think we’ll support it in the near future. 
  
 Please let me know if you have any questions. 
  
 Thanks, 
 Howard

Rob,


One thing that I've done that you may try is that when I am in a drawing mode, I make it so when the mouse is over an area say 10 or 20 pixels from the edge of the map, I pan in that direction by calling map.Pan(...).  This allows the user to pan the map without ever leaving the drawing mode.


.Ryan.



Ryan, 
  
 Can you give me a sample of how you setup the 10-20px mouseover border? 
  
 -Rob

Oops… I’m sorry Rob… for some reason I thought I was in the Desktop Edition message boards when I posted this.  I apologize.

Ryan, 
  
  Pull it together man!  :-) :-) 
  
 David