any_map_maplibre 1.0.0 copy "any_map_maplibre: ^1.0.0" to clipboard
any_map_maplibre: ^1.0.0 copied to clipboard

MapLibre GL adapter for any_map. Free, open-source map rendering with 3D buildings, vector tiles, and no API key required.

any_map_maplibre #

MapLibre GL adapter for any_map. Free, open-source map rendering with 3D buildings, vector tiles, and no API key required.

Features #

  • Full AnyMapController implementation with imperative overlay management
  • 3D building extrusions via enable3DBuildings()
  • Runtime style switching (Streets, Dark, Satellite, etc.)
  • Reactive overlay sync — markers, polylines, polygons, circles update on widget rebuild
  • Screen-to-LatLng and LatLng-to-screen coordinate conversion
  • Supports Android, iOS, Web, macOS, Windows, Linux

Usage #

import 'package:any_map/any_map.dart';
import 'package:any_map_maplibre/any_map_maplibre.dart';

AnyMapWidget(
  adapter: MapLibreAdapter(
    styleUrl: 'https://tiles.openfreemap.org/styles/liberty',
  ),
  initialCamera: AnyCameraPosition(
    target: AnyLatLng(17.3850, 78.4867),
    zoom: 12,
    tilt: 45,
  ),
  onMapCreated: (controller) {
    if (controller is MapLibreController) {
      controller.enable3DBuildings();
    }
  },
)

License #

MIT

0
likes
130
points
66
downloads

Documentation

API reference

Publisher

verified publisherramprasadsreerama.co.in

Weekly Downloads

MapLibre GL adapter for any_map. Free, open-source map rendering with 3D buildings, vector tiles, and no API key required.

Homepage
Repository (GitHub)
View/report issues

Topics

#maps #maplibre #openstreetmap

License

MIT (license)

Dependencies

any_map, flutter, maplibre_gl

More

Packages that depend on any_map_maplibre