getMarkerById method
- int id
Get the marker with the given id.
Parameters
- IN id The marker id.
Returns
- Marker object
Throws
- An exception if it fails.
Implementation
Marker? getMarkerById(final int id) {
final OperationResult resultString = objectMethod(
_pointerId,
'MarkerCollection',
'getMarkerById',
args: id,
);
if (resultString['result'] == -1) {
return null;
}
return Marker.init(resultString['result']);
}