# Select and Move Multiple Features

**URL:** <https://community.thinkgeo.com/t/select-and-move-multiple-features/1911>\
**Category:** WinForms\
**Created:** [February 21, 2012, 2:30pm UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911 "2012-02-21T14:30:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [February 21, 2012, 2:30pm UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/1 "2012-02-21T14:30:05Z")

</div>

Hi,

I&nbsp;read&nbsp;the&nbsp;following&nbsp;post&nbsp;from&nbsp;2010,&nbsp;"How&nbsp;to&nbsp;select&nbsp;multiple&nbsp;features&nbsp;on&nbsp;a&nbsp;layer?".&nbsp;&nbsp;I&nbsp;would&nbsp;also&nbsp;like&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;group&nbsp;and&nbsp;drag/rotate&nbsp;mutliple&nbsp;selected&nbsp;features&nbsp;to&nbsp;new&nbsp;locations&nbsp;as&nbsp;opposed&nbsp;to&nbsp;one&nbsp;at&nbsp;a&nbsp;time.

Currently,&nbsp;my&nbsp;code&nbsp;creates&nbsp;a&nbsp;bounding&nbsp;box&nbsp;for&nbsp;all&nbsp;features&nbsp;and&nbsp;then&nbsp;I&nbsp;allow&nbsp;the&nbsp;user&nbsp;to&nbsp;drag&nbsp;the&nbsp;bounding&nbsp;box&nbsp;around.&nbsp;&nbsp;Once&nbsp;they&nbsp;commit,&nbsp;the&nbsp;features&nbsp;are&nbsp;moved&nbsp;to&nbsp;the&nbsp;new&nbsp;location&nbsp;using&nbsp;offsets&nbsp;from&nbsp;the&nbsp;original&nbsp;bounding&nbsp;box&nbsp;position.&nbsp;&nbsp;It's&nbsp;better&nbsp;than&nbsp;nothing,&nbsp;but&nbsp;not&nbsp;ideal&nbsp;since&nbsp;the&nbsp;users&nbsp;typically&nbsp;want&nbsp;to&nbsp;align&nbsp;the&nbsp;features&nbsp;to&nbsp;landmarks&nbsp;and&nbsp;not&nbsp;the&nbsp;bounding&nbsp;box.

Is&nbsp;this&nbsp;feature&nbsp;still&nbsp;being&nbsp;considered&nbsp;and&nbsp;if&nbsp;so&nbsp;when&nbsp;may&nbsp;we&nbsp;expect&nbsp;it&nbsp;is&nbsp;released.

Thanks,

Damian

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [February 22, 2012, 1:45pm UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/2 "2012-02-22T13:45:09Z")

</div>

Damian,

&nbsp;&nbsp;From&nbsp;reading&nbsp;your&nbsp;description,&nbsp;it&nbsp;sounds&nbsp;like&nbsp;this&nbsp;is&nbsp;definitely&nbsp;something&nbsp;we&nbsp;can&nbsp;do.&nbsp;We&nbsp;have&nbsp;a&nbsp;very&nbsp;extensible&nbsp;InteractiveOverlay&nbsp;class&nbsp;that&nbsp;allows&nbsp;the&nbsp;programmer&nbsp;to&nbsp;create&nbsp;editing&nbsp;capabilities&nbsp;at&nbsp;a&nbsp;very&nbsp;fine&nbsp;level.&nbsp;As&nbsp;you&nbsp;can&nbsp;see,&nbsp;we&nbsp;already&nbsp;have&nbsp;a&nbsp;lot&nbsp;of&nbsp;different&nbsp;examples&nbsp;on&nbsp;how&nbsp;InteractiveOverlay&nbsp;can&nbsp;be&nbsp;extended&nbsp;in&nbsp;the&nbsp;section&nbsp;"InteractiveOverlays"&nbsp;section&nbsp;of&nbsp;the&nbsp;Code&nbsp;Community.&nbsp;[wiki.thinkgeo.com/wiki/Map\_Suite\_De...ys\_Samples](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_InteractiveOverlays_Samples)

&nbsp;For&nbsp;your&nbsp;specific&nbsp;case,&nbsp;I&nbsp;am&nbsp;not&nbsp;exactely&nbsp;sure&nbsp;by&nbsp;what&nbsp;you&nbsp;mean&nbsp;by&nbsp;"the&nbsp;users&nbsp;typically&nbsp;want&nbsp;to&nbsp;align&nbsp;the&nbsp;features&nbsp;to&nbsp;landmarks".&nbsp;Are&nbsp;you&nbsp;talking&nbsp;about&nbsp;having&nbsp;the&nbsp;feature&nbsp;snapping&nbsp;to&nbsp;some&nbsp;other&nbsp;features?&nbsp;If,&nbsp;yes,&nbsp;we&nbsp;have&nbsp;many&nbsp;examples&nbsp;on&nbsp;that&nbsp;in&nbsp;the&nbsp;link&nbsp;above.&nbsp;I&nbsp;suggest,&nbsp;you&nbsp;look&nbsp;at&nbsp;the&nbsp;different&nbsp;samples&nbsp;and&nbsp;tell&nbsp;me&nbsp;to&nbsp;which&nbsp;one&nbsp;your&nbsp;case&nbsp;resembles&nbsp;the&nbsp;most.&nbsp;It&nbsp;would&nbsp;also&nbsp;help&nbsp;if&nbsp;you&nbsp;could&nbsp;give&nbsp;a&nbsp;concrete&nbsp;example&nbsp;of&nbsp;how&nbsp;this&nbsp;would&nbsp;apply.&nbsp;And&nbsp;I&nbsp;am&nbsp;pretty&nbsp;confident&nbsp;we&nbsp;can&nbsp;find&nbsp;the&nbsp;real&nbsp;adequate&nbsp;solution&nbsp;you&nbsp;are&nbsp;looking&nbsp;for.&nbsp;Thank&nbsp;you.

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [February 22, 2012, 3:42pm UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/3 "2012-02-22T15:42:12Z")

</div>

Hi&nbsp;Val,

Thanks&nbsp;for&nbsp;the&nbsp;quick&nbsp;reply.

What&nbsp;I&nbsp;am&nbsp;looking&nbsp;for&nbsp;is&nbsp;a&nbsp;way&nbsp;to&nbsp;group&nbsp;objects&nbsp;(polygons,&nbsp;lines,&nbsp;points)&nbsp;as&nbsp;one&nbsp;object&nbsp;and&nbsp;then&nbsp;to&nbsp;collectively&nbsp;move/rotate&nbsp;the&nbsp;group&nbsp;and&nbsp;have&nbsp;each&nbsp;object&nbsp;visible&nbsp;during&nbsp;the&nbsp;move/rotation&nbsp;process.&nbsp;&nbsp;It's&nbsp;important&nbsp;for&nbsp;them&nbsp;to&nbsp;see&nbsp;all&nbsp;the&nbsp;objects&nbsp;being&nbsp;dragged&nbsp;as&nbsp;they&nbsp;are&nbsp;typically&nbsp;aligned&nbsp;relative&nbsp;to&nbsp;other&nbsp;unselected&nbsp;objects&nbsp;or&nbsp;"landmarks"&nbsp;on&nbsp;the&nbsp;map.

I've&nbsp;looked&nbsp;through&nbsp;the&nbsp;samples&nbsp;and&nbsp;unless&nbsp;I&nbsp;missed&nbsp;it,&nbsp;there&nbsp;isn't&nbsp;some&nbsp;code&nbsp;sample&nbsp;like&nbsp;this.&nbsp;&nbsp;They&nbsp;all&nbsp;deal&nbsp;with&nbsp;managing&nbsp;single&nbsp;objects&nbsp;or&nbsp;their&nbsp;control&nbsp;points.&nbsp;&nbsp;I&nbsp;am&nbsp;fairly&nbsp;comfortable&nbsp;now&nbsp;with&nbsp;snapping,&nbsp;so&nbsp;that's&nbsp;not&nbsp;an&nbsp;issue.

Right&nbsp;now,&nbsp;I&nbsp;am&nbsp;able&nbsp;to&nbsp;select&nbsp;multiple&nbsp;objects&nbsp;using&nbsp;a&nbsp;bounding&nbsp;box.&nbsp;&nbsp;But&nbsp;in&nbsp;order&nbsp;to&nbsp;show&nbsp;all&nbsp;objects&nbsp;to&nbsp;the&nbsp;user&nbsp;while&nbsp;they&nbsp;are&nbsp;dragging&nbsp;or&nbsp;rotating&nbsp;the&nbsp;bounding&nbsp;box,&nbsp;I&nbsp;must&nbsp;use&nbsp;a&nbsp;timer&nbsp;control&nbsp;and&nbsp;redraw&nbsp;periodically&nbsp;using&nbsp;the&nbsp;edit&nbsp;layer&nbsp;shape&nbsp;of&nbsp;the&nbsp;bounding&nbsp;box.&nbsp;&nbsp;It's&nbsp;not&nbsp;very&nbsp;efficient&nbsp;like&nbsp;this.&nbsp;

Furthermore,&nbsp;the&nbsp;users&nbsp;have&nbsp;requested&nbsp;the&nbsp;ability&nbsp;to&nbsp;keep&nbsp;the&nbsp;objects&nbsp;grouped&nbsp;even&nbsp;when&nbsp;not&nbsp;moving/rotating&nbsp;them.&nbsp;&nbsp;It's&nbsp;similar&nbsp;to&nbsp;how&nbsp;PowerPoint&nbsp;works.&nbsp;&nbsp;Although&nbsp;I&nbsp;could&nbsp;create&nbsp;some&nbsp;complicated&nbsp;process&nbsp;managing&nbsp;collections&nbsp;of&nbsp;features,&nbsp;I&nbsp;would&nbsp;rather&nbsp;have&nbsp;some&nbsp;kind&nbsp;of&nbsp;grouping&nbsp;method&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;to&nbsp;manage&nbsp;this&nbsp;for&nbsp;me&nbsp;and&nbsp;to&nbsp;optimize&nbsp;it&nbsp;for&nbsp;speed.

Regards,

Damian&nbsp;

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [February 23, 2012, 10:16am UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/4 "2012-02-23T10:16:14Z")

</div>

Damian,

&nbsp;&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;reply.&nbsp;I&nbsp;have&nbsp;now&nbsp;a&nbsp;clearer&nbsp;idea&nbsp;on&nbsp;what&nbsp;you&nbsp;are&nbsp;trying&nbsp;to&nbsp;accomplish.&nbsp;In&nbsp;the&nbsp;description&nbsp;you&nbsp;gave,&nbsp;I&nbsp;identified&nbsp;some&nbsp;pretty&nbsp;specifics&nbsp;tasks&nbsp;that&nbsp;you&nbsp;need&nbsp;such&nbsp;as:

-Select&nbsp;various&nbsp;objects&nbsp;as&nbsp;a&nbsp;group.

-Select&nbsp;various&nbsp;objects&nbsp;of&nbsp;different&nbsp;types&nbsp;(point,&nbsp;line&nbsp;and&nbsp;polygon&nbsp;types).

-Collectively&nbsp;move&nbsp;and&nbsp;rotate&nbsp;the&nbsp;group.

-Interaction&nbsp;with&nbsp;object&nbsp;similar&nbsp;to&nbsp;PowerPoint.

&nbsp;There&nbsp;are&nbsp;other&nbsp;requirements&nbsp;that&nbsp;would&nbsp;need&nbsp;to&nbsp;be&nbsp;defined.

&nbsp;&nbsp;Judging&nbsp;by&nbsp;the&nbsp;scope&nbsp;of&nbsp;the&nbsp;requirements,&nbsp;I&nbsp;think&nbsp;that&nbsp;this&nbsp;would&nbsp;have&nbsp;to&nbsp;be&nbsp;treated&nbsp;as&nbsp;Professional&nbsp;Services.&nbsp;We&nbsp;have&nbsp;done&nbsp;in&nbsp;the&nbsp;Wpf&nbsp;edition&nbsp;some&nbsp;of&nbsp;the&nbsp;tasks&nbsp;you&nbsp;are&nbsp;describing&nbsp;as&nbsp;you&nbsp;can&nbsp;see&nbsp;in&nbsp;the&nbsp;attached&nbsp;movie.&nbsp;But&nbsp;this&nbsp;is&nbsp;a&nbsp;small&nbsp;part&nbsp;of&nbsp;the&nbsp;overall&nbsp;requirements&nbsp;you&nbsp;have.

&nbsp;I&nbsp;suggest,&nbsp;you&nbsp;contact&nbsp;Moritz&nbsp;Wolffer&nbsp;[MoritzWolffer@thinkgeo.com](mailto:MoritzWolffer@thinkgeo.com)&nbsp;from&nbsp;Professional&nbsp;Services&nbsp;and&nbsp;give&nbsp;him&nbsp;a&nbsp;detailed&nbsp;description&nbsp;of&nbsp;the&nbsp;requirements&nbsp;you&nbsp;have&nbsp;for&nbsp;your&nbsp;project.&nbsp;He&nbsp;will&nbsp;be&nbsp;very&nbsp;happy&nbsp;to&nbsp;guide&nbsp;you&nbsp;and&nbsp;I&nbsp;will&nbsp;keep&nbsp;following&nbsp;your&nbsp;case&nbsp;under&nbsp;this&nbsp;program.&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;interest.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/b/b4b386297f259ee383cfd3fdf7ffbe887b27e111.gif)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/7/7ead4f8c77e03cd7f498bd9e5e901abf60588d42.gif)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [February 23, 2012, 10:18am UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/5 "2012-02-23T10:18:21Z")

</div>

See&nbsp;attached&nbsp;movie&nbsp;for&nbsp;proof&nbsp;of&nbsp;concept.

[001\_demo.zip](https://community.thinkgeo.com/uploads/default/original/2X/2/20346925b60501dd65b3a460891caaa810175383.zip) (277 KB)

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [February 24, 2012, 8:48am UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/6 "2012-02-24T08:48:47Z")

</div>

Hi&nbsp;Val,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;reply.&nbsp;&nbsp;Okay,&nbsp;I’ll&nbsp;talk&nbsp;to&nbsp;Moritz.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Damian

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [February 29, 2012, 11:14am UTC](https://community.thinkgeo.com/t/select-and-move-multiple-features/1911/7 "2012-02-29T11:14:15Z")

</div>

Damian,

&nbsp;&nbsp;&nbsp;Thank&nbsp;you.&nbsp;I&nbsp;believe&nbsp;that&nbsp;Moritz&nbsp;handled&nbsp;the&nbsp;situation&nbsp;for&nbsp;you&nbsp;in&nbsp;professional&nbsp;services.&nbsp;Do&nbsp;not&nbsp;hesitate&nbsp;to&nbsp;use&nbsp;the&nbsp;Discussion&nbsp;Forum&nbsp;for&nbsp;any&nbsp;other&nbsp;questions.
