OlFeature
constOlFeature:MemoExoticComponent<(__namedParameters) =>null>
Defined in: src/ol-feature.tsx:74
Memoized OpenLayers feature component for displaying individual geographic features. Uses shallow comparison for props optimization. Must be used as a child of OlVectorSource.
OpenLayers Feature instance to display
Style properties to apply to the feature (reactive)
Custom style function for the feature (reactive)
Custom properties to attach to the feature (reactive)
Projection configuration for coordinate transformation
Example
Section titled “Example”<OlVectorSource> <OlFeature feature={myFeature} styleFunction={customStyle} properties={{ id: 'feature1' }} /></OlVectorSource>