Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7b7b8fade1 | ||
|
f959d33973 | ||
|
ed7302e111 | ||
|
43c454458e |
15
README.md
15
README.md
@ -10,7 +10,7 @@ Label to generate the openstreetmap iframe from the country and region.
|
||||
|
||||
Build the following result:
|
||||
|
||||
<img src="https://min.gitcdn.link/cdn/tanrax/openstreetmap-tag-map/master/demo.jpg">
|
||||
<img src="https://cdn.jsdelivr.net/gh/tanrax/openstreetmap-tag-map/demo.jpg">
|
||||
|
||||
## Install
|
||||
|
||||
@ -19,15 +19,16 @@ 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="map.tag" type="riot/tag"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/tanrax/openstreetmap-tag-map@1.0.0/tag.map" type="riot/tag"></script>
|
||||
```
|
||||
|
||||
### 2 Mount Riot
|
||||
### 2 Mount Component
|
||||
|
||||
``` html
|
||||
<script>
|
||||
@ -37,13 +38,7 @@ Build the following result:
|
||||
</script>
|
||||
```
|
||||
|
||||
### 3 Download and link the label template
|
||||
|
||||
``` html
|
||||
<script src="map.tag" type="riot/tag"></script>
|
||||
```
|
||||
|
||||
### 4 Add the HTML tag with your settings
|
||||
### 3 Add the HTML tag with your settings
|
||||
|
||||
``` html
|
||||
<map address="valencia" region="spain" width="100%" height="300"></map>
|
||||
|
@ -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://raw.githubusercontent.com/tanrax/openstreetmap-tag-map/master/tag.map" type="riot/tag"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/tanrax/openstreetmap-tag-map@1.0.0/tag.map" type="riot/tag"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
riot.mount('*')
|
||||
|
Loading…
x
Reference in New Issue
Block a user