ProfessionalWiki / Maps

🗺 Maps is the MediaWiki extension that enables visualization of geographic data with dynamic embedded maps.
https://maps.extension.wiki
Other
74 stars 61 forks source link

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

Open georgjaehnig opened 2 years ago

georgjaehnig commented 2 years ago

Setup

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.

JeroenDeDauw commented 2 years ago

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

georgjaehnig commented 2 years ago

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 commented 2 years ago

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.

JeroenDeDauw commented 2 years ago

Did you set egMapsDefaultGeoService in your configuration?

georgjaehnig commented 2 years ago

Yes:

$egMapsDefaultGeoService = 'google';
JeroenDeDauw commented 2 years ago

Did you already have that when you reported the issue?

georgjaehnig commented 2 years ago

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?

JeroenDeDauw commented 2 years ago

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

georgjaehnig commented 2 years ago

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 commented 2 years ago

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