You can use layer properties to control global characteristics of the map, such as showing/hiding specific layers, opacity or relative sizes of all markers.
See below for the list of properties, click the links to alter the properties.
For complete documentation of the available layer properties, see:
Marker layers have the following properties:
visible – if false, hide the layer.
markerSizeMultiplier – the multiplier to apply on top of the size of individual markers.
This property is useful when defining an extra layer to display hover or selection highlights to make
the highlighted markers slightly larger than the unaffected ones.
opacity – global opacity of all markers on the layer, applied on top of opacities
of individual markers.
markerFillOpacity – opacity of the inner part of all markers on the layer.
markerBorderOpacity – opacity of the outer part of all markers on the layer.
markerBorderWidth – size of the outer part of the marker, relative to the marker
as a whole.
The elevations layer has the following properties:
opacity – opacity of the elevations layer.
saturation – saturation of the elevations layer.
lightness – lightness of the elevations layer.
contourWidth – width of the contours on the elevation layer.
contourOpacity – opacity of the contours on the elevation layer.
lightIntensity – the intensity of light to use for hill shading of the map.
lightAzimuth – controls the direction of the light used for hill shading of the map.
Value is in radians and gives the direction the light comes from, where 0 is the West.
maxRadius – determines how much "land" each elevation point generates.
The larger the value, the more "land" is generated. The smaller the value, the more island-like
the map appears.
elevationPow – the power to which the elevation value is raised. Values lower than 1.0
generate more "land", while values larger than 1.0 generate more "islands".
refreshMargin – caches the heightmap in map space and reuses it across
pan and zoom. The value is how much larger than the view the cached region is rendered
(0.5 = 50% bigger); that extra coverage is the room you can pan and zoom into
before the heightmap is refreshed. Larger margins refresh less often but soften the field
more between refreshes (watch the map soften as you zoom in, then snap sharp at a refresh).
0 turns the cache off (the heightmap is refreshed every frame).
The labels layer has the following properties:
opacity – opacity of all the labels on the map.
labelFontSize – font size to use to draw all labels in the layer.
labelFontFamily – font family to use to draw all labels in the layer.
labelFontStyle – font style to apply when drawing all labels in the layer.
labelFontWeight – font weight to apply when drawing all labels in the layer.
labelFontVariant – font variant to apply when drawing all labels in the layer.
Set: normal small-caps
labelDensity – controls how tightly labels pack on the map. 1.0
is the default spacing; values above 1.0 shrink the collision halo so more labels
fit; values below 1.0 grow it so fewer labels show.
labelColor – fill color used for every label.
labelCollisionModel – how labels are packed for visibility.
per-word reserves one box per word (tighter packing);
per-label-box reserves a single box around the whole label.
Set: per-word per-label-box
labelMinSizeScale – minimum per-point size multiplier. Per-point
labelSize values smaller than this are clamped up.
labelShadowSize – strength of the drop-shadow under labels.
0 disables it; larger values produce a wider, more opaque shadow.
labelShadowColor – color of the drop-shadow under labels.
All code that changes the various layer properties is included directly in this HTML page. View the page source to examine the code.