\OLLayer
Sapphire CMS: Open Layer
Each instance of an open layer class is represented as a dataobject in
Sapphire
This class is used to configure OpenLayers and what information should be shown
on the map.
Synopsis
class OLLayer
extends DataObject
{
- // members
- private static string $singular_name = 'Layer';
- private static string $plural_name = 'Layers';
- public static integer $wfs_pagesize = 8;
- private static array $db = ;
- private static array $has_one = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $defaults = ;
- private static array $casting = ;
- private static string $default_sort = "Title ASC";
- // methods
- public void get_map_popup_detail_template()
- public static void get_wfs_pagesize()
- public static void set_wfs_pagesize()
- public fieldset getCMSFields()
- public array getConfigurationArray()
- public string getFeatureInfo()
- public void WhiteList()
- public void WhiteListLabels()
- public string getWFSFeatureRequest()
- public string getWMSFeatureRequest()
- public void getFeatureLabels()
- public DataObjectSet doSingleStationRequest()
- public DataObjectSet getFeature()
- public String renderBubbleForOneFeature()
- public void renderClusterInformationBubble()
- public Array describeFeatureType()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
321+ | use a template to generate the javascript instead of using a array. Already implemented in the OpenSource module. |
Members
private
- $casting
- $db
- $default_sort
- $defaults
- $field_labels
- $has_one
- $plural_name
- $searchable_fields
-
$singular_name
Example for DTIS: Cluster Popup Header: - There are $stations.count DTIS stations Cluster Attributes: - Station $Station ($Cruise) <% if Depth %>: $Depth m depths<% end_if %> - $summary_fields
public
- $wfs_pagesize
Methods
public
- WhiteList() — Find for layer WhiteList words in the XML response...
- WhiteListLabels() — Find for labels for the whiteListed items...
- describeFeatureType() — Returns an array (non associated) with all attributes of the OGC feature type.
- doSingleStationRequest() — Gets the request result, converts it from XML to DOS and returns it.
- getCMSFields() — Overwrites SiteTree.getCMSFields.
- getConfigurationArray() — Get the configuration array for OpenLayers
- getFeature() — Gets the request result, converts it from XML to DOS and returns it.
- getFeatureInfo() — This method sends OGC get-feature requests for this layer to the OGC webservice.
- getFeatureLabels()
- getWFSFeatureRequest() — Returns the OGC 'getfeature' request string for a OGC WFS get-feature request.
- getWMSFeatureRequest() — Returns the OGC 'getfeature' request string for a OGC WMS getFeatureInfo request.
- get_map_popup_detail_template() — Getter method for single-info-bubble template name.
- get_wfs_pagesize()
- renderBubbleForOneFeature() — Function to render popup for one station (attributes).
- renderClusterInformationBubble()
- set_wfs_pagesize()