numero2 / contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data.
https://www.numero2.de/contao/erweiterungen/storelocator.html
GNU Lesser General Public License v3.0
13 stars 8 forks source link

Map invisible on page load #55

Closed sietsevandreven closed 6 months ago

sietsevandreven commented 6 months ago

The Google Map is invisible on page load, only the controls and grey background are visible. When you click on a store tile, the map moves to the location as it should. I cannot find what causes the issue. I replaced all modified templates by original ones.

Contao 4.13.40 PHP 8.1 Storelocator 4.2.9

bennyborn commented 6 months ago

Could you, for testing purposes, disable the CSS of your page / theme? I have a strong feeling that there is a styling problem that interferes with Google Maps.

sietsevandreven commented 6 months ago

Disabling the style doesn't help...

bennyborn commented 6 months ago

Can you confirm that the "gray background" is not just a really far zoomed in map? Are there any errors in your browsers developer console? Any chance of a public link (can be sent via e-mail)?

sietsevandreven commented 6 months ago

The map is not zoomed in, the zoom out button is grayed out. The color of the map is the same as the inline background-color. The link is: https://www.envoz.nl/voor-ouders/zwemles-in-de-buurt.html

bennyborn commented 6 months ago

It seems like at least one of your markers has some incorrect latitude and longitude values:

image

I guess you've imported those values from somewhere else?

sietsevandreven commented 6 months ago

That seems to be the problem indeed.

Thank you very much for your time and effort. I think #56 would be a very nice improvement.