Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
tests:start [2016/03/25 19:28] – gepeto | tests:start [2024/02/09 16:56] (Version actuelle) – modification externe 127.0.0.1 |
---|
<olmap id="olMapOne" width="550px" height="450px" lat="47.271" lon="-2.212" zoom="16" statusbar="1" controls="1" poihoverstyle="0" baselyr="OpenStreetMap" gpxfile="" kmlfile="" geojsonfile="" summary="" > | <olmap id="olMapOne" width="550px" height="450px" lat="47.271" lon="-2.212" zoom="16" statusbar="1" controls="1" poihoverstyle="1" baselyr="OpenStreetMap" gpxfile="" kmlfile="" geojsonfile=":tests:test.geojson" summary="carte machin" > |
~~ Plugin olmap help. | |
~~ Required in the above tag are values for: id (unique on this page), width, heigth. | |
~~ Also you will want to enter zoomlevel and lat, lon values that make sense for where you want the map to start. | |
| |
~~ Below is an example of a POI, you can add as many as you want. ~~ More examples: http://dokuwiki.org/plugin:openlayersmap | ~~ Points d'interets |
| ~~ : lat, lon, rotation-angle, opacity, image, textforpopup |
| |
47.271335,-2.212555,-90,.8,marker-green.png,Hantre du Gris; Le Gris \\ external link: [[https://bricoles.du-libre.org|bricoles.du-libre.org]] \\ internal link: [[::test2]]\\ **Yop Gris** | 47.271335,-2.212555,-90,.5,animaux-dinosaure-001.gif?200,Hantre du Gris; Le Gris \\ liens possibles [[https://bricoles.du-libre.org|bricoles.du-libre.org]] \\ [[::test2]]\\ **Yop Gris** \\ <fc #00ff00>ligne</fc> 8-O \\ <WRAP center round important 60%> blabla </WRAP> \\ {{:tests:animaux-dinosaure-001.gif?200|}} \\ {{tag>Gris}} |
47.271345,-2.213555,-70,.8,marker-green.png,Hantre du Vert; Le Vert \\ external link: [[https://bricoles.du-libre.org|bricoles.du-libre.org]] \\ internal link: [[::test2]]\\ **Yop Vert** | |
| 47.271345,-2.213555,-70,.8,ww_hazard.png,Hantre du Vert; Le Vert \\ [[:test2]] \\ **Yop Vert** \\ ⇒ play truc.wav \\ $Vie += 5 |
| |
| ~~ Fin des points d'interets |
| ~~ le centre chez moi : 47.271335N 2.212555W |
| |
</olmap> | </olmap> |
47.271335N 2.212555W | |
| <olmap_osmlayer id="olmap" name="piste" url="http://tiles.openpistemap.org/nocontours/${z}/${x}/${y}.png" visible="true" attribution="OpenPisteMap"></olmap_osmlayer> |
| |
| |
==== Le code: ==== | ==== Le code: ==== |
olmap id="olMap" width="600px" height="400px" lat="52.0" lon="5.1" zoom="12" statusbar="1" toolbar="1" controls="1" poihoverstyle="1" baselyr="OpenStreetMap" gpxfile=":playground:hardlopen_gpx.gpx" geojsonfile=":playground:test.gsojson" kmlfile=":playground:mtb.kml" summary="This map shows a gpx trace, a kml trace and a dot"> | <code> olmap id="olMap" width="600px" height="400px" lat="52.0" lon="5.1" zoom="12" statusbar="1" toolbar="1" controls="1" poihoverstyle="1" baselyr="OpenStreetMap" gpxfile=":playground:hardlopen_gpx.gpx" geojsonfile=":playground:test.gsojson" kmlfile=":playground:mtb.kml" summary="This map shows a gpx trace, a kml trace and a dot"> |
52.1,5.1,60,.8,marker-green.png,Just a spot | 52.1,5.1,60,.8,marker-green.png,Just a spot |
/olmap> | /olmap> |
* id The identifyer of the map (this needs to be a valid CSS/XHTML identifier as well as a valid JavaScript variable) eg. olmap. | </code> |
| * id The identifyer of the map (this needs to be a valid CSS/XHTML identifier as well as a valid JavaScript variable) eg. olmap. |
* width The width of the map, default is 400px. | * width The width of the map, default is 400px. |
* height The height of the map, default is 300px. | * height The height of the map, default is 300px. |
| |
* The Points of Interest are formatted: lat, lon, rotation-angle, opacity, image, textforpopup | * The Points of Interest are formatted: lat, lon, rotation-angle, opacity, image, textforpopup |
| |
| http://www.portailsig.org/content/geojson-nouveau-lingua-franca-en-geomatique |
| |
| http://geojsonlint.com/ et http://geojson.org/geojson-spec.html http://geojson.io/#map=19/47.27198/-2.21324 |
| |