flutter_osm_plugin 0.1.0+4 copy "flutter_osm_plugin: ^0.1.0+4" to clipboard
flutter_osm_plugin: ^0.1.0+4 copied to clipboard

outdated

openStreetMap plugin for flutter apps (only Android for now, iOS will be supported in future)

flutter_osm_plugin #

pub

osm plugin for flutter apps (only Android for now, iOS will be supported in future)

  • current position
  • change position
  • tracking user location

Getting Started #

Installing #

Add the following to your pubspec.yaml file:

dependencies:
  flutter_osm_plugin: ^0.1.0+4

Simple Usage #

Creating a basic OSMFlutter

OSMFlutter(
              key: osmKey,
              currentLocation: false,
              initPosition: GeoPoint(latitude: 47.35387, longitude: 8.43609),
        );

Declare GlobalKey to get selection #

GlobalKey<OSMFlutterState> osmKey = GlobalKey<OSMFlutterState>();

set current position #

osmKey.currentState.currentPosition()

zoomIN #

osmKey.currentState.zoom(2.)

zoomOut #

osmKey.currentState.zoom(-2.)

enabled track current position #

osmKey.currentState.trackMe()

initialise position #

osmKey.currentState.changeLocation(GeoPoint(latitude: 47.35387, longitude: 8.43609))

OSMFlutter

Properties Description
currentLocation enable the current position.
trackMyPosition enbaled tracking user position.
showZoomController show default zoom controller.
initPosition set default position showing in map

NB: #

for now the map working only for android,iOS will be available soon

MIT LICENCE

386
likes
0
pub points
97%
popularity

Publisher

unverified uploader

openStreetMap plugin for flutter apps (only Android for now, iOS will be supported in future)

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_plugin_android_lifecycle, location_permissions

More

Packages that depend on flutter_osm_plugin