getSketches method
- MarkerType type
Return the singleton MarkerSketches collection for a given type.
The returned MarkerSketches instance allows per-marker render customizations and does not need to be added to MapViewMarkerCollections.
Parameters
type: The MarkerType whose sketches collection is requested.
Returns
- The corresponding MarkerSketches singleton instance.
Implementation
MarkerSketches getSketches(MarkerType type) {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewMarkerCollections',
'sketches',
args: type.id,
dependencyId: _mapPointerId,
);
return MarkerSketches.init(resultString['result'], 0);
}