ALKMaps.Layer.Sites

A vector layer for displaying sites.  Create a new instance with the ALKMaps.Layer.Sites constructor.

Inherits from

  • <ALKMaps.Layer.VirtualTile>
Summary
ALKMaps.Layer.SitesA 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.Layer.SitesConstruct a layer for sites.
Functions
destroyDestroy this layer
setMapForces this layer having the same projection as the map.
moveToReset the vector layer’s div so that it once again is lined up with the map.
getSitesGets sites for the given bbox.

Properties

minZoomLevel

{Number} Minimum zoom level for requesting sites.  Can’t be lower than 6.

enableVisibilityHandler

{Boolean} The default map zoomend event handler will work if it is set to true.  Otherwise, the map zoomend event handler has no effect.

siteType

{Number} Type of site layer.  0both, 1- alk site, 2 - custom site.  Default is 0.

includeSiteGates

{Boolean} Whether or not to show site gates.  Default is false.

Constructor

ALKMaps.Layer.Sites

Construct a layer for sites.

Parameters

name{String} Used to identify this layer.
options{Object} Optional object whose properties will be set on the instance.

Valid options

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.

Functions

destroy

destroy: function()

Destroy this layer

setMap

setMap: function(map)

Forces this layer having the same projection as the map.

Parameters

map{ALKMaps.Map}

moveTo

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.

Parameters

bounds{ALKMaps.Bounds}
zoomChanged{Boolean}
dragging{Boolean}

getSites

getSites: function(options)

Gets sites for the given bbox.  If the bbox does not present, uses the class level bbox setting.

Parameters

options{Object}

Valid options

bbox{ALKMaps.Bounds}
destroy: function()
Destroy this layer
setMap: function(map)
Forces this layer having the same projection as the map.
moveTo: function(bounds,
zoomChanged,
dragging)
Reset the vector layer’s div so that it once again is lined up with the map.
getSites: function(options)
Gets sites for the given bbox.
Construct a layer for sites.
Instances of ALKMaps.Map are interactive maps embedded in a web page.
Instances of this class represent bounding boxes.
Close