GreenInfo-Network / MobileMapStarter2

Get a mobile app together in short order using Cordova + Leaflet + Bootstrap
Apache License 2.0
3 stars 0 forks source link

Add to map: geocoder / address search #3

Closed gregallensworth closed 7 years ago

gregallensworth commented 7 years ago

Add to the Map, a address search geocoder.

Trying to keep the map UI slim, a on-map magnifying-glass button could work well, to link to a new geocoder page. Address box, bounce it off Nominatim, zoom the map and head back to the Map page.

This being a template app, we won't be able to predict preferred use case and layout style, but having one at all would be a big step toward folks customizing it.

Bonus points: include Google and Bing geocoder JavaScript snippets. Despite being nonfunctional, with some comments about adding an API key, this could again go a long way toward someone having a working geocoded of their preference, in minutes.

gregallensworth commented 7 years ago

Added leaflet-control-geocoder as well as attribution in about.html

The UI is so sharp and compact, I'll keep it as is.