Type Alias TCreateMarker

TCreateMarker: boolean | (instruction: TDirectionInstruction) => Marker

Controls marker creation for navigation points.

  • If true, a default marker is created.
  • If false, no marker is created.
  • If a function is provided, it will be called with the direction instruction and should return a custom Marker instance.
// Use default markers
createMarkers: { departure: true, destination: true }

// Disable markers
createMarkers: { departure: false }

// Create custom markers
createMarkers: {
departure: (instruction) => {
return mapView.Markers.add(instruction.coordinate, '<div>Custom</div>');
}
}