@@ -510,6 +510,10 @@ extension LatLngBoundsOrLatLngBoundsLiteral$Ext on LatLngBoundsOrLatLngBoundsLit
510510 ' external Circle.copy(Circle circle);' ,
511511 ' external Circle.copyLiteral(CircleLiteral circle);' ,
512512 ]);
513+ customCode.add ('''
514+ bool isDraggableDefined() => callMethod('getDraggable'.toJS) != null;
515+ ''' );
516+ customDependencies.add ('JSObjectUnsafeUtilExtension' );
513517
514518 case 'Projection' :
515519 customDependencies.addAll ([
@@ -521,10 +525,24 @@ extension LatLngBoundsOrLatLngBoundsLiteral$Ext on LatLngBoundsOrLatLngBoundsLit
521525 customConstructors
522526 .add ('factory Projection() => JSObject() as Projection;' );
523527 customCode.add ('''
528+ Point? Function(
529+ LatLngOrLatLngLiteral latLng, [
530+ Point? point,
531+ ]) get fromLatLngToPoint {
532+ final function = (getProperty('fromLatLngToPoint'.toJS) as JSObject).callMethod('bind'.toJS, [this].toJS) as JSFunction;
533+ return (latLng, [point]) => function.callAsFunction(null, latLng, point) as Point?;
534+ }
524535 void set fromLatLngToPoint(Point? Function(
525536 LatLngOrLatLngLiteral latLng, [
526537 Point? point,
527538 ]) fromLatLngToPoint) => setProperty('fromLatLngToPoint'.toJS, fromLatLngToPoint.toJS);
539+ LatLng? Function(
540+ Point? pixel, [
541+ bool? noClampNoWrap,
542+ ]) get fromPointToLatLng {
543+ final function = (getProperty('fromPointToLatLng'.toJS) as JSObject).callMethod('bind'.toJS, [this].toJS) as JSFunction;
544+ return (pixel, [noClampNoWrap]) => function.callAsFunction(null, pixel, noClampNoWrap?.toJS) as LatLng?;
545+ }
528546 void set fromPointToLatLng(LatLng? Function(
529547 Point pixel, [
530548 bool? noClampNoWrap,
@@ -551,11 +569,23 @@ extension LatLngBoundsOrLatLngBoundsLiteral$Ext on LatLngBoundsOrLatLngBoundsLit
551569 'Document' ,
552570 ]);
553571 customCode.add ('''
572+ Element? Function(
573+ Point? tileCoord,
574+ num? zoom,
575+ Document? ownerDocument,
576+ ) get getTile {
577+ final function = (getProperty('getTile'.toJS) as JSObject).callMethod('bind'.toJS, [this].toJS) as JSFunction;
578+ return (tileCoord, zoom, ownerDocument) => function.callAsFunction(null, tileCoord, zoom?.toJS, ownerDocument) as Element?;
579+ }
554580 void set getTile(Element? Function(
555581 Point tileCoord,
556582 num zoom,
557583 Document ownerDocument,
558584 ) getTile) => setProperty('getTile'.toJS, getTile.toJS);
585+ void Function([Element? tile]) get releaseTile {
586+ final function = (getProperty('releaseTile'.toJS) as JSObject).callMethod('bind'.toJS, [this].toJS) as JSFunction;
587+ return ([tile]) => function.callAsFunction(null, tile);
588+ }
559589 void set releaseTile(void Function(
560590 Element? tile,
561591 ) releaseTile) => setProperty('releaseTile'.toJS, releaseTile.toJS);
@@ -618,6 +648,20 @@ extension LatLngBoundsOrLatLngBoundsLiteral$Ext on LatLngBoundsOrLatLngBoundsLit
618648 case 'DataGeometryCollection' :
619649 methods.removeWhere (
620650 (e) => {'forEachLatLng' , 'getType' }.contains (e.method.name));
651+ case 'event' :
652+ final triggerMethod =
653+ methods.firstWhere ((e) => e.method.name == 'trigger' );
654+ final eventArgsParameter = triggerMethod.method.parameters
655+ .firstWhere ((e) => e.name == 'eventArgs' );
656+ triggerMethod.method.parameters.remove (eventArgsParameter);
657+ triggerMethod.method.optionalParameters.add (eventArgsParameter);
658+ case 'Marker' :
659+ case 'Polyline' :
660+ case 'Polygon' :
661+ customCode.add ('''
662+ bool isDraggableDefined() => callMethod('getDraggable'.toJS) != null;
663+ ''' );
664+ customDependencies.add ('JSObjectUnsafeUtilExtension' );
621665 }
622666 for (final method in methods) {
623667 if (method.method.returnType.startsWith ('JSPromise<' ) &&
0 commit comments