mapbox-gl-geocoder icon indicating copy to clipboard operation
mapbox-gl-geocoder copied to clipboard

Way to clear marker pin/input without focusing

Open stevage opened this issue 5 years ago • 1 comments

There doesn't seem to be a way to remove the marker pin, other than .clear() which has the side-effect of focusing the control.

(At least it is possible to clear the search box, using .setInput(''))

stevage avatar Jun 07 '20 13:06 stevage

If we implemented #239 to provide a focus method, then we could change clear to not focus.

andrewharvey avatar Jun 07 '20 23:06 andrewharvey