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:
-
dotValue
String -
fields
Array
_processSaveMap
()
buildJurisdictionList
-
state
Constructs the UI pick list from the results of the jurisdiction query.
Parameters:
-
state
String
buildWebMapJson
-
mapTitle
-
mapDesc
Parameters:
-
mapTitle
String -
mapDesc
String
getQueryVariable
-
queryString,
Parameters:
-
queryString,
String, stringqueryVariable
hide
()
Hides the map selector GUI form.
hide
()
initialize
-
options
Parameters:
-
options
Object
initialize
-
options
Parameters:
-
options
Object
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:
-
mapInfo
Object
processMapSelection
()
processMapSelection
()
Pre-processes the map selection to validate inputs and determine if a map variation choice is needed.
queryJurisdictionGeometry
-
callback
Parameters:
-
callback
Function
queryJurisdictionsById
-
state
Parameters:
-
state
String
queryJurisdictionsByState
-
state
Parameters:
-
state
String
queryRegionByJurisdiction
-
jurisdiction
Parameters:
-
jurisdiction
String
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:
-
d
Deferred
toggleAoi
-
d
Toggles the application area of interest between the jurisdiction and region of the selected grantee.
Parameters:
-
d
Deferred
updateDotDensity
-
dotDensity
Parameters:
-
dotDensity
String
zoomToJurisdiction
-
d
Parameters:
-
d
Deferred