This commit is contained in:
metacryst
2026-01-09 11:14:27 -06:00
parent cf03c95664
commit 637c9e4674
2149 changed files with 527743 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { registerPlugin } from '@capacitor/core';
const CapacitorGoogleMaps = registerPlugin('CapacitorGoogleMaps', {
web: () => import('./web').then((m) => new m.CapacitorGoogleMapsWeb()),
});
CapacitorGoogleMaps.addListener('isMapInFocus', (data) => {
var _a;
const x = data.x;
const y = data.y;
const elem = document.elementFromPoint(x, y);
const internalId = (_a = elem === null || elem === void 0 ? void 0 : elem.dataset) === null || _a === void 0 ? void 0 : _a.internalId;
const mapInFocus = internalId === data.mapId;
CapacitorGoogleMaps.dispatchMapEvent({ id: data.mapId, focus: mapInFocus });
});
export { CapacitorGoogleMaps };
//# sourceMappingURL=implementation.js.map