ThinkGeo.com    |     Documentation    |     Premium Support

Add features to map

Hello,
I want to add some features to the wpf map. Each feature has a specific latlon and also has an icon and a tooltip. In case of markers I know how to do this but I don’t know how to do this with features. Can you provide me an example for how to do this?

Hi Marios,

Give each feature a icon style is easy via our value style, you just need to set special value in column values of feature, and it should works, you can refer this sample: https://github.com/ThinkGeo/DefaultValueStyleSample-ForWpf

But we don’t have the tooltip for feature, I think you can try to implement a popup which look like tooltip, and it can be popup when you click on a feature.

This sample shows how to find the feature which you clicked: https://github.com/ThinkGeo/GetFeaturesClickedOnSample-ForWinForms

And you can shows the popup when a feature get clicked.

Wish that’s helpful.

Regards,

Ethan