Maps icon indicating copy to clipboard operation
Maps copied to clipboard

Google Maps don't find location / "not a LatLngBounds ..."

Open georgjaehnig opened this issue 3 years ago • 10 comments

Setup

  • Maps version: 9.0.7
  • MW version: 1.37.2
  • PHP version: 8.0.19
  • SMW version (if applicable):

Issue

Detailed description of the issue and a stack trace if applicable:

It seems the Google maps don't find the location anymore, even on the example page. The console reports a JS error:

not a LatLngBounds or LatLngBoundsLiteral: not an Object

Can someone else confirm?

Steps to reproduce the observation (recommendation is to use the sandbox):

Go on the example page.

georgjaehnig avatar Jun 11 '22 00:06 georgjaehnig

Looks like a general geocoding issue. Can you try switching to leaflet and see if it works there? I expect it does not.

JeroenDeDauw avatar Jun 11 '22 13:06 JeroenDeDauw

It's not working on the very example page of this extension (maps.extension.wiki). So I can't make the changes for testing myself.

Interestingly, a few Google maps do work.

Looking at leaflet, a few work and a few don't work, too.

georgjaehnig avatar Jun 11 '22 13:06 georgjaehnig

It might have to do something with "upgrading the Google Cloud Platform".

I've just did that for my own wiki: went here and got it offered.

And now, it works for all new Geocoding queries I am sending!

So if before I had

{{#display_map:Brandenburg Gate Berlin | service=google}}

it still doesn't work, but if I replace it with a new query like

{{#display_map:TV tower Berlin | service=google}}

the map displays fine.

So I guess it's now a caching issue and will resolve itself.

georgjaehnig avatar Jun 11 '22 13:06 georgjaehnig

Did you set egMapsDefaultGeoService in your configuration?

JeroenDeDauw avatar Jun 11 '22 13:06 JeroenDeDauw

Yes:

$egMapsDefaultGeoService = 'google';

georgjaehnig avatar Jun 11 '22 13:06 georgjaehnig

Did you already have that when you reported the issue?

JeroenDeDauw avatar Jun 11 '22 14:06 JeroenDeDauw

Yes. But again: I reported what I have seen on maps.extension.wiki, not what happens on my wiki!

Do you also see the maps not being displayed on maps.extension.wiki?

georgjaehnig avatar Jun 11 '22 14:06 georgjaehnig

Yes, there appears to be a geocoding issue on maps.extension.wiki. Maps with coordinates show, those with addresses do not.

JeroenDeDauw avatar Jun 11 '22 14:06 JeroenDeDauw

Yup, and when you try to geocode a completely new place, e.g.

{{#display_map:TV tower Berlin | service=google}}

does it get displayed?

georgjaehnig avatar Jun 11 '22 14:06 georgjaehnig

So on my wiki, it works again. I conclude the problem was due to

  • some changes / expired trial on Google Cloud Platform that I had to upgrade
  • after the upgrade, Google Geocoding API still had the old (faulty) queries in cache. (Adding maps with new queries already worked.) Now, after 3 hours, the cache got cleared

georgjaehnig avatar Jun 11 '22 17:06 georgjaehnig