Map Pane and API

Started by stephock, February 25, 2021, 03:42:39 PM

Previous topic - Next topic

stephock

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?

Mario

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.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Asgard

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

Mario

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?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Asgard

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

Mario

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.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

stephock

I cannot connect...

See attached screen dump.

Mario

#7
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.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

stephock

Thanks, Mario.
The page opened, with no error messages from Google in the Console pane

Mario

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?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook