\OLMapPage
Core MapPage class. The map page will render the OpenLayer map and create the required html document structure to ensure that the map viewer operates according to the current setup (defined in @see OLLayer and @OLMapObject).
Synopsis
class OLMapPage
extends Page
{
- // methods
- public fieldset getCMSFields()
- public array getDefaultMapConfiguration()
- public void getStyleMap()
- public ViewableData getLayerlistForTemplate()
- public string getMapPageTitleWithURL()
Hierarchy
Extends
- Page
Members
private
- $db
- $has_one
Methods
public
- getCMSFields() — Overwrites SiteTree.getCMSFields.
- getDefaultMapConfiguration() — This method returns the default configuration array structure of the default map. It is used to initialize the OpenLayer JavaScript classes after the page has been loaded.
- getLayerlistForTemplate() — Returns layers in a customised viewable data object to render the layer control of the default map.
- getMapPageTitleWithURL() — Getter method to create a nice, human readable map name, taking the url segment into account.
- getStyleMap() — Returns the javascript for the open layers style maps. Uses OLStyleMap. This method iterates through all style maps, defined for this map.