Added an iconBorderRadiusFactor appearance option to Labels, which controls the corner rounding of a label’s icon pin so it can render as a rounded square instead of only a circle. The value is a fraction of half the pin’s size, where 1 (the default) is a circle, 0 is a square, and values in between round proportionally. It can be set when adding a label or updated at runtime.
mapView.Labels.add(space, 'Fire Extinguisher', {
appearance: {
icon: svgOrUrl,
iconSize: 21,
// 1 (default) is a circle, 0 is a square
iconBorderRadiusFactor: 0.33,
},
});
mapView.updateState(label, { appearance: { iconBorderRadiusFactor: 1 } });
Fixes
Fixed an issue where a Model moved with updateState would become unhittable, so hover and click events no longer detected it at its new position.