Skip to content

Commit

Permalink
Add comment about the modification
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Dec 10, 2024
1 parent aa6b713 commit cf33981
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MaptilerGeolocateControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ export class MaptilerGeolocateControl extends GeolocateControl {
}
};

// We are overwriting the method _setErrorState from Maplibre's GeolocateControl because the
// case BACKGROUND_ERROR is not dealt with in the original function and yields an error.
// Related issue: https://github.com/maplibre/maplibre-gl-js/issues/2294
_setErrorState() {
switch (this._watchState) {
case "WAITING_ACTIVE":
Expand Down

0 comments on commit cf33981

Please sign in to comment.