Type Alias PointLayerOptions
alignOnViewport?: boolean;
cluster?: boolean;
labelColor?: string;
labelSize?: number;
maxPointRadius?: number;
minPointRadius?: number;
pointColor?: string | ColorRamp;
pointOpacity?: number | ZoomNumberValues;
pointRadius?: number | ZoomNumberValues;
property?: string;
showLabel?: boolean;
zoomCompensation?: boolean;
}
Type Declaration
OptionalalignOnViewport?: booleanOptionalcluster?: booleanWhether the points should cluster
OptionallabelColor?: stringtext color used for the number elements in each cluster. Applicable only when
clusteristrue. Default:#000000(black)OptionallabelSize?: numbertext size used for the number elements in each cluster. Applicable only when
clusteristrue. Default:12OptionalmaxPointRadius?: numberThe maximum point radius posible. Default:
40OptionalminPointRadius?: numberThe minimum point radius posible. Default:
10OptionalpointColor?: string | ColorRampCan be a unique point color as a string (CSS color such as "#FF0000" or "red"). Alternatively, the color can be a ColorRamp with a range. In case of
.clusterbeingtrue, the range of the ColorRamp will be addressed with the number of elements in the cluster. If.clusterisfalse, the color will be addressed using the value of the.property. If no.propertyis given but.pointColoris a ColorRamp, the chosen color is the one at the lower bound of the ColorRamp. Default: a color randomly pick from a listOptionalpointOpacity?: number | ZoomNumberValuesOpacity of the point or icon. This is can be a constant opacity in [0, 1] or a definition based on zoom levels. Alternatively, if not provided but the
.pointColoris a ColorRamp, the opacity will be extracted from tha alpha component if present. Default:1OptionalpointRadius?: number | ZoomNumberValuesRadius of the points. Can be a fixed size or a value dependant on the zoom. If
.pointRadiusis not provided, the radius will depend on the size of each cluster (if.clusteristrue) or on the value of each point (if.propertyis provided and.pointColoris a ColorRamp). The radius will be between.minPointRadiusand.maxPointRadiusOptionalproperty?: stringThe point property to observe and apply the radius and color upon. This is ignored if
.clusteristrueas the observed value will be fiorced to being the number of elements in each cluster.Default: none
OptionalshowLabel?: booleanShows a label with the numerical value id
true. If.clusteristrue, the value will be the numebr of elements in the cluster.Default:
trueifclusterordataDrivenStylePropertyare used,falseotherwise.OptionalzoomCompensation?: booleanOnly if
.clusterisfalse. If the radius is driven by a property, then it will also scale by zoomming if.zoomCompensationistrue. Iffalse, the radius will not adapt according to the zoom level. Default:true
If
true, the points will keep their circular shape align with the wiewport. Iffalse, the points will be like flatten on the map. This difference shows when the map is tilted. Default:true