Skip to content

Commit

Permalink
feat(landing): move zoom to location to top left (#2142)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
blacha and kodiakhq[bot] committed Apr 5, 2022
1 parent 8211428 commit be4cd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/landing/src/components/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Basemaps extends Component<unknown, { isLayerSwitcherEnabled: boole
if (Config.map.tileMatrix === GoogleTms) {
if (this.controlGeo != null) return;
this.controlGeo = new maplibre.GeolocateControl({});
this.map.addControl(this.controlGeo);
this.map.addControl(this.controlGeo, 'top-left');
} else {
if (this.controlGeo == null) return;
this.map.removeControl(this.controlGeo);
Expand Down

0 comments on commit be4cd38

Please sign in to comment.