in modules/layers/src/layers/editable-geojson-layer.ts [513:550]
getFillColor: guideAccessor(this.props.getEditHandlePointColor),
getLineColor: guideAccessor(this.props.getEditHandlePointOutlineColor),
billboard: this.props.billboard,
};
}
const layer = new GeoJsonLayer(
this.getSubLayerProps({
id: `guides`,
data: guides,
fp64: this.props.fp64,
_subLayerProps: subLayerProps,
lineWidthScale: this.props.lineWidthScale,
lineWidthMinPixels: this.props.lineWidthMinPixels,
lineWidthMaxPixels: this.props.lineWidthMaxPixels,
lineWidthUnits: this.props.lineWidthUnits,
lineJointRounded: this.props.lineJointRounded,
lineCapRounded: this.props.lineCapRounded,
lineMiterLimit: this.props.lineMiterLimit,
getLineColor: guideAccessor(this.props.getTentativeLineColor),
getLineWidth: guideAccessor(this.props.getTentativeLineWidth),
getFillColor: guideAccessor(this.props.getTentativeFillColor),
pointType: this.props.editHandleType === 'icon' ? 'icon' : 'circle',
iconAtlas: this.props.editHandleIconAtlas,
})
);
return [layer];
}
createTooltipsLayers() {
const mode = this.getActiveMode();
// @ts-expect-error narrow type
const tooltips = mode.getTooltips(this.getModeProps(this.props));
const layer = new TextLayer({
getSize: DEFAULT_TOOLTIP_FONT_SIZE,
...this.getSubLayerProps({