Skip to content

Performance issue with markers in ocean/no address #378

Open

Description

@urgentdotagency

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions