Skip to main content

maplibre_geolocator 0.1.0-pre.1 copy "maplibre_geolocator: ^0.1.0-pre.1" to clipboard
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.

1
likes
150
points
--
downloads

Documentation

Documentation
API reference

Publisher

verified publisherjoscha-eckert.de

Shows the positions of the geolocator package with the UserLocationLayer of the maplibre package.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#map #maplibre #location

License

BSD-3-Clause (license)

Dependencies

flutter, geolocator, maplibre

More

Packages that depend on maplibre_geolocator