flutter_open_street_map

Last updated:

0 purchases

flutter_open_street_map Image
flutter_open_street_map Images
Add to Cart

Description:

flutter open street map

A flutter place search and location picker plugin that uses Open Street Map.
it is completely free and easy to use.
Features #

Pick location from map
Search location by places
Easy to use

Demo #


Objective #
This lib was designed to use open street map to set location on Flutter applications for all platforms.
Getting Started #
Import the following package in your dart file
import 'package:flutter_open_street_map/open_street_map.dart';
copied to clipboard
To use is simple, just call the widget bellow. You need to pass the default center position of the map and a onPicked method to get the picked position from the map.
FlutterOpenStreetMap(
center: LatLong(23, 89),
onPicked: (pickedData) {
})
copied to clipboard
Then Usage #
Now if you press Set Current Loatiion button, you will get the pinned location by onPicked method.
In the onPicked method you will receive pickedData.
pickedData has two properties.

latLong
address

latLong has two more properties.

latitude
longitude

For example
FlutterOpenStreetMap(
center: LatLong(23, 89),
onPicked: (pickedData) {
print(pickedData.latLong.latitude);
print(pickedData.latLong.longitude);
print(pickedData.address);
})
copied to clipboard
You can get latitude, longitude and address like that.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.