Label to generate the openstreetmap iframe from the country and region.
Go to file
2018-12-16 21:49:35 +01:00
demo.jpg Add files via upload 2018-12-14 14:07:02 +01:00
example.html Update example.html 2018-12-16 21:47:34 +01:00
LICENSE Initial commit 2018-12-14 13:30:11 +01:00
README.md Update README.md 2018-12-16 21:49:35 +01:00
tag.map Update tag.map 2018-12-14 14:01:48 +01:00

Openstreetmap custom tag map

Label to generate the openstreetmap iframe from the country and region.

Demo

<map address="valencia" region="spain" width="100%" height="300"></map>

Build the following result:

Install

1 Add Javascript dependencies.

  • Axios
  • Riot
  • Riot compiler
  • Openstreetmap Tag template
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/riot/3.13.2/riot.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/riot/3.13.2/riot+compiler.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/tanrax/openstreetmap-tag-map@1.0.0/tag.map" type="riot/tag"></script>

2 Mount Component

<script>
    document.addEventListener('DOMContentLoaded', function () {
        riot.mount('*')
    });
</script>

3 Add the HTML tag with your settings

<map address="valencia" region="spain" width="100%" height="300"></map>