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

[Feature request] Use addresses as well as locations #11

Open
AndyClifton opened this issue Nov 19, 2021 · 0 comments
Open

[Feature request] Use addresses as well as locations #11

AndyClifton opened this issue Nov 19, 2021 · 0 comments

Comments

@AndyClifton
Copy link

I have a data file containing locations encoded using a mixture of lat / long pairs and addresses. I would like to be able to add markers for the addresses if possible.

Ideally I could then plot all of the locations in one map using something like...

{% leaflet_map { "zoom" : 5,
                  "center" : [47, 10],
                "providerBasemap": "OpenStreetMap.HOT"} %}
    {%- for item in site.data.map -%}
        {% if item.location.latitude and item.location.longitude %}
            {% leaflet_marker { "latitude" : {{item.location.latitude}},
                        "longitude" : {{item.location.longitude}} } %}
        {% endif %}
    {% if item.location.address %}

    {% endif %}
  {% endfor %}
{% endleaflet_map %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant