CoralMapGeolocateControl
CoralMapGeolocateControl provides a button that uses the browserβs geolocation API to locate the user on the map.
Import
import { CoralMapGeolocateControl } from '@krakentech/coral-maps';Basic usage
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl />
</CoralMap>Properties
Position
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl position="top-left" />
</CoralMap>Size
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl size="large" />
</CoralMap>Icon Size
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl iconSize="large" />
</CoralMap>Color
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl color="secondary" />
</CoralMap>Icon Color
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl iconColor="secondary" />
</CoralMap>Variant
<CoralMap mapboxAccessToken="...">
<CoralMapGeolocateControl variant="outline" />
</CoralMap>Full API
Last updated on