Instances of OpenSpace.Layer.Boundary are used to display boundary data that scrolls and zooms with the map. The boundaries can be styled.
Inherits
- <OpenLayers.Layer.Vector>
Example
The following example shows how to generate a boundary layer with some options:
// Build the options for this layer. Also see examples
var options = {
strategies: [new OpenSpace.Strategy.BBOX()],
area_code: area_codes,
census_code: census_codes,
name: name,
geometry: geometryRequired,
max_features: maxFeatures,
area_code: area_codes,
styleMap: styleMap
};
boundaryLayer = new OpenSpace.Layer.Boundary("Boundaries", options);
Summary
| OpenSpace.Layer.Boundary | Instances of OpenSpace.Layer.Boundary are used to display boundary data that scrolls and zooms with the map. |
| Constants | |
| areaCodeLookup | {Object} A lookup table from a given map resolution (in metres per pixel) to the corresponding boundary area codes that are permissable for that map zoom level |
| resolutionLookup | {Object} A lookup table from a given map resolution (in metres per pixel) to the corresponding boundary generalisation resolution (in metres) |
| Properties | |
| area_code | {Array(String)} List of area code types required for this layer |
| census_code | {Array(String)} List of census code types required for this layer |
| Constructor | |
| OpenSpace.Layer.Boundary | Constructor for a new OpenSpace.Layer.Boundary instance. |
| Functions | |
| destroy | Destroy this overlay layer. |
| getAreaCodeList | Determine the appropriate list of area codes to send to the server. |
| getCensusCodeList | Determine the appropriate list of census codes to send to the server. |
| getAdminUnitIdList | Determine the appropriate list of admin unit ids to send to the server. |
| getName | Return the boundary name search parameter. |
| getGeometryRequired | Return if geometry is required. |
| addToList | Add strings to a comma separated list. |
| getResolution | Determine the appropriate boundary resolution from the map’s zoom level. |