A vector layer for displaying sites. Create a new instance with the ALKMaps.Layer.Sites constructor.
| ALKMaps. | A vector layer for displaying sites. |
| Properties | |
| minZoomLevel | {Number} Minimum zoom level for requesting sites. |
| enableVisibilityHandler | {Boolean} The default map zoomend event handler will work if it is set to true. |
| siteType | |
| includeSiteGates | {Boolean} Whether or not to show site gates. |
| Constructor | |
| ALKMaps. | Construct a layer for sites. |
| Functions | |
| destroy | Destroy this layer |
| setMap | Forces this layer having the same projection as the map. |
| moveTo | Reset the vector layer’s div so that it once again is lined up with the map. |
| getSites | Gets sites for the given bbox. |
Construct a layer for sites.
| name | {String} Used to identify this layer. |
| options | {Object} Optional object whose properties will be set on the instance. |
| minZoomLevel | {Number} Minimum zoom level for retrieving sites. |
| cacheInterval | {Number} The time duration in minutes that sites should be cached. |
| styleMap | {ALKMaps.StyleMap} Layer style map |
| siteType | {Number} Type of site layer. |
| includeSiteGates | {Boolean} Whether or not to show site gates. |
setMap: function( map )
Forces this layer having the same projection as the map.
| map | {ALKMaps.Map} |
moveTo: function( bounds, zoomChanged, dragging )
Reset the vector layer’s div so that it once again is lined up with the map. Notify the renderer of the change of extent, and in the case of a change of zoom level (resolution), have the renderer redraw features.
If the layer has not yet been drawn, cycle through the layer’s features and draw each one.
| bounds | {ALKMaps.Bounds} |
| zoomChanged | {Boolean} |
| dragging | {Boolean} |
getSites: function( options )
Gets sites for the given bbox. If the bbox does not present, uses the class level bbox setting.
| options | {Object} |
| bbox | {ALKMaps.Bounds} |
Destroy this layer
destroy: function()
Forces this layer having the same projection as the map.
setMap: function( map )
Reset the vector layer’s div so that it once again is lined up with the map.
moveTo: function( bounds, zoomChanged, dragging )
Gets sites for the given bbox.
getSites: function( options )