ThinkGeo.com    |     Documentation    |     Premium Support

Drag point with label

Hi,

My program need to display a point type shape file with labels.

Users must be able to drag a point together with the label and save the changes back to the shape file.

Is there a sample / code snippet for this?

I have searched the forum, however I can only find samples for the older versions of the map suite.

Hi Yohan,

We have a sample about how to draw the label: https://github.com/ThinkGeo/DraggableLabelsSample-ForWpf

And here we have more sample about that, please refer the samples and I think that’s helpful: https://github.com/ThinkGeo?q=drag&type=&language=

Regards,

Ethan

Hi Ethan,

I found a sample that fits the requirement from the link above but it is for win forms and is using an earlier version of the library (pre ver 10).

Do you have an updated sample?

Hi Yohan,

In fact it’s based on V10 and you can upgrade the packages to the latest version. (https://github.com/ThinkGeo/DragPointWithLabelSample-ForWinForms/blob/master/DragPointWithLabel/packages.config)

And for our product, you can easily copy all code between winfoms and wpf version, most of the APIs is the same.

If you found some detail problem when you move to WPF please let me know, I can help you solve that.

Here is a guide about how to quickly create the project based on template for our V10 map, http://wiki.thinkgeo.com/wiki/map_suite_project_template_guide

Regards,

Ethan