The following describes the basic properties that are available in the map array.
- id
- Values:
- string
- Description:
- This is the string identifier for the map used in PHP and Javascript. It will be the HTML identifier as well.
- Example:
- 'example-id'
- Notes:
- This should be unique. The render function will assign an ID, if none is present.
- projection
- Values:
- string (number)
- Description:
- This is the main projection that will be used on the map.
- Example:
- '900913'
- Notes:
- The default is 4326.
- width
- Values:
- string
- Description:
- The CSS valid width for the map.
- Example:
- 'auto'
- height
- Values:
- string
- Description:
- The CSS valid hright for the map.
- Example:
- '300px'
- center
- Values:
- array
- Description:
- The default centering properties for the map, including lat, lon, and zoom.
- Example:
-
array(
'lat' => 40,
'lon' => 5,
'zoom' => 5,
),