centerCoordinate property
CLLocationCoordinate2D
get
centerCoordinate
The geographic coordinate at the center of the map view.
Changing the value of this property centers the map on the new coordinate without changing the current zoom level.
Changing the value of this property updates the map view immediately. If you
want to animate the change, use the -setCenterCoordinate:animated: method
instead.
Implementation
CLLocationCoordinate2D get centerCoordinate {
final _ptr = pkg_ffi.calloc<CLLocationCoordinate2D>();
objc.useMsgSendVariants ? _objc_msgSend_18o5nokStret(_ptr, this.ref.pointer, _sel_centerCoordinate) : _ptr.ref = _objc_msgSend_18o5nok(this.ref.pointer, _sel_centerCoordinate);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<CLLocationCoordinate2D>(), finalizer: pkg_ffi.calloc.nativeFree);
return ffi.Struct.create<CLLocationCoordinate2D>(_finalizable);
}
set
centerCoordinate
(CLLocationCoordinate2D value)
The geographic coordinate at the center of the map view.
Changing the value of this property centers the map on the new coordinate without changing the current zoom level.
Changing the value of this property updates the map view immediately. If you
want to animate the change, use the -setCenterCoordinate:animated: method
instead.
Implementation
set centerCoordinate(CLLocationCoordinate2D value) {
_objc_msgSend_1zv0am(this.ref.pointer, _sel_setCenterCoordinate_, value);
}