addCustomGeometrySource method

void addCustomGeometrySource(
  1. String sourceId,
  2. CustomGeometrySourceOptions options
)

Implementation

void addCustomGeometrySource(
  String sourceId,
  CustomGeometrySourceOptions options,
) => _discard((arena, completion) {
  final registrations = _NativeRegistrations(_callbackRoots);
  return registrations.run(
    () => raw.mln_map_add_custom_geometry_source(
      _handle.raw,
      nativeStringView(sourceId, arena).value,
      registrations.add(
        _prepareCustomGeometrySourceOptions(options, registrations.roots),
      ),
      completion,
      nativeDiagnostic,
    ),
  );
});