simplemap
simplemap copied to clipboard
Can't set Google Maps Geo Token: field remains empty on Save
Description
- I'm browsing
/admin/maps/settingsand trying to fill theGeocoding>Geo Service:Google Maps+Geo Tokenfield; - After copy-paste my token, I'm clicking
Save, but the field value disappears on page reload; - I don't see any error in the log, but I can see my token in the
$_POST = ['settings' => ['geoToken']]; - From the CP, when I'm browsing an Entry with a field map, the search feature is not available, and I can see this error in the JS console:
Google Maps JavaScript API error: RefererNotAllowedMapError | Your site URL to be authorized;
Infos
Craft CMS version: 4.1.4.1 Plugin version: v4.0.3 (Lite, in trial mode) PHP version: 8.1
Update:
- After uninstall/reinstall the plugin + set the map token from the
config/simplemap.phpfile, I can now use the map field from the CP. - However, on the
/admin/maps/settingspage, from the Geo Token field value is still not showing and should maybe be fixed. - As an UX suggestion, I would also recommend adding a loading icon when an address is typed and before the result is shown in the autocomplete of the address field: because sometimes, there's a long delay to show the suggested addressees, and I was feeling like something went wrong;
Hey @romainpoirier Thanks for the update, really appreciate it.
We'll definitely look into the input issue, where the value appears to be cleared. I like your suggestion for the spinner when searching, we'll get that included in the next update, too.
+1 key won't save in settings.