OpenLayers Draw Features
An "Official" Example With Events. No saving or displaying coordinates
This page adds getting coordinates
draw_feature_controller.js
Map these selections to drop down menu to Stimulus. Don't need to? Works anyway
Example of using the Draw interaction. Select a geometry type from the dropdown above to start drawing. To finish drawing, click the last point. To activate freehand drawing for lines, polygons, and circles, hold the Shift key. To remove the last point of a line or polygon, press "Undo".
< < < Use nav bar at left. < < < The following may not be complete
OpenLayers Basic Layer Switcher
Home Page
Next: OpenLayers with an OSM map