Difference between revisions of "Maps"

From MadaCamp
Jump to: navigation, search
Line 11: Line 11:
 
|searchmarkers=all
 
|searchmarkers=all
 
|resizable=yes
 
|resizable=yes
 +
 
}}
 
}}
 
</div>
 
</div>
Line 20: Line 21:
 
or
 
or
 
  |service=google
 
  |service=google
 +
 +
== icon ==
 +
 +
|icon=url_of_icon_to_use_for_all_markers.png
 +
 +
Or on a p/market basis:
 +
 +
-15.214232, 50.076107~[[Hotel Fitiavana]]~~url_of_icon_to_use_for_all_markers.png;
 +
  
 
== type ==
 
== type ==
Line 42: Line 52:
  
 
minimum one option is required for constraint to take effect
 
minimum one option is required for constraint to take effect
 
  
 
== controls ==
 
== controls ==

Revision as of 16:38, 20 November 2020

Loading map...


service

|service=leaflet

or

|service=google

icon

|icon=url_of_icon_to_use_for_all_markers.png

Or on a p/market basis:

-15.214232, 50.076107~Hotel Fitiavana~~url_of_icon_to_use_for_all_markers.png;


type

|type=satellite

the initial type of map (roadmap, satellite, hybrid, terrain)

label

|label=text

standard text to display in all popups without text

types

types=roadmap, satellite, hybrid, terrain

map options included in the control

If omitted, all options are included

minimum one option is required for constraint to take effect

controls

|controls=pan, zoom, type, scale

pan, zoom, type, scale, streetview, rotate

zoom

Zoom levels are between 1 and 20

|zoom=18

width

pixels or percentage

|width=auto

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.

Fullscreen works better for leaflet maps but which do not have satellite mode

resizable

|resizable=yes

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