mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Remove marker when GeolocateControl is disabled (#960)
This commit is contained in:
parent
737b80d362
commit
d24efc4602
@ -162,6 +162,7 @@ export default class GeolocateControl extends BaseControl<
|
||||
|
||||
if (this.props.showUserLocation) {
|
||||
this._mapboxGeolocateControl.on('geolocate', this._updateMarker);
|
||||
this._mapboxGeolocateControl.on('trackuserlocationend', this._updateMarker);
|
||||
}
|
||||
|
||||
return this._mapboxGeolocateControl.trigger();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user