simplemap icon indicating copy to clipboard operation
simplemap copied to clipboard

Can't set Google Maps Geo Token: field remains empty on Save

Open romainpoirier opened this issue 3 years ago • 3 comments

Description

  • I'm browsing /admin/maps/settings and trying to fill the Geocoding > Geo Service : Google Maps + Geo Token field;
  • 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

romainpoirier avatar Jul 14 '22 15:07 romainpoirier

Update:

  • After uninstall/reinstall the plugin + set the map token from the config/simplemap.php file, I can now use the map field from the CP.
  • However, on the /admin/maps/settings page, 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;

romainpoirier avatar Jul 15 '22 07:07 romainpoirier

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.

alexjcollins avatar Jul 18 '22 13:07 alexjcollins

+1 key won't save in settings.

chadcrowell avatar Aug 16 '22 22:08 chadcrowell