Compare commits

..

No commits in common. "master" and "1.0.0" have entirely different histories.

2 changed files with 11 additions and 6 deletions

View File

@ -10,7 +10,7 @@ Label to generate the openstreetmap iframe from the country and region.
Build the following result:
<img src="https://cdn.jsdelivr.net/gh/tanrax/openstreetmap-tag-map/demo.jpg">
<img src="https://min.gitcdn.link/cdn/tanrax/openstreetmap-tag-map/master/demo.jpg">
## Install
@ -19,16 +19,15 @@ Build the following result:
- Axios
- Riot
- Riot compiler
- Openstreetmap Tag template
``` html
<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>
<script src="map.tag" type="riot/tag"></script>
```
### 2 Mount Component
### 2 Mount Riot
``` html
<script>
@ -38,7 +37,13 @@ Build the following result:
</script>
```
### 3 Add the HTML tag with your settings
### 3 Download and link the label template
``` html
<script src="map.tag" type="riot/tag"></script>
```
### 4 Add the HTML tag with your settings
``` html
<map address="valencia" region="spain" width="100%" height="300"></map>

View File

@ -6,7 +6,7 @@
<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>
<script src="https://raw.githubusercontent.com/tanrax/openstreetmap-tag-map/master/tag.map" type="riot/tag"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
riot.mount('*')