replaceCoordinatesInRange$1 method
- NSRange range, {
- required Pointer<
CLLocationCoordinate2D> withCoordinates, - required int count,
Replaces the vertices at the given range in the shape with the specified number of vertices from a given C array.
If the shape is currently visible on the map as an annotation, it is redrawn
immediately. If the shape is part of an MLNShapeSource object, you must
explicitly set the MLNShapeSource/shape property in order for any style
layers that use the source to be redrawn.
If count is greater than the length field of range, some vertices will
effectively be inserted into the shape. On the other hand, if count is less
than the length field of range, some vertices will effectively be removed.
If range extends beyond the shape’s coordinates property, an
NSRangeException is raised. If you want to append new vertices to the shape,
use the -appendCoordinates:count: method.
@param range The range of vertices to replace. The location field indicates
the first vertex you are replacing, with 0 being the first vertex, 1
being the second vertex, and so on. The length field indicates the number
of vertices to replace.
@param coords The array of coordinates defining part of the shape. The data in
this array is copied to the shape’s coordinates property.
@param count The number of coordinates from the coords array to insert in
place of the coordinates in range. The sum of range’s length and this
count must not exceed the number of items currently in the coordinates
property.
Implementation
void replaceCoordinatesInRange$1(objc.NSRange range, {required ffi.Pointer<CLLocationCoordinate2D> withCoordinates,required int count}) {
_objc_msgSend_61jbin(this.ref.pointer, _sel_replaceCoordinatesInRange_withCoordinates_count_, range, withCoordinates, count);
}