lat_lon_grid_plugin 0.1.3 copy "lat_lon_grid_plugin: ^0.1.3" to clipboard
lat_lon_grid_plugin: ^0.1.3 copied to clipboard

outdated

Adds a latitude / longitude grid as plugin to the [flutter_map](https://github.com/johnpryan/flutter_map/).

Pub

lat_lon_grid_plugin #

Adds a latitude / longitude grid as plugin to the flutter_map.

Getting Started #

Example application under /example/:

Example

Usage #

dependencies:
  flutter_map: any
  lat_lon_grid_plugin: any

Include the FlutterMap into your widget tree.

Please note: Make sure to place the MapPluginLatLonGridOptions() right after TileLayerOptions() so it does not consume touch events from other layer widgets.

  FlutterMap(
    mapController: _mapController,
    options: MapOptions(
      center: LatLng(37.7, 13.5),
      zoom: 7.0,
      plugins: [
        MapPluginLatLonGrid(),
      ],
    ),
    layers: [
      TileLayerOptions(
        urlTemplate:
            'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
        subdomains: ['a', 'b', 'c'],
      ),
      MapPluginLatLonGridOptions(
        lineColor: Colors.black,
        textColor: Colors.white,
        lineWidth: 0.5,
        textBackgroundColor: Colors.black,
        showCardinalDirections: true,
        showCardinalDirectionsAsPrefix: false,
        textSize: 12.0,
        showLabels: true,
        rotateLonLabels: true,
        placeLabelsOnLines: true,
        offsetLonTextBottom: 20.0,
        offsetLatTextLeft: 20.0,
      ),
    ],
  ),
13
likes
0
pub points
74%
popularity

Publisher

unverified uploader

Adds a latitude / longitude grid as plugin to the [flutter_map](https://github.com/johnpryan/flutter_map/).

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_map, latlong

More

Packages that depend on lat_lon_grid_plugin