AbduzZami / open_street_map_search_and_pick

GNU General Public License v3.0
15 stars 30 forks source link

default location to current location #13

Open mutairibassam opened 1 year ago

mutairibassam commented 1 year ago

Does the package support default location to be set automatically to user current location?

FlorianPix commented 1 year ago

I don't think so, but you can set the center (default location) yourself. Here's an example (line 46).

mutairibassam commented 1 year ago

Big thanks @FlorianPix. Yah, I noticed and did it from my side. I believe it's still a good feature to be added in the package.

I am willing to do a pr to add a new instance variable called userLocation which accept true/false and defaulted to false.

OpenStreetMapSearchAndPick(
    /// true or false - default false
    userLocation: true,
})