Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
tests:start [2016/03/25 23:37] – 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" > |
| |
~~ Points d'interets | ~~ Points d'interets |
| |
==== 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 |
| |