Outils pour utilisateurs

Outils du site


tests:start

<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 ~~ : lat, lon, rotation-angle, opacity, image, textforpopup

47.271335,-2.212555,-90,.5,animaux-dinosaure-001.gif?200,Hantre du Gris; Le Gris
liens possibles bricoles.du-libre.org
test2
Yop Gris
<fc #00ff00>ligne</fc> 8-O

blabla



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_osmlayer id=“olmap” name=“piste” url=“http://tiles.openpistemap.org/nocontours/${z}/${x}/${y}.png” visible=“true” attribution=“OpenPisteMap”></olmap_osmlayer>

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">
52.1,5.1,60,.8,marker-green.png,Just a spot
/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.
  • width The width of the map, default is 400px.
  • height The height of the map, default is 300px.
  • zoom The zoom level, default value 12. Valid values depend on the map and location and must be integer.
  • controls Whether or not to show controls for zooming and panning on the map. Valid values are on and off, default on.
  • statusbar Defines if the statusbar is shown. Valid values are 1 or 0, default 1 (on).
  • poihoverstyle Specifies POI feature select behaviour (hover or click). Valid values are 1 or 0, default 0 (click), for reasons of accessibility using hover is dicouraged.
  • lat The latitude of map centre in decimal degrees (WGS84), negative values are south of the equator, valid values range from -90.0 to 90.0.
  • lon The longitude of map centre in decimal degrees (WGS84), negative values are west of Greenwich, valid values range from -180.0 to 180.0.
  • baselyr The basemap layer that is shown when the map opens. Valid values are: OpenStreetMap, transport, landscape, cycle map, hike and bike map, mapquest road, mapquest sat, google relief, google sat, google hybrid, google road, bing road, bing sat or bing hybrid. (note that for some of the non-open maps you need the API key/URL as well)
  • gpxfile any GPX file, use the media manager to retrieve the location
  • kmlfile any KML file, use the media manager to retrieve the location
  • geojsonfile any GeoJSON file, use the media manager to retrieve the location
  • summary A description of the map.
  • 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

tests/start.txt · Dernière modification : 2024/02/09 16:56 de 127.0.0.1