Extra properties to display color and title for a geometry on the map.
Provides customization options for rendering polygon geometries, including visual styling and labeling.
Optional
Fill color for the geometry.
Overrides the default fill color from the module configuration. Accepts any valid CSS color value.
Color Formats:
color: '#FF5733'color: 'rgb(0, 128, 255)'color: 'rgba(255, 0, 0, 0.5)'color: 'red' Copy
color: '#FF5733'color: 'rgb(0, 128, 255)'color: 'rgba(255, 0, 0, 0.5)'color: 'red'
Display title for the geometry.
Optional text label displayed at the center of the polygon. If not provided, no label will be shown.
Common Uses:
title: 'Amsterdam City Center'title: 'Zone A'title: '30 min driving range'title: undefined // No label Copy
title: 'Amsterdam City Center'title: 'Zone A'title: '30 min driving range'title: undefined // No label
Use Cases:
These properties override default styling and allow per-feature customization.
const geometryProps: ExtraGeometryDisplayProps = { title: 'Amsterdam City Center', color: '#FF5733', eventState: 'click'};// With custom propertiesconst customProps: ExtraGeometryDisplayProps = { title: 'Delivery Zone A', color: '#00FF00', zoneId: 'zone-a', capacity: 100}; Copy
const geometryProps: ExtraGeometryDisplayProps = { title: 'Amsterdam City Center', color: '#FF5733', eventState: 'click'};// With custom propertiesconst customProps: ExtraGeometryDisplayProps = { title: 'Delivery Zone A', color: '#00FF00', zoneId: 'zone-a', capacity: 100};
Extra properties to display color and title for a geometry on the map.
Provides customization options for rendering polygon geometries, including visual styling and labeling.