Skip to main content

vmap 0.26.0 copy "vmap: ^0.26.0" to clipboard
vmap: ^0.26.0 copied to clipboard

Vector maps for flutter_map: draws any MapLibre style with the plain Flutter canvas, with labels in every script, pins, overlays and offline tiles.

example/example.md

vmap example #

A map with vmap's built in style, as a flutter_map layer:

import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'package:vmap/vmap.dart';

void main() => runApp(const MaterialApp(home: MapPage()));

class MapPage extends StatelessWidget {
  const MapPage({super.key});

  @override
  Widget build(BuildContext context) => Scaffold(
    body: FlutterMap(
      options: const MapOptions(
        initialCenter: LatLng(36.19, 44.01),
        initialZoom: 13,
      ),
      children: [
        VmapLayer(
          style: VmapStyle.url('https://tiles.openfreemap.org/styles/liberty'),
          userAgentPackageName: 'com.example.app',
        ),
      ],
    ),
  );
}

Or the whole map in one widget, with vmap's own gestures:

VmapMap(
  initialCenter: const LatLng(36.19, 44.01),
  style: VmapStyle.light,
)

The showcase app in this folder switches between styles, place icons and layers, and runs the benchmark.

0
likes
160
points
224
downloads
screenshot

Documentation

API reference

Publisher

verified publisherarin.at

Weekly Downloads

Vector maps for flutter_map: draws any MapLibre style with the plain Flutter canvas, with labels in every script, pins, overlays and offline tiles.

Repository (GitHub)
View/report issues

Topics

#map #maps #flutter-map #vector-tiles #maplibre

License

MIT (license)

Dependencies

dart_earcut, flutter, flutter_map, latlong2, web

More

Packages that depend on vmap