Skip to content

Commit

Permalink
add a note about accessing OpenLayers
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed May 26, 2022
1 parent 9f1adc8 commit 11aa480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/Geolocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default function Geolocation(): JSX.Element {
const geoloc = e.target as OLGeoLoc;
setPos(new Point(geoloc.getPosition()));
setAccuracy(geoloc.getAccuracyGeometry());

// Low-level access to the OpenLayers API
this.context.map.getView().fit(geoloc.getAccuracyGeometry(), {
duration: 250,
maxZoom: 15
Expand Down

0 comments on commit 11aa480

Please sign in to comment.