If no map is declared, Lf Hiker creates a default map
- with OpenStreetMap tiles,
- the maximal width and 500 pixels height,
- without border and effect.
- the displayed buttons are «reset» and «fullscreen».
- without zoom in/out trigger with mousewheel.
A map is declared with a shortcode
All elements (markers or gpx tracks) declared after map declaration will be displayed on this map.
All elements declared before the map declaration will not be shown on another map.
The attribute must be separated by only one space.
You need escape special chars like hyphen in shortcode.
[lfh-map]
.All elements (markers or gpx tracks) declared after map declaration will be displayed on this map.
All elements declared before the map declaration will not be shown on another map.
The attribute must be separated by only one space.
You need escape special chars like hyphen in shortcode.
Example
[lfh-map lat=48.5720639570219 lng=4.574432373046876 zoom=9 class="thick\-border\-round right" autocenter=false fullscreen=true reset=true list=false mousewheel=false width=85 height=450 tile=stamen_water ]
All the attributes
autocenter
lat
lng
zoom
width
height
class
fullscreen
reset
list
mousewheel
tile
open
undermap
autocenter
- values :
true
, let Lf Hiker determine the best position (center and zoom)false
need you determine the value of the attributeslat
,lng
andzoom
.
- default :
true
- required: no
Example:
[lf-map autocenter=false lat=48.5720639570219 lng=4.574432373046876 zoom=9 ]
lat
- values : float between -90 and 90, theorical
- default :
48.866667
, the latitude of Paris - required: no
lng
- values : float between -180 and 180
- default :
2.333333
, the longitude of Paris - required: no
zoom
- values : interger between 1 and 20 (the maximal zoom depends on tiles: 20 for OpenStreetMap French, 13 for watercolor tiles)
- default :
13
- required: no
width
- values : interger between 30 and 100 (with step 5), percentage of article width
- default :
100
- required: no
height
- values : interger between 100 and 1000 (with step 50), height in pixels
- default :
500
- required: no
class
Use the attribute class
for customize map’s borders and its alignment.
- values :
-
simple\-border
thick\-border
simple\-border\-round
thick\-border\-round
left
right
center
- Your own class
- Combinaison of values separate by a space for example:
thick\-border center
-
- default :
''
- required: no
Example:
[lf-map width=70 height=450 class="simple\-border\-round right" ]
fullscreen
- values :
true
, display button «fullscreen»false
- default :
true
- required: no
reset
- values :
true
, display button «reset»false
- default :
true
- required: no
list
- values :
true
, display button «list» of elements markers and gpx tracks on mapfalse
- default :
false
- required: no
mousewheel
- values :
true
, trigger zoom in/out on mousewheelfalse
- default :
true
- required: no
tile
- values :
osm
, OpenStreetMap tilesosm_fr
, French OpenStreetMap, more detailed and francized namesarcgis_topo
, Topographic background with level lines (ARCGIS WORLD TOPOGRAPHIC)stamen_water
, watercolor background (STAMEN WATERCOLOR)stamen_terrain
, tiles with drawn relief (STAMEN TERRAIN)opentopomap
, tiles with drawn relief(OPEN TOPO MAP)
- default:
osm
- required: no
open
- values :
true
, start with the profile elevation displayedfalse
- default: following the plugin settings (ths plugin settings is
false
by default) - required: no
undermap
- values :
true
, the description is always displayed under the mapfalse
, the description is displayed on or under the map according to map width
- default: following the plugin settings (ths plugin settings is
false
by default) - required: no