mapmetrics 0.1.1 copy "mapmetrics: ^0.1.1" to clipboard
mapmetrics: ^0.1.1 copied to clipboard

Permissive and performant mapping library that supports Mapbox Vector Tiles (MVT) powered by MapLibre SDKs.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:maplibre_example/animation_page.dart';
import 'package:maplibre_example/clustering_page.dart';
import 'package:maplibre_example/controller_page.dart';
import 'package:maplibre_example/events_page.dart';
import 'package:maplibre_example/gestures_page.dart';
import 'package:maplibre_example/kiosk_page.dart';
import 'package:maplibre_example/layers_circle_page.dart';
import 'package:maplibre_example/layers_mixed_page.dart';
import 'package:maplibre_example/layers_polygon_page.dart';
import 'package:maplibre_example/layers_polyline_page.dart';
import 'package:maplibre_example/menu_page.dart';
import 'package:maplibre_example/offline_page.dart';
import 'package:maplibre_example/parameters_page.dart';
import 'package:maplibre_example/style_layers_circle_page.dart';
import 'package:maplibre_example/style_layers_fill_extrusion_page.dart';
import 'package:maplibre_example/style_layers_fill_page.dart';
import 'package:maplibre_example/style_layers_heatmap_page.dart';
import 'package:maplibre_example/style_layers_hillshade_page.dart';
import 'package:maplibre_example/style_layers_line_page.dart';
import 'package:maplibre_example/style_layers_raster_page.dart';
import 'package:maplibre_example/style_layers_symbol_page.dart';
import 'package:maplibre_example/styled_map_page.dart';
import 'package:maplibre_example/two_maps_page.dart';
import 'package:maplibre_example/user_location_page.dart';
import 'package:maplibre_example/widget_layer_interactive_page.dart';
import 'package:maplibre_example/widget_layer_page.dart';
import 'package:mapmetrics/mapmetrics.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'MapMetrics Demo',
      initialRoute: MenuPage.location,
      theme: ThemeData(colorSchemeSeed: Colors.blue),
      darkTheme: ThemeData(
        brightness: Brightness.dark,
        colorSchemeSeed: Colors.blue,
      ),
      routes: {
        MenuPage.location: (context) => const MenuPage(),
        KioskPage.location: (context) => const KioskPage(),
        AnimationPage.location: (context) => const AnimationPage(),
        GesturesPage.location: (context) => const GesturesPage(),
        EventsPage.location: (context) => const EventsPage(),
        StyledMapPage.location: (context) => const StyledMapPage(),
        UserLocationPage.location: (context) => const UserLocationPage(),
        WidgetLayerPage.location: (context) => const WidgetLayerPage(),
        WidgetLayerInteractivePage.location:
            (context) => const WidgetLayerInteractivePage(),
        OfflinePage.location: (context) => const OfflinePage(),
        StyleLayersSymbolPage.location:
            (context) => const StyleLayersSymbolPage(),
        StyleLayersCirclePage.location:
            (context) => const StyleLayersCirclePage(),
        StyleLayersHeatmapPage.location:
            (context) => const StyleLayersHeatmapPage(),
        StyleLayersHillshadePage.location:
            (context) => const StyleLayersHillshadePage(),
        StyleLayersFillPage.location: (context) => const StyleLayersFillPage(),
        StyleLayersFillExtrusionPage.location:
            (context) => const StyleLayersFillExtrusionPage(),
        StyleLayersRasterPage.location:
            (context) => const StyleLayersRasterPage(),
        StyleLayersLinePage.location: (context) => const StyleLayersLinePage(),
        LayersMixedPage.location: (context) => const LayersMixedPage(),
        LayersCirclePage.location: (context) => const LayersCirclePage(),
        //  LayersMarkerPage.location: (context) => const LayersMarkerPage(),
        CustomMarkerPage.location: (context) => const CustomMarkerPage(),
        LayersPolylinePage.location: (context) => const LayersPolylinePage(),
        LayersPolygonPage.location: (context) => const LayersPolygonPage(),
        ParametersPage.location: (context) => const ParametersPage(),
        ControllerPage.location: (context) => const ControllerPage(),
        TwoMapsPage.location: (context) => const TwoMapsPage(),
        ClusteringPage.location: (context) => const ClusteringPage(),
      },
    );
  }
}
0
likes
115
points
69
downloads
screenshot

Documentation

API reference

Publisher

verified publishermapatlas.xyz

Weekly Downloads

Permissive and performant mapping library that supports Mapbox Vector Tiles (MVT) powered by MapLibre SDKs.

Repository (GitHub)
View/report issues

Topics

#map #mapmetrics #mvt

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, flutter_web_plugins, geotypes, html, jni, objective_c, pointer_interceptor, url_launcher, web

More

Packages that depend on mapmetrics

Packages that implement mapmetrics