Control - Coordinate onChange
tariqksoliman opened this issue · comments
Tariq Soliman commented
Add an optional onChange
callback parameter to the coordinate control.
Presently it can take in an element id but it only ever write lnglat coordinates to it. The use case to support is to support other coordinate types (easting/northing. relative, swap order, &c).
this.litho.addControl(
'myCoords',
this.litho.controls.coordinates,
{
onChange: (lng, lat, elev) => { // NEW
// Users choose how coordinates are processed
},
}
)