stefanocudini / leaflet-locationpicker

Simple location picker on Leaflet map
https://opengeo.tech/maps/leaflet-locationpicker/
MIT License
55 stars 13 forks source link

Added option for always open Maps (without close button) and for rela… #9

Closed paulwuertz closed 4 years ago

paulwuertz commented 6 years ago

Added option for always open Maps (without close button) and for relative fixed container for the map to appear in. Just see the example.html, which has both features showing in one example. I needed it for a form in another project. I think the options make most sense combined, but ya, who knows. Would be glad about some feedback, because I am definitly far far from a modern JS dev, normally I am an embedded guy ^^

stefanocudini commented 4 years ago

hi @paulwuertz This branch has conflicts that must be resolved

paulwuertz commented 4 years ago

I rebased on your master :)

stefanocudini commented 4 years ago

hi tnkyou @paulwuertz what is new option mapContainer? I'm just added new section in README docs: https://github.com/stefanocudini/leaflet-locationpicker/blob/master/README.md#options

paulwuertz commented 4 years ago

When you want to have a fixed container on your site to display the map in you need to specify an element selector for which element will be the container... Probably I should have described it in the simple.html example with one phrase. Hope you like the feature :) I find it was nice for fine tuning and visual feedback in some situations.

stefanocudini commented 4 years ago

updated version 0.3.2 on npm: https://www.npmjs.com/package/leaflet-locationpicker