Closed MoritzLost closed 1 year ago
Sounds good. I'll take a look into it, and try to have this done within the next few weeks.
This is done. It works pretty much how you described...
config/mapbox.php
file (using the new fieldParams
option).These changes will go out in the next release (hopefully within the next few weeks). If you want to take it for a spin before then, feel free to pull the latest dev version...
"doublesecretagency/craft-mapbox": "dev-v1-dev"
@lindseydiloreto Thanks! Just gave it a try, both the automatic language detection (tested in de and en) and forcing a specific language via the config work great! 🚀
@MoritzLost Awesome, thanks for reporting back! 👍
Great news, v1.1 has been officially released with these changes. Thanks for the feature request! 🎉
@lindseydiloreto Awesome, thanks!
I've noticed that the address field always returns results in English, which is not great for sites in a different language. I haven't found a way to configure the language for the address autofill, or did I miss it?
The API supports a
language
parameter to control the language for search results.I think this should be addressed (pun alert) in the following ways:
fieldParams
config option).