OpenStreet Map

Ralf Member

Hi,
I noticed that the map will not load if the album has a lot of images.
Example:
https://www.ralf-kerkhoff-bilderwelten.de/places/Geocode/

The big white space at the top is where usually the map will be displayed.
I have set the album layout to "Grid" because with Masonry layout the album will load forever.
(Disabling Openstreet Map will load the album without problems).

I have created a few test albums - it seems that the problem occurs when the album has more than 1600 images.

I did not find a limit in the plugins files....

Any ideas except commenting out the display of OSM in the album.php file?

Ralf

Comments

  • acrylian Administrator, Developer

    Do you have the marker clusters option active? Maybe try to disable that. That is handled by a third party plugin to leaflet and might have issues with large numbers. I don't know…

    Any errors in the debug log in case it is something going wrong before that?

  • fretzl Administrator, Developer

    I see you're using the tidy-assets plugin. I believe it causes some JavaScript conflict. Try turning it off.

  • Ralf Member

    Hi Fretzl,
    turning off tidy assets would solve the issue.
    What makes me wonder:
    Even if I exclude all filesfrom the openstreetmap plugin in tidy assets:
    openstreetmap/Control.MiniMap.min.css
    openstreetmap/Control.MiniMap.min.js
    openstreetmap/L.Control.MousePosition.css
    openstreetmap/L.Control.MousePosition.js
    openstreetmap/leaflet-providers.js
    openstreetmap/leaflet.css
    openstreetmap/leaflet.js
    openstreetmap/leaflet.js.map
    openstreetmap/leaflet.markercluster.js
    openstreetmap/leaflet.markercluster.js.map
    openstreetmap/MarkerCluster.css
    openstreetmap/MarkerCluster.Default.css
    openstreetmap/openstreetmap.css

    It will only display a blank map without the location and number of images.

    Cheers
    Ralf

  • acrylian Administrator, Developer
    edited January 9

    Note that tidyAssets is not an officially supported plugin even if its author is associated ZP team member actually.

    It tries to optimize js/css a bit but it frequently causes trouble because it rewrites output. You generally don't need it actually.

  • Ralf Member

    OK, I disabled the plugin.
    With Zenphoto 1.6.5 it does not seem to have negative impact on the site speed.
    Probably it is impossible to improve a value of 100/100 and a CLS of 0.018 on mobile an 0 on desktop....

  • acrylian Administrator, Developer

    It is virtually impossible to get everything "green" on Google. The only sites I ever really managed that is pure static html… Although you should not be in the red area, even Google itself says that those values are not everything. Many big sites are not that good either.

  • acrylian Administrator, Developer

    Our own site is pretty good and we don't even use our own static html cache plugin.

Sign In or Register to comment.