Compare commits

...

4 Commits

Author SHA1 Message Date
Andros Fenollosa
7b7b8fade1
Update README.md 2018-12-16 21:49:35 +01:00
Andros Fenollosa
f959d33973
Update README.md 2018-12-16 21:48:54 +01:00
Andros Fenollosa
ed7302e111
Update example.html 2018-12-16 21:47:34 +01:00
Andros Fenollosa
43c454458e
Update README.md 2018-12-16 21:44:03 +01:00
2 changed files with 6 additions and 11 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://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>

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://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('*')