GridPresenter
This class provide all the neccesary functions to present grid over maps
-
Initializing the class
-
handlePrecisionChange
this function takes the user precision input and configure the map accordingly
-
handleMapClick
while presenting grid view this function encode user click over map display the selected location
-
updateGridLines
while moving the map across this function help to update grid lines
-
addLayersAndSources
While initializing the map this function add all required sources and layers
-
hideGrid
remove the source and layer of grid from the map
-
hideSelectedCell
remove selected grid cell source and layer from the map
-
handleStyleChange
Handles the styles changes between all different tiles