ol/Overlay/Tooltips is a popup to display information on the fly.
This example shows how to display measure informations while drawing.
-
You can link a ol.Feature using setFeature() method to display information about the feature (measure).
-
Overwrite the getHTML() method to show your own feature information.
-
Overwrite the formatLength() or formatArea method to change measure units.
The
Edit bar example show how to show information while editing.