1

My map isn't showing all of the markers that it should. I am querying a user group to return the locations as follows:

{% set locations = craft.users.group('fullMembership') %} {{ craft.smartMap.map(locations, options) }}  

FYI There are around 400 users in this group and only a small amount of them have logged in and set their Map Pin.

Each user in this group has a profile page; Those user who have located their address all show their map pin on their profile. However the members Directory index map is incomplete, some pins are missing.

1
  • It seems that any new users that I update with their lat / lng aren't added to the directory map. Jan 5 '16 at 17:10
2

As Craft defaults to only returning 100 elements, setting the limit(null) parameter to the query fixed this issue.

{% set locations = craft.users.group('fullMembership').limit(null) %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.