maplibre_geolocator 0.1.0-pre.1
maplibre_geolocator: ^0.1.0-pre.1 copied to clipboard
Shows the positions of the geolocator package with the UserLocationLayer of the maplibre package.
maplibre_geolocator #
Shows the positions of geolocator with
the UserLocationLayer of maplibre.
MapLibreMap(
options: MapOptions(style: MapStyle.url('...')),
children: [
UserLocationLayer(locations: geolocatorUserLocations()),
],
)
Ask for the location permission before the layer listens, for example with
Geolocator.requestPermission(), and set up each platform as the
geolocator documentation describes. On Windows, positions arrive only
after the app asked, and permission_handler does not ask there. See the
User Location chapter
for more.