Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue with markers in ocean/no address #378

Open
urgentdotagency opened this issue Sep 20, 2023 · 0 comments
Open

Performance issue with markers in ocean/no address #378

urgentdotagency opened this issue Sep 20, 2023 · 0 comments
Labels

Comments

@urgentdotagency
Copy link

Hi,
We've been developing a site for a client who needed one map with a lot of offshore location markers (like in the middle of the ocean).
So we have multiple entries, each with a map field with the address hidden, and pull only the lat and lng values from the map field and use with mapbox.js on one page.
We noticed a heavy performance hit once they started populating the entries. Even at only 4 entries getting the lat/lng values add about a 1 second extra loading time (with caching disabled), and they need about 30 items.

I finally realized that it's solved by enabling the address field again and inputting random data to the address fields.
Would be great to not have to ask the client to input nonsense to avoid this issue:):)

Craft 4.5.4
Maps 4.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant