@mint-ui/map 0.3.2-beta → 0.3.3-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.
@@ -387,6 +387,7 @@ var GoogleMintMapController = function (_super) {
387
387
  gestureHandling: 'greedy',
388
388
  clickableIcons: false
389
389
  });
390
+ this.map = map;
390
391
  map.addListener('idle', function () {
391
392
  _this.checkBoundsChangeThrottleTime() && _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
392
393
  });
@@ -407,7 +408,6 @@ var GoogleMintMapController = function (_super) {
407
408
 
408
409
  _this.mapProps.onMouseMove(pos);
409
410
  });
410
- this.map = map;
411
411
  this.mapInitialized = true;
412
412
  console.log("".concat(this.type, " map script initialized"), divElement);
413
413
  resolve(map);
@@ -415,6 +415,7 @@ var NaverMintMapController = function (_super) {
415
415
  options.minZoom = minZoom;
416
416
  options.maxZoom = maxZoom;
417
417
  map = new naver.maps.Map(divElement, options);
418
+ this.map = map;
418
419
  map.addListener('dragstart', function (e) {
419
420
  _this.dragStartPoint[0] = e.domEvent.clientX;
420
421
  _this.dragStartPoint[1] = e.domEvent.clientY;
@@ -446,11 +447,11 @@ var NaverMintMapController = function (_super) {
446
447
 
447
448
  _this.mapProps.onMouseMove(pos);
448
449
  });
449
- this.map = map;
450
450
  this.mapInitialized = true;
451
451
  this.initMarkerPool();
452
452
  console.log("".concat(this.type, " map script initialized"), divElement);
453
453
  resolve(map);
454
+ map.trigger('idle');
454
455
  return [2];
455
456
  }
456
457
  });
package/dist/index.es.js CHANGED
@@ -812,6 +812,7 @@ var NaverMintMapController = function (_super) {
812
812
  options.minZoom = minZoom;
813
813
  options.maxZoom = maxZoom;
814
814
  map = new naver.maps.Map(divElement, options);
815
+ this.map = map;
815
816
  map.addListener('dragstart', function (e) {
816
817
  _this.dragStartPoint[0] = e.domEvent.clientX;
817
818
  _this.dragStartPoint[1] = e.domEvent.clientY;
@@ -843,11 +844,11 @@ var NaverMintMapController = function (_super) {
843
844
 
844
845
  _this.mapProps.onMouseMove(pos);
845
846
  });
846
- this.map = map;
847
847
  this.mapInitialized = true;
848
848
  this.initMarkerPool();
849
849
  console.log("".concat(this.type, " map script initialized"), divElement);
850
850
  resolve(map);
851
+ map.trigger('idle');
851
852
  return [2];
852
853
  }
853
854
  });
@@ -1292,6 +1293,7 @@ var GoogleMintMapController = function (_super) {
1292
1293
  gestureHandling: 'greedy',
1293
1294
  clickableIcons: false
1294
1295
  });
1296
+ this.map = map;
1295
1297
  map.addListener('idle', function () {
1296
1298
  _this.checkBoundsChangeThrottleTime() && _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1297
1299
  });
@@ -1312,7 +1314,6 @@ var GoogleMintMapController = function (_super) {
1312
1314
 
1313
1315
  _this.mapProps.onMouseMove(pos);
1314
1316
  });
1315
- this.map = map;
1316
1317
  this.mapInitialized = true;
1317
1318
  console.log("".concat(this.type, " map script initialized"), divElement);
1318
1319
  resolve(map);
package/dist/index.umd.js CHANGED
@@ -817,6 +817,7 @@
817
817
  options.minZoom = minZoom;
818
818
  options.maxZoom = maxZoom;
819
819
  map = new naver.maps.Map(divElement, options);
820
+ this.map = map;
820
821
  map.addListener('dragstart', function (e) {
821
822
  _this.dragStartPoint[0] = e.domEvent.clientX;
822
823
  _this.dragStartPoint[1] = e.domEvent.clientY;
@@ -848,11 +849,11 @@
848
849
 
849
850
  _this.mapProps.onMouseMove(pos);
850
851
  });
851
- this.map = map;
852
852
  this.mapInitialized = true;
853
853
  this.initMarkerPool();
854
854
  console.log("".concat(this.type, " map script initialized"), divElement);
855
855
  resolve(map);
856
+ map.trigger('idle');
856
857
  return [2];
857
858
  }
858
859
  });
@@ -1297,6 +1298,7 @@
1297
1298
  gestureHandling: 'greedy',
1298
1299
  clickableIcons: false
1299
1300
  });
1301
+ this.map = map;
1300
1302
  map.addListener('idle', function () {
1301
1303
  _this.checkBoundsChangeThrottleTime() && _this.mapProps.onBoundsChanged && _this.mapProps.onBoundsChanged(_this.getCurrBounds());
1302
1304
  });
@@ -1317,7 +1319,6 @@
1317
1319
 
1318
1320
  _this.mapProps.onMouseMove(pos);
1319
1321
  });
1320
- this.map = map;
1321
1322
  this.mapInitialized = true;
1322
1323
  console.log("".concat(this.type, " map script initialized"), divElement);
1323
1324
  resolve(map);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.3.2-beta",
3
+ "version": "0.3.3-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",