Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |  Developer Community
 
LivePerson Chat

Discussion Forums

The online community for users of Map Suite GIS components

Edit / modify polygon
Last Post 10-07-2008 08:23 PM by Batman. 13 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
TedUser is Offline
Level 1
Level 1
Posts:19

--
09-29-2008 10:12 AM

Hey!

I'd like to know if you can modify a polygon that you have drawn on the map?

If I draw a polygon, I would like to click the shape and then have the ability to move the points of which the polygon exists.

Regards

BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
09-29-2008 10:43 AM

Thanks for the post!

You can easily edit Polygons and all the other geometric shapes by turning the map into EditShape mode like the code below:

Map1.Mode = ModeType.EditShape; 

For a more comprehensive sample, take a look at the "Draw and Edit Shapes" How Do I sample application underneath the "Shapes" section that comes with the evaluation download.  Or you can see it on line at:

http://websamples.thinkgeo.com/webeditionsamples/

Let us know if you have any other questions.

Thanks!

TedUser is Offline
Level 1
Level 1
Posts:19

--
09-29-2008 10:47 AM

Thx for the quick answer =)

I dont have "how do I"-samples in the Map Suite Desktop-folder. The folders that exists are:

 

CSSampleApps
SampleData
VBSAmpleApps

In CSSampleApps ther are a bunch of apps, but no Edit shapes-thingie...

Also, the
ModeType.EditShape;
does not exist as an alternativ in ModeType. The closest I guess was ModeType.AdvancedMapShapeEditing but that only allows me to rotate and resize - not change the actual points.

BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
09-29-2008 10:50 AM
My Mistake, I thought this was posted in the Web Edition 3.0 forum :)

Do do it in the Map Suite Desktop Edition you would need to set the mode to:

map1.Mode = ModeType.AdvancedMapShapeEditing;

I don't think we have a sample that shows this, but once you set the map to this mode you will have all the control points to manipulate the Polygon.

Sorry for the confusion on my side.

Thanks
TedUser is Offline
Level 1
Level 1
Posts:19

--
09-29-2008 10:53 AM

Hehe, we're writing at the same time =)

I'll just add this again:

The closest I guessed was ModeType.AdvancedMapShapeEditing but that only allows me to rotate and resize - not change the actual points.

Any ideas?

BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
09-29-2008 02:22 PM

No currently all you can do is resize and rotate, we don't have this capability in 2.0.

However the 3.0 version of the Web Editing does have this capability, and although I'm not sure.  The Desktop 3.0 edition may have it when it comes out.

Thanks

TedUser is Offline
Level 1
Level 1
Posts:19

--
09-29-2008 04:38 PM
Hi again =) thx for the quick answers =)

Who would know if it is included in Desktop 3.0 and when will 3.0 be released?

regards,
BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
10-01-2008 12:38 PM

There should be some updates on the Map Suite Desktop Edition 3.0 soon.  For updates you can always check the 3.0 Roadmap Link at:

http://gis.thinkgeo.com/Products/MapSuite30Roadmap/tabid/636/Default.aspx

 

TedUser is Offline
Level 1
Level 1
Posts:19

--
10-02-2008 11:48 AM
Thx =)
BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
10-02-2008 12:56 PM
No problem, keep the posts coming.
TedUser is Offline
Level 1
Level 1
Posts:19

--
10-06-2008 06:32 AM
I just took a look at the Webedition 3.0 and I have a few suggestions. Dunno if suggestions are considered or if I should post them somewhere else. I havent tried the Webedition yet so Im just going from what I learned in the demo on the webpage. Maybe some of the functionality already exists. If so, please enlighten me =)


- Now you need to manually change mode to "edit mode" if you want to change a symbol. Instead it would be better if it automatically changes to "edit mode" whenever a symbol/polygon is clicked.
- When modifying a polygon circles appear on the borders, which you can drag. To move the polygon there is another circle, identical to the other circles somewhere "in the middle" and lastly to add new points there are almost identical circles on the bordes, just with more tranparency.
I would like to see different circles for already existing points and for creating new ones. Different colors and icons would be better.
Instead of having a point on which you have to click to drag the polygon - why not allow the polygon to be dragged when clicking anywhere inside its boundaries?

regards,
BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
10-06-2008 10:30 PM
Ted,

Thanks for the post.

I think you can implement the one click shape editing by setting the MapMode to EditMode in the FinishTrackShape Event right after the user draws the shape. This way when the user clicks again on the polygon the map will already be set into edit and you will see the edit capabilities appear. I didn't test this so there may be some issues that I haven't considered but I think it will work.

We wouldn't want to always implement the editing on a click automatically because customers have all sorts of scenarios they need to support and editing is just one scenario. For example a lot of customers want to be able to click the polygon and have a pop up display or something like that.

Thanks for the suggestions on the editing features, we will look and see how difficult these would be to implement.

Keep the suggestions coming!

Thanks!
TedUser is Offline
Level 1
Level 1
Posts:19

--
10-07-2008 03:34 AM
Thx again Batman =)

I think that you guys at ThinkGeo are doing a really great job especially when it comes to questions, support and suggestions. You answer fast and you really consider what people are saying. I'v been reading around this forum and was impressed with the speed and level of committement on you side. That sort of things makes you more inclined to work with Map Suite =)

Regards
BatmanUser is Online
MVP
MVP
Posts:98
Avatar

--
10-07-2008 08:23 PM
Thanks for the kind words Ted. Keep the questions coming!
You are not authorized to post a reply.

Active Forums 4.1