lovasoa / SQLpage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.46k stars 78 forks source link

Map Component - Ability to pass address instead of Lat/Long #61

Open f8dca opened 1 year ago

f8dca commented 1 year ago

Would it be possible to add a new parameter to the map component that would contain the address in plain text format ? In most real life use-case scenarios we have the physical address or name of the location and not a lat/lon pair.

When a plain text location is passed as parameter instead of lat/lon pair this should open: https://www.openstreetmap.org/search?query=Big%20ben%2C%20london

Thanks a lot

lovasoa commented 1 year ago

This feature is not part of leaflet, so it would not be trivial to add...

f8dca commented 1 year ago

I think there are a lot of leaflet plugins for geocoding: https://leafletjs.com/plugins.html#geocoding

I'm not very well versed in javascript - no idea what would it take to use any of these plugins.