Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active December 27, 2022 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/98345cc5a9175a0420642739ac45bac9 to your computer and use it in GitHub Desktop.
Save carmoreira/98345cc5a9175a0420642739ac45bac9 to your computer and use it in GitHub Desktop.
Global variables to alter behaviour on Interactive Geo Maps
/*
* 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