Affht.MapSelectorController Class
A class for handling the selection and loading of AFFHT maps.
Constructor
Affht.MapSelectorController
()
Item Index
Methods
- _createDotDensityRenderer
- _processSaveMap
- buildJurisdictionList
- buildWebMapJson
- getQueryVariable
- hide
- hide
- initialize
- initialize
- loadMap
- loadMap
- loadMapFromInput
- processMapSelection
- processMapSelection
- queryJurisdictionGeometry
- queryJurisdictionsById
- queryJurisdictionsByState
- queryRegionByJurisdiction
- queryRegionGeometry
- renderLegend
- renderToc
- setLayerPopups
- setThematicLayers
- show
- show
- show
- toggleAoi
- toggleAoi
- updateDotDensity
- zoomToJurisdiction
Methods
_createDotDensityRenderer
-
dotValue -
fields
Parameters:
-
dotValueString -
fieldsArray
_processSaveMap
()
buildJurisdictionList
-
state
Constructs the UI pick list from the results of the jurisdiction query.
Parameters:
-
stateString
buildWebMapJson
-
mapTitle -
mapDesc
Parameters:
-
mapTitleString -
mapDescString
getQueryVariable
-
queryString,
Parameters:
-
queryString,String, stringqueryVariable
hide
()
Hides the map selector GUI form.
hide
()
initialize
-
options
Parameters:
-
optionsObject
initialize
-
options
Parameters:
-
optionsObject
loadMap
()
loadMap
()
Builds the AFFHT web map based on the user input.
loadMapFromInput
-
mapInfo
Triggers the MapSelector to load a map from outside input (as opposed to the MapSelector GUI).
Parameters:
-
mapInfoObject
processMapSelection
()
processMapSelection
()
Pre-processes the map selection to validate inputs and determine if a map variation choice is needed.
queryJurisdictionGeometry
-
callback
Parameters:
-
callbackFunction
queryJurisdictionsById
-
state
Parameters:
-
stateString
queryJurisdictionsByState
-
state
Parameters:
-
stateString
queryRegionByJurisdiction
-
jurisdiction
Parameters:
-
jurisdictionString
queryRegionGeometry
()
renderLegend
()
renderToc
()
Builds the Table of Contents (TOC) based on the current state of the map.
setLayerPopups
()
Sets the popup content for the layers specified by configuration.
setThematicLayers
()
Calculates and applies a ClassBreaks renderer for the layers specified by configuration.
show
()
Shows the map selector GUI form.
show
()
show
()
toggleAoi
-
d
Parameters:
-
dDeferred
toggleAoi
-
d
Toggles the application area of interest between the jurisdiction and region of the selected grantee.
Parameters:
-
dDeferred
updateDotDensity
-
dotDensity
Parameters:
-
dotDensityString
zoomToJurisdiction
-
d
Parameters:
-
dDeferred