Interface MapPlaceOptions

Option to activate Place Details detection within the input. You can paste one or many GIDs in the input. The separation can be either , (comma) or (space).

const place = {
enabled: true,
geometries: 'source',
fillColor: 'rgba(105, 87, 117, 0.1)',
outlineColor: 'rgba(105, 87, 117, 1)',
}
interface MapPlaceOptions {
    enabled: boolean;
    fillColor?: string;
    geometries?: GeometriesOptions | (() => GeometriesOptions);
    outlineColor?: string;
}

Hierarchy (view full)

Properties

enabled: boolean

Enable place details endpoint.

fillColor?: string

Fill color of the polygon, you should play with the opacity.

'rgba(105, 87, 117, 0.1)'
geometries?: GeometriesOptions | (() => GeometriesOptions)

Set the type of return from Places Details API, either a point or the source geometry.

geometries can be static or dynamic through a function.

outlineColor?: string

Outline color of the polygon.

'rgba(105, 87, 117, 1)'