initWithFrame$1 method

MLNMapView initWithFrame$1(
  1. CGRect frame, {
  2. required NSString styleJSON,
})

Initializes and returns a newly allocated map view with the specified frame and style JSON.

@param frame The frame for the view, measured in points. @param styleJSON JSON string of the map style to display. The JSON must conform to the MapLibre Style Specification. Specify nil for the default style. @return An initialized map view.

Implementation

MLNMapView initWithFrame$1(objc.CGRect frame, {required objc.NSString styleJSON}) {
  final _ret = _objc_msgSend_gxusyk(this.ref.retainAndReturnPointer(), _sel_initWithFrame_styleJSON_, frame, styleJSON.ref.pointer);
  return MLNMapView.castFromPointer(_ret, retain: false, release: true);
}