simple_tiles_map_offline 1.1.0 copy "simple_tiles_map_offline: ^1.1.0" to clipboard
simple_tiles_map_offline: ^1.1.0 copied to clipboard

Utiliza fondos de mapa de OpenStreetMap, google, Stamen, CartoMap, Esri de forma sencilla en offline.

Simple Tiles Map Offline #

Capturas #

Cómo utilizar? #

Ejemplo de uso básico

import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'package:simple_tiles_map_offline/batabase/store_simple_tiles_map.dart';
import 'package:simple_tiles_map_offline/simple_tiles_map_offline.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await StoreSimpleTilesMap.init();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    LatLng? mapCenter = const LatLng(-16.480954, -68.189594);
    MapOptions mapOptions = MapOptions(
      initialCenter: mapCenter,
      maxZoom: 19,
      minZoom: 5,
    );
    return MaterialApp(
      title: 'Tiles Basemap',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Mapa Base ${TypeMap.stamenWater}'),
        ),
        body: Column(
          children: [
            SimpleTilesMapOffline(
              typeMap: TypeMap.osm,
              mapOptions: mapOptions,
            ),
          ],
        ),
      ),
    );
  }
}


3
likes
140
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

Utiliza fondos de mapa de OpenStreetMap, google, Stamen, CartoMap, Esri de forma sencilla en offline.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_map, flutter_map_tile_caching, isar, isar_flutter_libs, path_provider

More

Packages that depend on simple_tiles_map_offline