One of the SDK's pins, recoloured or replaced by an image of your own.
Places draw their default pin from one. Route waypoints use one per role (start, stop, finish).
const recoloured: PinIconConfig = { style: { fillColor: '#2FAA4E', outlineColor: '#FFFFFF' } };const replaced: PinIconConfig = { image: { image: '/icons/flag.svg', pixelRatio: 2 } }; Copy
const recoloured: PinIconConfig = { style: { fillColor: '#2FAA4E', outlineColor: '#FFFFFF' } };const replaced: PinIconConfig = { image: { image: '/icons/flag.svg', pixelRatio: 2 } };
Optional
An image drawn in place of the SDK's pin. Neither style nor the image's own offsetX and offsetY apply to it.
style
offsetX
offsetY
The colours of the SDK's pin. If you leave out fillColor, the pin takes the module's colour.
fillColor
One of the SDK's pins, recoloured or replaced by an image of your own.
Remarks
Places draw their default pin from one. Route waypoints use one per role (start, stop, finish).
Example