@mint-ui/map 0.1.1-beta → 0.1.2-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.
- package/dist/components/mint-map/MintMap.d.ts +2 -2
- package/dist/components/mint-map/MintMap.js +69 -49
- package/dist/components/mint-map/core/MintMapController.d.ts +1 -1
- package/dist/components/mint-map/core/MintMapController.js +3 -1
- package/dist/components/mint-map/core/MintMapCore.d.ts +1 -1
- package/dist/components/mint-map/core/MintMapCore.js +3 -1
- package/dist/components/mint-map/core/advanced/MapBuildingProjection.js +4 -4
- package/dist/components/mint-map/core/advanced/index.d.ts +1 -0
- package/dist/components/mint-map/core/hooks/index.d.ts +1 -0
- package/dist/components/mint-map/core/index.d.ts +7 -7
- package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +2 -2
- package/dist/components/mint-map/core/provider/MintMapProvider.js +1 -1
- package/dist/components/mint-map/core/provider/index.d.ts +1 -0
- package/dist/components/mint-map/core/util/index.d.ts +3 -0
- package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
- package/dist/components/mint-map/core/util/waiting.js +33 -0
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +3 -1
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +3 -1
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +3 -1
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +3 -1
- package/dist/components/mint-map/core/wrapper/index.d.ts +4 -0
- package/dist/components/mint-map/google/GoogleMintMapController.d.ts +2 -2
- package/dist/components/mint-map/google/GoogleMintMapController.js +431 -0
- package/dist/components/mint-map/index.d.ts +3 -1
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +2 -2
- package/dist/components/mint-map/naver/NaverMintMapController.js +427 -0
- package/dist/index.es.js +1095 -197
- package/dist/index.js +32 -9
- package/dist/index.umd.js +1109 -195
- package/package.json +1 -1
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var MintMapController = require('../core/MintMapController.js');
|
|
7
|
+
var waiting = require('../core/util/waiting.js');
|
|
8
|
+
var MintMap = require('../MintMap.js');
|
|
9
|
+
|
|
10
|
+
var GoogleMintMapController = function (_super) {
|
|
11
|
+
tslib.__extends(GoogleMintMapController, _super);
|
|
12
|
+
|
|
13
|
+
function GoogleMintMapController(props) {
|
|
14
|
+
var _this = _super.call(this, props) || this;
|
|
15
|
+
|
|
16
|
+
_this.type = 'google';
|
|
17
|
+
_this.map = null;
|
|
18
|
+
_this.scriptUrl = 'https://maps.googleapis.com/maps/api/js';
|
|
19
|
+
_this.scriptModules = ['marker'];
|
|
20
|
+
_this.polylineEvents = ['mouseover', 'mouseout'];
|
|
21
|
+
_this.polygonEvents = ['mouseover', 'mouseout'];
|
|
22
|
+
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
23
|
+
_this.dragged = false;
|
|
24
|
+
|
|
25
|
+
_this.destroyMap = function () {
|
|
26
|
+
console.log("".concat(_this.type, " map destroy feature is not supported"));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
console.log("".concat(_this.type, " controller loadded"));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
GoogleMintMapController.prototype.createPolyline = function (polyline) {
|
|
34
|
+
var _this = this;
|
|
35
|
+
|
|
36
|
+
var _a = polyline.options,
|
|
37
|
+
position = _a.position,
|
|
38
|
+
_b = _a.lineColor,
|
|
39
|
+
lineColor = _b === void 0 ? 'blue' : _b,
|
|
40
|
+
_c = _a.lineSize,
|
|
41
|
+
lineSize = _c === void 0 ? 1 : _c,
|
|
42
|
+
_d = _a.lineOpacity,
|
|
43
|
+
lineOpacity = _d === void 0 ? 1 : _d,
|
|
44
|
+
_e = _a.visible,
|
|
45
|
+
visible = _e === void 0 ? true : _e,
|
|
46
|
+
_f = _a.editable,
|
|
47
|
+
editable = _f === void 0 ? false : _f,
|
|
48
|
+
event = _a.event;
|
|
49
|
+
|
|
50
|
+
if (this.map && Array.isArray(position)) {
|
|
51
|
+
var path = position.map(function (elem) {
|
|
52
|
+
return Array.isArray(elem) ? new MintMap.Position(elem[1], elem[0]) : elem;
|
|
53
|
+
});
|
|
54
|
+
var pol_1 = new google.maps.Polyline({
|
|
55
|
+
map: this.map,
|
|
56
|
+
path: path,
|
|
57
|
+
strokeColor: lineColor,
|
|
58
|
+
strokeWeight: lineSize,
|
|
59
|
+
strokeOpacity: lineOpacity,
|
|
60
|
+
clickable: true,
|
|
61
|
+
visible: visible,
|
|
62
|
+
editable: editable
|
|
63
|
+
});
|
|
64
|
+
polyline.native = pol_1;
|
|
65
|
+
event && event.forEach(function (handler, key) {
|
|
66
|
+
if (_this.polylineEvents.includes(key)) {
|
|
67
|
+
pol_1.addListener(key, handler);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
GoogleMintMapController.prototype.updatePolyline = function (polyline, options) {
|
|
74
|
+
if (polyline && polyline.native && polyline.native instanceof google.maps.Polyline) {
|
|
75
|
+
var polylineOption = this.getValidOptions(options);
|
|
76
|
+
|
|
77
|
+
if (this.map && Array.isArray(options.position)) {
|
|
78
|
+
var path = options.position.map(function (elem) {
|
|
79
|
+
return Array.isArray(elem) ? new MintMap.Position(elem[1], elem[0]) : elem;
|
|
80
|
+
});
|
|
81
|
+
polylineOption.path = path;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
polyline.native.setOptions(polylineOption);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
GoogleMintMapController.prototype.createPolygon = function (polygon) {
|
|
89
|
+
var _this = this;
|
|
90
|
+
|
|
91
|
+
var _a = polygon.options,
|
|
92
|
+
position = _a.position,
|
|
93
|
+
innerPositions = _a.innerPositions,
|
|
94
|
+
_b = _a.lineColor,
|
|
95
|
+
lineColor = _b === void 0 ? 'green' : _b,
|
|
96
|
+
_c = _a.lineSize,
|
|
97
|
+
lineSize = _c === void 0 ? 1 : _c,
|
|
98
|
+
_d = _a.lineOpacity,
|
|
99
|
+
lineOpacity = _d === void 0 ? 1 : _d,
|
|
100
|
+
_e = _a.fillColor,
|
|
101
|
+
fillColor = _e === void 0 ? 'lightgreen' : _e,
|
|
102
|
+
_f = _a.fillOpacity,
|
|
103
|
+
fillOpacity = _f === void 0 ? 0.5 : _f,
|
|
104
|
+
_g = _a.visible,
|
|
105
|
+
visible = _g === void 0 ? true : _g,
|
|
106
|
+
_h = _a.editable,
|
|
107
|
+
editable = _h === void 0 ? false : _h,
|
|
108
|
+
event = _a.event;
|
|
109
|
+
|
|
110
|
+
if (this.map && Array.isArray(position)) {
|
|
111
|
+
var outLine = position.map(function (elem) {
|
|
112
|
+
return Array.isArray(elem) ? new MintMap.Position(elem[1], elem[0]) : elem;
|
|
113
|
+
});
|
|
114
|
+
var paths = innerPositions ? tslib.__spreadArray([outLine], innerPositions, true) : [outLine];
|
|
115
|
+
var pol_2 = new google.maps.Polygon({
|
|
116
|
+
map: this.map,
|
|
117
|
+
paths: paths,
|
|
118
|
+
strokeColor: lineColor,
|
|
119
|
+
strokeWeight: lineSize,
|
|
120
|
+
strokeOpacity: lineOpacity,
|
|
121
|
+
fillColor: fillColor,
|
|
122
|
+
fillOpacity: fillOpacity,
|
|
123
|
+
clickable: true,
|
|
124
|
+
visible: visible,
|
|
125
|
+
editable: editable
|
|
126
|
+
});
|
|
127
|
+
polygon.native = pol_2;
|
|
128
|
+
event && event.forEach(function (handler, key) {
|
|
129
|
+
if (_this.polygonEvents.includes(key)) {
|
|
130
|
+
pol_2.addListener(key, handler);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
GoogleMintMapController.prototype.updatePolygon = function (polygon, options) {
|
|
137
|
+
if (polygon && polygon.native && polygon.native instanceof google.maps.Polygon) {
|
|
138
|
+
var polygonOption = this.getValidOptions(options);
|
|
139
|
+
polygon.native.setOptions(polygonOption);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
GoogleMintMapController.prototype.getValidOptions = function (options) {
|
|
144
|
+
var target = {};
|
|
145
|
+
|
|
146
|
+
for (var _i = 0, _a = Object.getOwnPropertyNames(options); _i < _a.length; _i++) {
|
|
147
|
+
var name_1 = _a[_i];
|
|
148
|
+
|
|
149
|
+
if (options[name_1] !== undefined) {
|
|
150
|
+
target[name_1] = options[name_1];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return target;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
GoogleMintMapController.prototype.createMarker = function (marker) {
|
|
158
|
+
var _this = this;
|
|
159
|
+
|
|
160
|
+
var _a;
|
|
161
|
+
|
|
162
|
+
if (this.map) {
|
|
163
|
+
var googleMarker_1;
|
|
164
|
+
|
|
165
|
+
if (marker.element) {
|
|
166
|
+
var options = {
|
|
167
|
+
map: this.map,
|
|
168
|
+
position: marker.options.position
|
|
169
|
+
};
|
|
170
|
+
options.content = marker.element;
|
|
171
|
+
googleMarker_1 = new google.maps.marker.AdvancedMarkerView(options);
|
|
172
|
+
} else {
|
|
173
|
+
var options = {
|
|
174
|
+
map: this.map,
|
|
175
|
+
position: marker.options.position,
|
|
176
|
+
visible: marker.options.visible === undefined || marker.options.visible,
|
|
177
|
+
anchorPoint: marker.options.anchor
|
|
178
|
+
};
|
|
179
|
+
googleMarker_1 = new google.maps.Marker(options);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
marker.native = googleMarker_1;
|
|
183
|
+
((_a = marker.options) === null || _a === void 0 ? void 0 : _a.event) && marker.options.event.forEach(function (handler, key) {
|
|
184
|
+
if (_this.markerEvents.includes(key)) {
|
|
185
|
+
googleMarker_1.addListener(key, handler);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
GoogleMintMapController.prototype.updateMarker = function (marker, options) {
|
|
192
|
+
var _a, _b;
|
|
193
|
+
|
|
194
|
+
if (marker && marker.native) {
|
|
195
|
+
if (marker.native instanceof google.maps.Marker) {
|
|
196
|
+
var map = marker.native.getMap();
|
|
197
|
+
|
|
198
|
+
if (map) {
|
|
199
|
+
marker.native.setOptions({
|
|
200
|
+
map: map,
|
|
201
|
+
position: options.position instanceof MintMap.Position ? options.position : marker.native.getPosition(),
|
|
202
|
+
visible: options.visible === undefined || options.visible
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
} else if (marker.native instanceof google.maps.marker.AdvancedMarkerView) {
|
|
206
|
+
if (options.visible !== undefined && marker.native.element) {
|
|
207
|
+
marker.native.element.style.visibility = options.visible ? 'visible' : 'hidden';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (options.position instanceof MintMap.Position && (((_a = marker.native.position) === null || _a === void 0 ? void 0 : _a.lat) != options.position.lat || ((_b = marker.native.position) === null || _b === void 0 ? void 0 : _b.lng) != options.position.lng)) {
|
|
211
|
+
marker.native.position = options.position;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
GoogleMintMapController.prototype.getMaxZIndex = function (increment, parent) {
|
|
218
|
+
if (increment === void 0) {
|
|
219
|
+
increment = 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (this.map) {
|
|
223
|
+
var targetPane = parent;
|
|
224
|
+
var max = 0;
|
|
225
|
+
|
|
226
|
+
for (var i = 0; i < targetPane.childElementCount; i++) {
|
|
227
|
+
var elem = targetPane.children[i];
|
|
228
|
+
|
|
229
|
+
if (elem instanceof HTMLElement) {
|
|
230
|
+
var index = Number(elem.style.zIndex);
|
|
231
|
+
|
|
232
|
+
if (!isNaN(index) && index > max) {
|
|
233
|
+
max = index;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
this.markerMaxZIndex = max + increment;
|
|
239
|
+
return this.markerMaxZIndex;
|
|
240
|
+
} else {
|
|
241
|
+
return this.markerMaxZIndex || 1;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
GoogleMintMapController.prototype.markerToTheTop = function (marker) {
|
|
246
|
+
if (this.map && marker.element && marker.element instanceof HTMLElement) {
|
|
247
|
+
var parent_1 = marker.element.parentElement;
|
|
248
|
+
|
|
249
|
+
if (parent_1) {
|
|
250
|
+
parent_1.style.zIndex = String(this.getMaxZIndex(1, parent_1));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
GoogleMintMapController.prototype.clearDrawable = function (drawable) {
|
|
256
|
+
if (drawable && drawable.native) {
|
|
257
|
+
if (drawable.native instanceof google.maps.Marker || drawable.native instanceof google.maps.Polygon || drawable.native instanceof google.maps.Polyline) {
|
|
258
|
+
drawable.native.setMap(null);
|
|
259
|
+
return true;
|
|
260
|
+
} else if (drawable.native instanceof google.maps.marker.AdvancedMarkerView) {
|
|
261
|
+
drawable.native.map = null;
|
|
262
|
+
return true;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return false;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
GoogleMintMapController.prototype.isMapDragged = function () {
|
|
270
|
+
return this.dragged;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
GoogleMintMapController.prototype.setMapDragged = function (value) {
|
|
274
|
+
this.dragged = false;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
GoogleMintMapController.prototype.loadMapApi = function () {
|
|
278
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
279
|
+
var _this = this;
|
|
280
|
+
|
|
281
|
+
return tslib.__generator(this, function (_a) {
|
|
282
|
+
return [2, new Promise(function (resolve) {
|
|
283
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
284
|
+
var callbackName, loaded, params, ok;
|
|
285
|
+
return tslib.__generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
287
|
+
case 0:
|
|
288
|
+
callbackName = "load".concat(new Date().getTime());
|
|
289
|
+
loaded = false;
|
|
290
|
+
|
|
291
|
+
window[callbackName] = function () {
|
|
292
|
+
console.log('google api loaded');
|
|
293
|
+
loaded = true;
|
|
294
|
+
delete window[callbackName];
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
params = {
|
|
298
|
+
key: this.mapProps.mapKey,
|
|
299
|
+
libraries: this.scriptModules.join(','),
|
|
300
|
+
v: 'beta',
|
|
301
|
+
callback: callbackName
|
|
302
|
+
};
|
|
303
|
+
return [4, this.loadScript(this.buildUrl(this.scriptUrl, params), 'googlescript')];
|
|
304
|
+
|
|
305
|
+
case 1:
|
|
306
|
+
_a.sent();
|
|
307
|
+
|
|
308
|
+
return [4, waiting.waiting(function () {
|
|
309
|
+
return loaded;
|
|
310
|
+
})];
|
|
311
|
+
|
|
312
|
+
case 2:
|
|
313
|
+
ok = _a.sent();
|
|
314
|
+
|
|
315
|
+
if (!ok) {
|
|
316
|
+
throw new Error('google script api load failed!!');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
this.mapApiLoaded = true;
|
|
320
|
+
resolve(true);
|
|
321
|
+
console.log("".concat(this.type, " map script api loaded"));
|
|
322
|
+
return [2];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
})];
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
GoogleMintMapController.prototype.initializingMap = function (divElement) {
|
|
332
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
333
|
+
var _this = this;
|
|
334
|
+
|
|
335
|
+
return tslib.__generator(this, function (_a) {
|
|
336
|
+
return [2, new Promise(function (resolve) {
|
|
337
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
338
|
+
var map;
|
|
339
|
+
|
|
340
|
+
var _this = this;
|
|
341
|
+
|
|
342
|
+
var _a, _b;
|
|
343
|
+
|
|
344
|
+
return tslib.__generator(this, function (_c) {
|
|
345
|
+
switch (_c.label) {
|
|
346
|
+
case 0:
|
|
347
|
+
if (this.mapInitialized && this.map) {
|
|
348
|
+
if (this.map.getDiv() === divElement) {
|
|
349
|
+
resolve(this.map);
|
|
350
|
+
return [2];
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (!!this.mapApiLoaded) return [3, 2];
|
|
355
|
+
return [4, this.loadMapApi()];
|
|
356
|
+
|
|
357
|
+
case 1:
|
|
358
|
+
_c.sent();
|
|
359
|
+
|
|
360
|
+
_c.label = 2;
|
|
361
|
+
|
|
362
|
+
case 2:
|
|
363
|
+
map = new google.maps.Map(divElement, {
|
|
364
|
+
mapId: this.mapProps.mapId,
|
|
365
|
+
center: (_a = this.mapProps.base) === null || _a === void 0 ? void 0 : _a.center,
|
|
366
|
+
maxZoom: 21,
|
|
367
|
+
minZoom: 1,
|
|
368
|
+
zoom: (_b = this.mapProps.base) === null || _b === void 0 ? void 0 : _b.zoomLevel
|
|
369
|
+
});
|
|
370
|
+
map.addListener('dragend', function () {
|
|
371
|
+
console.log('map dragend');
|
|
372
|
+
_this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
|
|
373
|
+
});
|
|
374
|
+
map.addListener('zoom_changed', function () {
|
|
375
|
+
console.log('zoom_changed');
|
|
376
|
+
_this.map && _this.mapProps.onZoomChanged && _this.mapProps.onZoomChanged(_this.map.getZoom());
|
|
377
|
+
_this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
|
|
378
|
+
});
|
|
379
|
+
map.addListener('click', function (e) {
|
|
380
|
+
console.log('map click', e);
|
|
381
|
+
var pos = new MintMap.Position(e.latLng.lat(), e.latLng.lng());
|
|
382
|
+
pos.offset = new MintMap.Offset(e.pixel.x, e.pixel.y);
|
|
383
|
+
_this.mapProps.onClick && _this.mapProps.onClick(pos);
|
|
384
|
+
});
|
|
385
|
+
this.map = map;
|
|
386
|
+
this.mapInitialized = true;
|
|
387
|
+
console.log("".concat(this.type, " map script initialized"), divElement);
|
|
388
|
+
resolve(map);
|
|
389
|
+
return [2];
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
})];
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
GoogleMintMapController.prototype.fromGoogleBounds = function (bounds) {
|
|
399
|
+
return new MintMap.Bounds(new MintMap.Position(bounds.getSouthWest().lat(), bounds.getSouthWest().lng()), new MintMap.Position(bounds.getNorthEast().lat(), bounds.getNorthEast().lng()));
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
GoogleMintMapController.prototype.getCurrBounds = function () {
|
|
403
|
+
if (!this.map) {
|
|
404
|
+
throw new Error('Map is not initialized!!');
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
var bounds = this.map.getBounds();
|
|
408
|
+
|
|
409
|
+
if (bounds) {
|
|
410
|
+
return this.fromGoogleBounds(bounds);
|
|
411
|
+
} else {
|
|
412
|
+
throw new Error('bounds is not found!!!');
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
GoogleMintMapController.prototype.panningTo = function (targetCenter) {
|
|
417
|
+
var _a;
|
|
418
|
+
|
|
419
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.panTo(targetCenter);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
GoogleMintMapController.prototype.getZoomLevel = function () {
|
|
423
|
+
var _a;
|
|
424
|
+
|
|
425
|
+
return ((_a = this.map) === null || _a === void 0 ? void 0 : _a.getZoom()) || 13;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
return GoogleMintMapController;
|
|
429
|
+
}(MintMapController.MintMapController);
|
|
430
|
+
|
|
431
|
+
exports.GoogleMintMapController = GoogleMintMapController;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="navermaps" />
|
|
2
|
-
import MintMapController from "../core/MintMapController";
|
|
2
|
+
import { MintMapController } from "../core/MintMapController";
|
|
3
3
|
import { Bounds, Drawable, MapType, MapVendorType, Marker, MarkerOptions, MintMapProps, Polygon, PolygonOptions, Polyline, PolylineOptions, Position } from "../MintMap";
|
|
4
|
-
export
|
|
4
|
+
export declare class NaverMintMapController extends MintMapController {
|
|
5
5
|
type: MapType;
|
|
6
6
|
map: naver.maps.Map | null;
|
|
7
7
|
scriptUrl: string;
|