new CadcorpMarkers(name, optionsopt)
An Open Layers layer that acts as a markers layer.
Extends OpenLayers.Layer.Vector
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | The name for this layer | |
options |
Object |
<optional> |
Optional object with non-default properties to set on the layer. |
Members
(constant) CLASS_NAME :string
The name of this class
Type:
- string
markers
Properties:
Name | Type | Description |
---|---|---|
markers |
Array.<OpenLayers.Feature.Vector> | The markers in this layer |
Methods
addMarker(marker) → {OpenLayers.Feature.Vector}
Parameters:
Name | Type | Description |
---|---|---|
marker |
OpenLayers.Marker | The marker to add as a feature to this layer |
Returns:
The new feature
- Type
- OpenLayers.Feature.Vector