Skip to content

filter map (or other visualization page) to a subset of the collection #103

@eastofesten

Description

@eastofesten

I want to have be able to show the map & timeline for a subset of my collection as well as my full collection. The subset will be based on location (for example, I want to be able to show the map for "New York" and have a separate map for all items including New York.) I should be able to do this by editing the map-js.html like so:
`{%- assign items = items | where_exp: 'item', 'item.objectid != nil' | where_exp: 'item','item.latitude' -%}

{%- capture place -%}
{{ page.location }}
{%- endcapture -%}

{%- assign items = items[place] -%}`

But this doesn't seem to filter as expected (my New York map shows no items). Is there a recommended way to do such a thing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions