OpenGeoscience / vtkMap

vtkMap
24 stars 13 forks source link

Adding text labels near markers created with vtkMapMarkerSet #115

Open embeddedmz opened 5 years ago

embeddedmz commented 5 years ago

I think it's interesting to add a text label near markers (like Google Maps).

vtkMapMarkerSet is already using vtkLabeledDataMapper (https://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/LabeledDataMapper) but not to label text labels (apparently). Otherwise, is it possible to change the marker by an icon ? (vtkImageActor or using the same technique used to display tiles)

I don't know if it's coherent to create a new vtkFeature dervied class, vtkTextFeature, to place text labels in the map (using a vtkTextActor).