maplibre 0.0.2 copy "maplibre: ^0.0.2" to clipboard
maplibre: ^0.0.2 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/annotations_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_fill_extrusion_page.dart';
import 'package:maplibre_example/layers_fill_page.dart';
import 'package:maplibre_example/layers_heatmap_page.dart';
import 'package:maplibre_example/layers_hillshade_page.dart';
import 'package:maplibre_example/layers_line_page.dart';
import 'package:maplibre_example/layers_raster_page.dart';
import 'package:maplibre_example/layers_symbol_page.dart';
import 'package:maplibre_example/menu_page.dart';
import 'package:maplibre_example/parameters_page.dart';
import 'package:maplibre_example/styled_map_page.dart';
import 'package:maplibre_example/two_maps_page.dart';
import 'package:maplibre_example/web_controls_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'MapLibre Demo',
      initialRoute: MenuPage.location,
      theme: ThemeData(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(),
        LayersSymbolPage.location: (context) => const LayersSymbolPage(),
        LayersCirclePage.location: (context) => const LayersCirclePage(),
        LayersHeatmapPage.location: (context) => const LayersHeatmapPage(),
        LayersHillshadePage.location: (context) => const LayersHillshadePage(),
        LayersFillPage.location: (context) => const LayersFillPage(),
        LayersFillExtrusionPage.location: (context) =>
            const LayersFillExtrusionPage(),
        LayersRasterPage.location: (context) => const LayersRasterPage(),
        LayersLinePage.location: (context) => const LayersLinePage(),
        WebControlsPage.location: (context) => const WebControlsPage(),
        AnnotationsPage.location: (context) => const AnnotationsPage(),
        ParametersPage.location: (context) => const ParametersPage(),
        ControllerPage.location: (context) => const ControllerPage(),
        TwoMapsPage.location: (context) => const TwoMapsPage(),
      },
    );
  }
}
3
likes
160
pub points
27%
popularity

Publisher

verified publisherjoscha-eckert.de

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#map #maplibre #mvt

Documentation

Documentation
API reference

Funding

Consider supporting this project:

www.paypal.com

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, geotypes, web

More

Packages that depend on maplibre