Skip to content

circleStyleFunction

circleStyleFunction(feature): Style

Defined in: src/feature-styles.ts:26

Style function that creates circle styles based on feature properties. Reads size, fillColor, strokeColor, and strokeWidth from feature properties.

FeatureLike

The OpenLayers feature to style

Style

Style Style object with configured circle appearance

const feature = new Feature({
geometry: new Point([0, 0]),
size: 15,
fillColor: '#00ff00',
strokeColor: '#000000',
strokeWidth: 2
})
feature.setStyle(circleStyleFunction)