Difference between revisions of "Maps"

From MadaCamp
Jump to: navigation, search
(Example #1)
Line 1: Line 1:
== Parameters ==
+
<div style="max-width:600px;border:1px solid green;">
 +
{{#display_map:
 +
-15.214232, 50.076107~[[Hotel Fitiavana]]~~;
 +
|type=satellite
 +
|service=google
 +
|types=roadmap, satellite, hybrid, terrain
 +
|width=auto
 +
|height=400
 +
|zoom=18
 +
|enablefullscreen=yes
 +
|searchmarkers=all
 +
|controls=pan, zoom, type, scale
 +
|resizable=yes
 +
}}
 +
</div>
 +
 
  
=== zoom ===
+
== zoom ==
  
 
Zoom levels are between 1 and 20
 
Zoom levels are between 1 and 20
Line 8: Line 23:
  
  
=== width ===
+
== width ==
  
 
  |width=auto
 
  |width=auto
Line 16: Line 31:
 
auto will stretch to the containing block
 
auto will stretch to the containing block
  
=== height ===
+
== height ==
  
 
  |height=400
 
  |height=400
  
=== centre (or center) ===
+
== centre (or center) ==
  
 
The location which should be the centre of the map
 
The location which should be the centre of the map
Line 34: Line 49:
 
If there is only one placemark, zoom level has to be defined for the map to show.
 
If there is only one placemark, zoom level has to be defined for the map to show.
  
=== searchmarkers ===
+
== searchmarkers ==
  
 
Add a filter search field for maps with many markers
 
Add a filter search field for maps with many markers
Line 49: Line 64:
 
Fullscreen mode is not working well on desktop and ipad
 
Fullscreen mode is not working well on desktop and ipad
  
=== resizable ===
+
== resizable ==
  
 
  |resizable=yes
 
  |resizable=yes
Line 55: Line 70:
 
Makes the map resizable with the mouse at the map edges on a regular PC
 
Makes the map resizable with the mouse at the map edges on a regular PC
  
== Example #1 ==
 
 
<div style="max-width:600px;border:1px solid green;z-index:1000">
 
{{#display_map:
 
-15.214232, 50.076107~[[Hotel Fitiavana]]~~;
 
|type=satellite
 
|service=google
 
|types=roadmap, satellite, hybrid, terrain
 
|width=auto
 
|height=400
 
|zoom=18
 
|enablefullscreen=yes
 
|searchmarkers=all
 
|controls=pan, zoom, type, scale
 
|resizable=yes
 
}}
 
</div>
 
  
 
<!--
 
<!--

Revision as of 15:26, 20 November 2020

Loading map...


zoom

Zoom levels are between 1 and 20

|zoom=18


width

|width=auto

pixels or percentage

auto will stretch to the containing block

height

|height=400

centre (or center)

The location which should be the centre of the map

|centre=-14.254318, 50.157051

or

|center=-14.254318, 50.157051

If centre is omitted, center depends on the placemarks.

If zoom is omitted, zoom level will be set to fit the placemarks.

If there is only one placemark, zoom level has to be defined for the map to show.

searchmarkers

Add a filter search field for maps with many markers

|searchmarkers=all

enablefullscreen

|enablefullscreen=no
|enablefullscreen=yes

If omitted, no fullscreen label is shown.

Fullscreen mode is not working well on desktop and ipad

resizable

|resizable=yes

Makes the map resizable with the mouse at the map edges on a regular PC