@mint-ui/map 0.1.9-beta → 0.2.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/.eslintrc.js +109 -109
  2. package/LICENSE +21 -21
  3. package/README.md +53 -53
  4. package/dist/components/mint-map/MintMap.d.ts +92 -92
  5. package/dist/components/mint-map/core/MintMapController.d.ts +33 -33
  6. package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
  7. package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
  8. package/dist/components/mint-map/core/advanced/index.d.ts +1 -1
  9. package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
  10. package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
  11. package/dist/components/mint-map/core/index.d.ts +7 -7
  12. package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
  13. package/dist/components/mint-map/core/provider/index.d.ts +1 -1
  14. package/dist/components/mint-map/core/util/animation.d.ts +16 -16
  15. package/dist/components/mint-map/core/util/calculate.d.ts +34 -34
  16. package/dist/components/mint-map/core/util/index.d.ts +3 -3
  17. package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
  18. package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +11 -11
  19. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +23 -23
  20. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +5 -5
  21. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +5 -5
  22. package/dist/components/mint-map/core/wrapper/index.d.ts +4 -4
  23. package/dist/components/mint-map/google/GoogleMintMapController.d.ts +35 -35
  24. package/dist/components/mint-map/google/GoogleMintMapController.js +1 -8
  25. package/dist/components/mint-map/index.d.ts +4 -4
  26. package/dist/components/mint-map/naver/NaverMintMapController.d.ts +38 -38
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.es.js +1 -8
  29. package/dist/index.umd.js +1 -8
  30. package/package.json +76 -76
  31. package/test.ts +6 -6
