Thanks for your response.
I still have some questions.
By doing some research on the Wpf forum, I found this post (Guidelines to customize the popup tooltip window)
I tested it, and for my problem, it works well. When hovering over the button, the tooltip appears well. And since the tooltip is of type object, I can create a popup with images, etc …
The disadvantage is that the button is visible all the time for all zoom levels ;-(
There is also the concept of markeroverlay in Thikgeo Wpf
I tried to use FeatureMarkerOVerlay but, the png aqua.png does not appear (we use version 10.5.6) (see file code below MainWindow.xaml.cs)
What element have I forgotten to be able to view the markeroverlay?
The advantage of the featureoverlay is that you can control the visibility of these markers according to the zoom level.
The disadvantage is that the tooltip is of type string ;-(
You also propose another type of markeroverlay, SimpleMarkerOverlay
What is the difference between two types of MarkerOverlay? Under what conditions is it better to use a simpleMarkerOverlay vs featureMarkerOverlay?
Another example is the dynamicoverlay (https://github.com/ThinkGeo/DynamicMarkerOverlaySample-ForWpf/blob/master/DynamicMarkerOverlay.sln).
I have not tested yet but the purpose of this example is to be able to view a popup over the marker, is that it?
To conclude, my goal is to be able to visualize a tooltip on the flyover of a feature or on a click of a feature :
Option 1 : add button in a feature and customized popup a button’s toolip
- Advantage: we can put any content in the tooltip like an image, text, etc. (see screen shot TooltipSample.jpg)
- Inconvenience: The button is all the time visible at all zoom levels of the map, while the layer is only visible at zoom level 9 ;-(
Option 2: Use FeatureMarkerOVerlay :
- Advantage: Allows to visualize the marker at a certain level of zoom
a) I could not see the marker ;-( (ie. screen shot MainWindow.xaml.cs)
b) The tooltip is of type string, so we can not put rich info in the tooltip
Option 3 : Utiliser dynamicoverlay
- can we visualize a rich tooltip (image, txt, etc …) and combine the visibility of markers at a certain level of zooms …?
Which of these options best fits my problem ?
And above all, which option offers the best performance?
Because currently, in the map, we have 4 overlays and soon 5 if we add the concept of popupoverlay.
This has the consequence of having some slowness when navigating on the map ;-(
Thank you very much for your help.
And if a point is not clear, do not hesitate to tell me.
Thanks a lot.
MainWindow.xaml.cs (2.6 KB)