photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: stephock on February 25, 2021, 03:42:39 PM

Title: Map Pane and API
Post by: stephock on February 25, 2021, 03:42:39 PM
I've been using the map pane with a Google API for a long time; now, I get an 'This page can't load Google Maps correctly' error.
I've requested and received a new API, added it to iMatch, but still get the same error.
What am I doing wrong?
Any ideas?
Title: Re: Map Pane and API
Post by: Mario on February 25, 2021, 05:16:33 PM
Do you have added a payment method (e.g. credit card) for your account?
Since 2019 Google requires a payment method in order to access services like the map or reverse geocoding.
Title: Re: Map Pane and API
Post by: Asgard on February 27, 2021, 03:25:04 PM
I don't have any solution, but unfortunately I have the same issue. My Google Maps stopped loading with the same error message as the original poster. The payment method seems OK and I don't see anything else apparently wrong in the Google settings. Perhaps Google has added another requirement for API usage that I and the OP do not fulfil.

Regards,
Anders
Title: Re: Map Pane and API
Post by: Mario on February 27, 2021, 04:34:37 PM
Google Maps works here without problems on two computers.
I did not change anything regarding my credentials or keys for over a year.

You can try to run the Map Panel in your web browser:

1. Open your web browser.
2. Press <F12> to open the developer tools.
3. Make sure the "Console" tab is visible (depends on the browser you use).
4. Navigate to http://127.0.0.1:50519/imatch/apps/FEATURES/mapapp/index.html to open the Map panel app directly.

Are there any error messages from Google in the console?
Title: Re: Map Pane and API
Post by: Asgard on February 27, 2021, 06:19:12 PM
That advice solved the issue for me! The console gave me a few errors when loading the map pane, and prompted me to enable billing and provided a link to to do so for my project that includes the Google API (with the already added payment method). I guess this was an effect of some sort of trial period ending since I opened my google cloud platform account recently, but that does not explain the problem of the OP.

Thanks for the assistance!

Anders
Title: Re: Map Pane and API
Post by: Mario on February 27, 2021, 08:23:58 PM
That was my initial guess.
Google no longer allows map API usage without an active payment method.
Even if you never exceed your free monthly quota. They probably want to know who's using their API and they need to protect their API from abuse of course.

I'd wish I could make this simpler by just routing this through my servers and pay for the map usage (Google, Bing, Here) for my user base.
Unfortunately, I'm not Adobe and I don't have this amount of money  ::)
That said, map usage is only available in Lr subscriptions. And it automatically disables when you no longer subscribe.
Title: Re: Map Pane and API
Post by: stephock on February 28, 2021, 03:38:48 PM
I cannot connect...

See attached screen dump.
Title: Re: Map Pane and API
Post by: Mario on February 28, 2021, 03:59:48 PM
Make sure you are using the correct port number. If the default port is not free, IMatch picks another port number automatically. Also, IMatch must be running.

To find the correct port:

The Info & Activity Panel (<F9>, <i>) shows the port used by IMatch.

Maybe quicker: Right-click on the "Info" app in the App Manager panel and select "Open in web browser..." from the menu.
This opens the app in your browser and you can see the active port:

http://127.0.0.1:50519/imatch/apps/info-app/index.html

The number shown in red is the number you must use to open the map panel. Your port number may differ.
Title: Re: Map Pane and API
Post by: stephock on February 28, 2021, 06:40:06 PM
Thanks, Mario.
The page opened, with no error messages from Google in the Console pane
Title: Re: Map Pane and API
Post by: Mario on February 28, 2021, 07:20:51 PM
But Google still refuses to load the map on your system? The map does not show in the browser?
And does not log any error message?