@@ -1,6 +1,6 @@
1
- import { Marker } from "../../MintMap";
2
- import { MapMarkerMoving } from "../wrapper/MapMarkerWrapper";
3
- export interface MapMarkerMovingHookProps extends MapMarkerMoving {
4
- marker?: Marker;
5
- }
6
- export declare function useMarkerMoving({ marker, positions, positionClosed, loop, fps, startPositionIndex, velocity, onMovingStart, onMovingEnd }: MapMarkerMovingHookProps): (() => void)[];
1
+ import { Marker } from "../../MintMap";
2
+ import { MapMarkerMoving } from "../wrapper/MapMarkerWrapper";
3
+ export interface MapMarkerMovingHookProps extends MapMarkerMoving {
4
+ marker?: Marker;
5
+ }
6
+ export declare function useMarkerMoving({ marker, positions, positionClosed, loop, fps, startPositionIndex, velocity, onMovingStart, onMovingEnd }: MapMarkerMovingHookProps): (() => void)[];
@@ -1 +1 @@
1
- export * from "./MarkerMovingHook";
1
+ export * from "./MarkerMovingHook";
@@ -1,7 +1,7 @@
1
- export * from "./MintMapCore";
2
- export * from "./MintMapController";
3
- export * from "./advanced";
4
- export * from "./hooks";
5
- export * from "./provider";
6
- export * from './util';
7
- export * from './wrapper';
1
+ export * from "./MintMapCore";
2
+ export * from "./MintMapController";
3
+ export * from "./advanced";
4
+ export * from "./hooks";
5
+ export * from "./provider";
6
+ export * from './util';
7
+ export * from './wrapper';
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from "react";
2
- import { MintMapController } from "../MintMapController";
3
- interface MintMapProviderProps {
4
- controller: MintMapController;
5
- }
6
- export declare function MintMapProvider({ controller, children }: PropsWithChildren<MintMapProviderProps>): JSX.Element;
7
- export declare function useMintMapController(): MintMapController;
8
- export {};
1
+ import { PropsWithChildren } from "react";
2
+ import { MintMapController } from "../MintMapController";
3
+ interface MintMapProviderProps {
4
+ controller: MintMapController;
5
+ }
6
+ export declare function MintMapProvider({ controller, children }: PropsWithChildren<MintMapProviderProps>): JSX.Element;
7
+ export declare function useMintMapController(): MintMapController;
8
+ export {};
@@ -1 +1 @@
1
- export * from "./MintMapProvider";
1
+ export * from "./MintMapProvider";
@@ -1,16 +1,16 @@
1
- export declare type DrawFunction = (frameGapTime: number, elapsedTime: number) => boolean | undefined;
2
- export declare class AnimationPlayer {
3
- prevtime: number;
4
- elapsedTime: number;
5
- fps: number | null;
6
- baseDrawGapTime: number | null;
7
- private deltaTime;
8
- private playing;
9
- draw: DrawFunction;
10
- constructor(drawFunction: DrawFunction, fps?: number);
11
- init(): void;
12
- start(): void;
13
- stop(): void;
14
- resume(): void;
15
- makeFrame(timestamp: number): void;
16
- }
1
+ export declare type DrawFunction = (frameGapTime: number, elapsedTime: number) => boolean | undefined;
2
+ export declare class AnimationPlayer {
3
+ prevtime: number;
4
+ elapsedTime: number;
5
+ fps: number | null;
6
+ baseDrawGapTime: number | null;
7
+ private deltaTime;
8
+ private playing;
9
+ draw: DrawFunction;
10
+ constructor(drawFunction: DrawFunction, fps?: number);
11
+ init(): void;
12
+ start(): void;
13
+ stop(): void;
14
+ resume(): void;
15
+ makeFrame(timestamp: number): void;
16
+ }
@@ -1,34 +1,34 @@
1
- import { Position } from "../../MintMap";
2
- export declare class PolygonCalculator {
3
- static getCenter(positions: Position[]): Position;
4
- static intersects(positions1: Position[], positions2: Position[]): boolean;
5
- static getIncludedPositions(polygon: Position[], position: Position | Position[]): Position[];
6
- private static convertPolygonToLinePoints;
7
- private static convertPositionToPoints;
8
- private static getCrossPoint;
9
- private static toFixedPosition;
10
- private static getCrossPointAll;
11
- private static findCrossPoint;
12
- }
13
- export interface NextPositionContext {
14
- pos1: Position;
15
- pos2: Position;
16
- velocityKmh: number;
17
- elapsedTimeMs: number;
18
- totalDistance: number;
19
- currDistance: number;
20
- distanceRemain: number;
21
- prevPos2: Position;
22
- prevVelocityKmh: number;
23
- vPerMs: number;
24
- nextPos: Position;
25
- }
26
- export declare class GeoCalulator {
27
- private static readonly EARTH_RADIUS;
28
- private static readonly LATITUDE_POSITION_VALUE_PER_METER;
29
- static computeDistanceKiloMeter(pos1: Position, pos2: Position): number;
30
- private static deg2rad;
31
- static convertMeterToLatitudeValue(meter: number): number;
32
- private static readonly MS_FROM_HOUR;
33
- static computeNextPositionAndDistances(context: NextPositionContext): NextPositionContext;
34
- }
1
+ import { Position } from "../../MintMap";
2
+ export declare class PolygonCalculator {
3
+ static getCenter(positions: Position[]): Position;
4
+ static intersects(positions1: Position[], positions2: Position[]): boolean;
5
+ static getIncludedPositions(polygon: Position[], position: Position | Position[]): Position[];
6
+ private static convertPolygonToLinePoints;
7
+ private static convertPositionToPoints;
8
+ private static getCrossPoint;
9
+ private static toFixedPosition;
10
+ private static getCrossPointAll;
11
+ private static findCrossPoint;
12
+ }
13
+ export interface NextPositionContext {
14
+ pos1: Position;
15
+ pos2: Position;
16
+ velocityKmh: number;
17
+ elapsedTimeMs: number;
18
+ totalDistance: number;
19
+ currDistance: number;
20
+ distanceRemain: number;
21
+ prevPos2: Position;
22
+ prevVelocityKmh: number;
23
+ vPerMs: number;
24
+ nextPos: Position;
25
+ }
26
+ export declare class GeoCalulator {
27
+ private static readonly EARTH_RADIUS;
28
+ private static readonly LATITUDE_POSITION_VALUE_PER_METER;
29
+ static computeDistanceKiloMeter(pos1: Position, pos2: Position): number;
30
+ private static deg2rad;
31
+ static convertMeterToLatitudeValue(meter: number): number;
32
+ private static readonly MS_FROM_HOUR;
33
+ static computeNextPositionAndDistances(context: NextPositionContext): NextPositionContext;
34
+ }
@@ -1,3 +1,3 @@
1
- export * from './animation';
2
- export * from './calculate';
3
- export * from './waiting';
1
+ export * from './animation';
2
+ export * from './calculate';
3
+ export * from './waiting';
@@ -1 +1 @@
1
- export declare function waiting(evaluation: () => boolean, timeoutSeconds?: number): Promise<boolean>;
1
+ export declare function waiting(evaluation: () => boolean, timeoutSeconds?: number): Promise<boolean>;
@@ -1,11 +1,11 @@
1
- import { PropsWithChildren } from "react";
2
- declare type AlignHorizontal = 'left' | 'right' | 'center';
3
- declare type AlignVertical = 'top' | 'bottom' | 'center';
4
- export interface MapControlWrapperProps {
5
- width?: number | string;
6
- height?: number | string;
7
- positionHorizontal?: AlignHorizontal;
8
- positionVertical?: AlignVertical;
9
- }
10
- export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
11
- export {};
1
+ import { PropsWithChildren } from "react";
2
+ declare type AlignHorizontal = 'left' | 'right' | 'center';
3
+ declare type AlignVertical = 'top' | 'bottom' | 'center';
4
+ export interface MapControlWrapperProps {
5
+ width?: number | string;
6
+ height?: number | string;
7
+ positionHorizontal?: AlignHorizontal;
8
+ positionVertical?: AlignVertical;
9
+ }
10
+ export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
11
+ export {};
@@ -1,23 +1,23 @@
1
- import { PropsWithChildren } from "react";
2
- import { MarkerOptions, Position } from "../../MintMap";
3
- export declare type MovingEventFunciton = () => void;
4
- export interface MapMarkerMoving {
5
- positions?: Position[];
6
- positionClosed?: boolean;
7
- startPositionIndex?: number;
8
- velocity?: number;
9
- loop?: boolean;
10
- delay?: number;
11
- autoStart?: boolean;
12
- fps?: number;
13
- onMovingStart?: MovingEventFunciton;
14
- onMovingEnd?: MovingEventFunciton;
15
- }
16
- export interface MapMarkerWrapperProps extends MarkerOptions {
17
- topOnClick?: boolean;
18
- topOnHover?: boolean;
19
- startAnimationClassName?: string;
20
- endAnimationClassName?: string;
21
- movingAnimation?: MapMarkerMoving;
22
- }
23
- export declare function MapMarkerWrapper({ startAnimationClassName, endAnimationClassName, topOnClick, topOnHover, movingAnimation, children, ...options }: PropsWithChildren<MapMarkerWrapperProps>): JSX.Element;
1
+ import { PropsWithChildren } from "react";
2
+ import { MarkerOptions, Position } from "../../MintMap";
3
+ export declare type MovingEventFunciton = () => void;
4
+ export interface MapMarkerMoving {
5
+ positions?: Position[];
6
+ positionClosed?: boolean;
7
+ startPositionIndex?: number;
8
+ velocity?: number;
9
+ loop?: boolean;
10
+ delay?: number;
11
+ autoStart?: boolean;
12
+ fps?: number;
13
+ onMovingStart?: MovingEventFunciton;
14
+ onMovingEnd?: MovingEventFunciton;
15
+ }
16
+ export interface MapMarkerWrapperProps extends MarkerOptions {
17
+ topOnClick?: boolean;
18
+ topOnHover?: boolean;
19
+ startAnimationClassName?: string;
20
+ endAnimationClassName?: string;
21
+ movingAnimation?: MapMarkerMoving;
22
+ }
23
+ export declare function MapMarkerWrapper({ startAnimationClassName, endAnimationClassName, topOnClick, topOnHover, movingAnimation, children, ...options }: PropsWithChildren<MapMarkerWrapperProps>): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from "react";
2
- import { PolygonOptions } from "../../MintMap";
3
- export interface MapPolygonWrapperProps extends PolygonOptions {
4
- }
5
- export declare function MapPolygonWrapper({ children, ...options }: PropsWithChildren<MapPolygonWrapperProps>): JSX.Element;
1
+ import { PropsWithChildren } from "react";
2
+ import { PolygonOptions } from "../../MintMap";
3
+ export interface MapPolygonWrapperProps extends PolygonOptions {
4
+ }
5
+ export declare function MapPolygonWrapper({ children, ...options }: PropsWithChildren<MapPolygonWrapperProps>): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from "react";
2
- import { PolylineOptions } from "../../MintMap";
3
- export interface MapPolylineWrapperProps extends PolylineOptions {
4
- }
5
- export declare function MapPolylineWrapper({ children, ...options }: PropsWithChildren<MapPolylineWrapperProps>): JSX.Element;
1
+ import { PropsWithChildren } from "react";
2
+ import { PolylineOptions } from "../../MintMap";
3
+ export interface MapPolylineWrapperProps extends PolylineOptions {
4
+ }
5
+ export declare function MapPolylineWrapper({ children, ...options }: PropsWithChildren<MapPolylineWrapperProps>): JSX.Element;
@@ -1,4 +1,4 @@
1
- export * from './MapControlWrapper';
2
- export * from './MapMarkerWrapper';
3
- export * from './MapPolygonWrapper';
4
- export * from './MapPolylineWrapper';
1
+ export * from './MapControlWrapper';
2
+ export * from './MapMarkerWrapper';
3
+ export * from './MapPolygonWrapper';
4
+ export * from './MapPolylineWrapper';
@@ -1,35 +1,35 @@
1
- /// <reference types="google.maps" />
2
- import { MintMapController } from "../core/MintMapController";
3
- import { Bounds, Drawable, MapType, MapVendorType, Marker, MarkerOptions, MintMapProps, Polygon, PolygonOptions, Polyline, PolylineOptions, Position } from "../MintMap";
4
- export declare class GoogleMintMapController extends MintMapController {
5
- type: MapType;
6
- map: google.maps.Map | null;
7
- scriptUrl: string;
8
- scriptModules: string[];
9
- constructor(props: MintMapProps);
10
- polylineEvents: string[];
11
- createPolyline(polyline: Polyline): void;
12
- updatePolyline(polyline: Polyline, options: PolylineOptions): void;
13
- polygonEvents: string[];
14
- createPolygon(polygon: Polygon): void;
15
- updatePolygon(polygon: Polygon, options: PolygonOptions): void;
16
- private getValidOptions;
17
- markerEvents: string[];
18
- createMarker(marker: Marker): void;
19
- updateMarker(marker: Marker, options: MarkerOptions): void;
20
- private markerMaxZIndex;
21
- private getMaxZIndex;
22
- markerToTheTop(marker: Marker): void;
23
- clearDrawable(drawable: Drawable): boolean;
24
- private dragged;
25
- isMapDragged(): boolean;
26
- setMapDragged(value: boolean): void;
27
- loadMapApi(): Promise<boolean>;
28
- initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
29
- destroyMap: () => void;
30
- private fromGoogleBounds;
31
- getCurrBounds(): Bounds;
32
- panningTo(targetCenter: Position): void;
33
- getZoomLevel(): number;
34
- setZoomLevel(zoom: number): void;
35
- }
1
+ /// <reference types="google.maps" />
2
+ import { MintMapController } from "../core/MintMapController";
3
+ import { Bounds, Drawable, MapType, MapVendorType, Marker, MarkerOptions, MintMapProps, Polygon, PolygonOptions, Polyline, PolylineOptions, Position } from "../MintMap";
4
+ export declare class GoogleMintMapController extends MintMapController {
5
+ type: MapType;
6
+ map: google.maps.Map | null;
7
+ scriptUrl: string;
8
+ scriptModules: string[];
9
+ constructor(props: MintMapProps);
10
+ polylineEvents: string[];
11
+ createPolyline(polyline: Polyline): void;
12
+ updatePolyline(polyline: Polyline, options: PolylineOptions): void;
13
+ polygonEvents: string[];
14
+ createPolygon(polygon: Polygon): void;
15
+ updatePolygon(polygon: Polygon, options: PolygonOptions): void;
16
+ private getValidOptions;
17
+ markerEvents: string[];
18
+ createMarker(marker: Marker): void;
19
+ updateMarker(marker: Marker, options: MarkerOptions): void;
20
+ private markerMaxZIndex;
21
+ private getMaxZIndex;
22
+ markerToTheTop(marker: Marker): void;
23
+ clearDrawable(drawable: Drawable): boolean;
24
+ private dragged;
25
+ isMapDragged(): boolean;
26
+ setMapDragged(value: boolean): void;
27
+ loadMapApi(): Promise<boolean>;
28
+ initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
29
+ destroyMap: () => void;
30
+ private fromGoogleBounds;
31
+ getCurrBounds(): Bounds;
32
+ panningTo(targetCenter: Position): void;
33
+ getZoomLevel(): number;
34
+ setZoomLevel(zoom: number): void;
35
+ }
@@ -361,7 +361,7 @@ var GoogleMintMapController = function (_super) {
361
361
 
362
362
  case 2:
363
363
  map = new google.maps.Map(divElement, {
364
- mapId: this.mapProps.mapId,
364
+ mapId: this.mapProps.mapId || 'TEMP_MAP_ID',
365
365
  center: (_a = this.mapProps.base) === null || _a === void 0 ? void 0 : _a.center,
366
366
  maxZoom: (_b = this.mapProps.base) === null || _b === void 0 ? void 0 : _b.maxZoomLevel,
367
367
  minZoom: (_c = this.mapProps.base) === null || _c === void 0 ? void 0 : _c.minZoomLevel,
@@ -369,20 +369,13 @@ var GoogleMintMapController = function (_super) {
369
369
  disableDefaultUI: true,
370
370
  gestureHandling: 'greedy'
371
371
  });
372
- map.addListener('dragend', function () {
373
- console.log('map dragend');
374
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
375
- });
376
372
  map.addListener('idle', function () {
377
373
  _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
378
374
  });
379
375
  map.addListener('zoom_changed', function () {
380
- console.log('zoom_changed');
381
376
  _this.map && _this.mapProps.onZoomChanged && _this.mapProps.onZoomChanged(_this.map.getZoom());
382
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
383
377
  });
384
378
  map.addListener('click', function (e) {
385
- console.log('map click', e);
386
379
  var pos = new MintMap.Position(e.latLng.lat(), e.latLng.lng());
387
380
  pos.offset = new MintMap.Offset(e.pixel.x, e.pixel.y);
388
381
  _this.mapProps.onClick && _this.mapProps.onClick(pos);
@@ -1,4 +1,4 @@
1
- export * from './MintMap';
2
- export * from './core';
3
- export * from './naver/NaverMintMapController';
4
- export * from './google/GoogleMintMapController';
1
+ export * from './MintMap';
2
+ export * from './core';
3
+ export * from './naver/NaverMintMapController';
4
+ export * from './google/GoogleMintMapController';
@@ -1,38 +1,38 @@
1
- /// <reference types="navermaps" />
2
- import { MintMapController } from "../core/MintMapController";
3
- import { Bounds, Drawable, MapType, MapVendorType, Marker, MarkerOptions, MintMapProps, Polygon, PolygonOptions, Polyline, PolylineOptions, Position } from "../MintMap";
4
- import { ObjectPool } from '@mint-ui/tools';
5
- export declare class NaverMintMapController extends MintMapController {
6
- type: MapType;
7
- map: naver.maps.Map | null;
8
- scriptUrl: string;
9
- scriptModules: string[];
10
- markerPool?: ObjectPool<naver.maps.Marker>;
11
- constructor(props: MintMapProps);
12
- private initMarkerPool;
13
- polylineEvents: string[];
14
- createPolyline(polyline: Polyline): void;
15
- updatePolyline(polyline: Polyline, options: PolylineOptions): void;
16
- polygonEvents: string[];
17
- createPolygon(polygon: Polygon): void;
18
- updatePolygon(polygon: Polygon, options: PolygonOptions): void;
19
- markerEvents: string[];
20
- createMarker(marker: Marker): void;
21
- updateMarker(marker: Marker, options: MarkerOptions): void;
22
- private markerMaxZIndex;
23
- private getMaxZIndex;
24
- markerToTheTop(marker: Marker): void;
25
- clearDrawable(drawable: Drawable): boolean;
26
- private dragStartPoint;
27
- private dragged;
28
- isMapDragged(): boolean;
29
- setMapDragged(value: boolean): void;
30
- loadMapApi(): Promise<boolean>;
31
- initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
32
- private getSafeZoomValue;
33
- destroyMap(): void;
34
- getCurrBounds(): Bounds;
35
- panningTo(targetCenter: Position): void;
36
- getZoomLevel(): number;
37
- setZoomLevel(zoom: number): void;
38
- }
1
+ /// <reference types="navermaps" />
2
+ import { MintMapController } from "../core/MintMapController";
3
+ import { Bounds, Drawable, MapType, MapVendorType, Marker, MarkerOptions, MintMapProps, Polygon, PolygonOptions, Polyline, PolylineOptions, Position } from "../MintMap";
4
+ import { ObjectPool } from '@mint-ui/tools';
5
+ export declare class NaverMintMapController extends MintMapController {
6
+ type: MapType;
7
+ map: naver.maps.Map | null;
8
+ scriptUrl: string;
9
+ scriptModules: string[];
10
+ markerPool?: ObjectPool<naver.maps.Marker>;
11
+ constructor(props: MintMapProps);
12
+ private initMarkerPool;
13
+ polylineEvents: string[];
14
+ createPolyline(polyline: Polyline): void;
15
+ updatePolyline(polyline: Polyline, options: PolylineOptions): void;
16
+ polygonEvents: string[];
17
+ createPolygon(polygon: Polygon): void;
18
+ updatePolygon(polygon: Polygon, options: PolygonOptions): void;
19
+ markerEvents: string[];
20
+ createMarker(marker: Marker): void;
21
+ updateMarker(marker: Marker, options: MarkerOptions): void;
22
+ private markerMaxZIndex;
23
+ private getMaxZIndex;
24
+ markerToTheTop(marker: Marker): void;
25
+ clearDrawable(drawable: Drawable): boolean;
26
+ private dragStartPoint;
27
+ private dragged;
28
+ isMapDragged(): boolean;
29
+ setMapDragged(value: boolean): void;
30
+ loadMapApi(): Promise<boolean>;
31
+ initializingMap(divElement: HTMLDivElement): Promise<MapVendorType>;
32
+ private getSafeZoomValue;
33
+ destroyMap(): void;
34
+ getCurrBounds(): Bounds;
35
+ panningTo(targetCenter: Position): void;
36
+ getZoomLevel(): number;
37
+ setZoomLevel(zoom: number): void;
38
+ }
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './components/mint-map';
1
+ export * from './components/mint-map';
package/dist/index.es.js CHANGED
@@ -1234,7 +1234,7 @@ var GoogleMintMapController = function (_super) {
1234
1234
 
1235
1235
  case 2:
1236
1236
  map = new google.maps.Map(divElement, {
1237
- mapId: this.mapProps.mapId,
1237
+ mapId: this.mapProps.mapId || 'TEMP_MAP_ID',
1238
1238
  center: (_a = this.mapProps.base) === null || _a === void 0 ? void 0 : _a.center,
1239
1239
  maxZoom: (_b = this.mapProps.base) === null || _b === void 0 ? void 0 : _b.maxZoomLevel,
1240
1240
  minZoom: (_c = this.mapProps.base) === null || _c === void 0 ? void 0 : _c.minZoomLevel,
@@ -1242,20 +1242,13 @@ var GoogleMintMapController = function (_super) {
1242
1242
  disableDefaultUI: true,
1243
1243
  gestureHandling: 'greedy'
1244
1244
  });
1245
- map.addListener('dragend', function () {
1246
- console.log('map dragend');
1247
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1248
- });
1249
1245
  map.addListener('idle', function () {
1250
1246
  _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1251
1247
  });
1252
1248
  map.addListener('zoom_changed', function () {
1253
- console.log('zoom_changed');
1254
1249
  _this.map && _this.mapProps.onZoomChanged && _this.mapProps.onZoomChanged(_this.map.getZoom());
1255
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1256
1250
  });
1257
1251
  map.addListener('click', function (e) {
1258
- console.log('map click', e);
1259
1252
  var pos = new Position(e.latLng.lat(), e.latLng.lng());
1260
1253
  pos.offset = new Offset(e.pixel.x, e.pixel.y);
1261
1254
  _this.mapProps.onClick && _this.mapProps.onClick(pos);
package/dist/index.umd.js CHANGED
@@ -1239,7 +1239,7 @@
1239
1239
 
1240
1240
  case 2:
1241
1241
  map = new google.maps.Map(divElement, {
1242
- mapId: this.mapProps.mapId,
1242
+ mapId: this.mapProps.mapId || 'TEMP_MAP_ID',
1243
1243
  center: (_a = this.mapProps.base) === null || _a === void 0 ? void 0 : _a.center,
1244
1244
  maxZoom: (_b = this.mapProps.base) === null || _b === void 0 ? void 0 : _b.maxZoomLevel,
1245
1245
  minZoom: (_c = this.mapProps.base) === null || _c === void 0 ? void 0 : _c.minZoomLevel,
@@ -1247,20 +1247,13 @@
1247
1247
  disableDefaultUI: true,
1248
1248
  gestureHandling: 'greedy'
1249
1249
  });
1250
- map.addListener('dragend', function () {
1251
- console.log('map dragend');
1252
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1253
- });
1254
1250
  map.addListener('idle', function () {
1255
1251
  _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1256
1252
  });
1257
1253
  map.addListener('zoom_changed', function () {
1258
- console.log('zoom_changed');
1259
1254
  _this.map && _this.mapProps.onZoomChanged && _this.mapProps.onZoomChanged(_this.map.getZoom());
1260
- _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1261
1255
  });
1262
1256
  map.addListener('click', function (e) {
1263
- console.log('map click', e);
1264
1257
  var pos = new Position(e.latLng.lat(), e.latLng.lng());
1265
1258
  pos.offset = new Offset(e.pixel.x, e.pixel.y);
1266
1259
  _this.mapProps.onClick && _this.mapProps.onClick(pos);