1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Map with many records [SOLVED]

Discussion in 'Professional Support' started by nofc_fro, Jul 20, 2018.

  1. nofc_fro

    nofc_fro Member

    Level: Community
    Hi, I have linked a map to a list correctly. The problem is that this list has almost 2000 address records and the map is loaded slowly. In fact, while the records are displayed for pages of 10 records, they are all displayed in the map. How can I solve this problem?

    Do you recommend a particular filter?

    Thank you
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    I assume you are running a recent Fabrik version?

    In the viz settings "Advanced" you can limit the number of markers, but there's not something like pagination, it's then always showing the first x markers (records).
    You can enable marker clustering so you won't get thousands of single markers but cluster markers (showing the number and expanding if zooming in).

    To speed up loading time and/or set e.g. required filters etc. I would:

    In Fabrik options "Global" set "Unpublish cloned elements"=yes; this is my preferred way of doing it, afterwards you have to enable new elements you really need;
    (You can also keep the default "Unpublish cloned elements"=no, then you have to unpublish all new elements you don't need...)

    • copy the list (this will give you a new list/form/groups/elements all on the same underlying database table; these "child elements" are enabled or disabled depending on the Option setting)
    • enable only the elements you need in your map (i.e. id, googlemap; additional elements only if you need them for filtering or in the bubble template)
    • set all enabled elements to "show in list" = no (if you don't need the "list-rendered" view in the bubble template)
    • you can add required filters
    • you can add prefilters
    • ...
    Use this list in your googlemap viz.
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    It is unlikely you'll get 2000 records to display on a map viz anything like "fast".

    The practical limit is usually in the hundreds.

    As well as the stuff that Troester suggests, another option is the "defer loading" option on the map viz, which changes it from loading the list data during the map viz page load (which leads to a long delay with nothing visible) to loading an empty map, then doing an AJAX load of the markers. This at least means the page and map load immediately.

    -- hugh
    troester likes this.
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    I didn't know this option:)
  5. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    I added it relatively recently (earlier this year), while working with a client who needed to display about 500 markers. It means we can at least display the map with a loading spinner, rather than a blank page.

    -- hugh

Share This Page