Last active
December 27, 2022 14:35
-
-
Save carmoreira/98345cc5a9175a0420642739ac45bac9 to your computer and use it in GitHub Desktop.
Global variables to alter behaviour on Interactive Geo Maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Zoom Level for Markers on Click with Zoom on Click enabled | |
* if you do not override the value, it will default to zoom to | |
* the value double of the current zoom. | |
*/ | |
let igmMarkerZoomLevelOnClick = 32; | |
/* | |
* Opacity for base region series when drilldown or show specific map action is perfomed | |
*/ | |
let igmDrilldownBaseMapOpacity = 0.3; | |
/* Label size in cluster markers - size of the number inside the round marker | |
* By default is the marker radius | |
*/ | |
let igmClusterMarkerFontSize = 10; | |
/* | |
* Scale round markers or labels as we zoom | |
*/ | |
let igmRoundMarkersNonScaling = false; | |
let igmLabelsNonScaling = false; | |
/* Label background - applies to auto region labels and normal labels. | |
* Should be an object with all the following parameters | |
*/ | |
var igmLabelsBackground = { | |
"color" : "#6699cc", | |
"cornerRadius" : [5,5,0,0], | |
"padding" : [10,3,10,3], | |
"stroke" : "red" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment