GeoJSON Feature containing polygon or multi-polygon geometry.
Represents an area on the map, such as:
Type of the feature's properties object
Bounding box that contains the feature's geometry.
const cityBoundary: PolygonFeature<{ name: string, population: number }> = { type: 'Feature', geometry: { type: 'Polygon', coordinates: [[ [4.8, 52.3], [5.0, 52.3], [5.0, 52.4], [4.8, 52.4], [4.8, 52.3] ]] }, properties: { name: 'Amsterdam', population: 872680 }}; Copy
const cityBoundary: PolygonFeature<{ name: string, population: number }> = { type: 'Feature', geometry: { type: 'Polygon', coordinates: [[ [4.8, 52.3], [5.0, 52.3], [5.0, 52.4], [4.8, 52.4], [4.8, 52.3] ]] }, properties: { name: 'Amsterdam', population: 872680 }};
GeoJSON Feature containing polygon or multi-polygon geometry.
Represents an area on the map, such as: