@inlog/inlog-maps 5.0.2 → 5.0.3

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.
@@ -133,6 +133,8 @@ var PolylineEventType;
133
133
  PolylineEventType[PolylineEventType["InsertAt"] = 1] = "InsertAt";
134
134
  PolylineEventType[PolylineEventType["RemoveAt"] = 2] = "RemoveAt";
135
135
  PolylineEventType[PolylineEventType["DragPolyline"] = 3] = "DragPolyline";
136
+ PolylineEventType[PolylineEventType["MouseOver"] = 4] = "MouseOver";
137
+ PolylineEventType[PolylineEventType["MouseOut"] = 5] = "MouseOut";
136
138
  })(PolylineEventType = exports.PolylineEventType || (exports.PolylineEventType = {}));
137
139
 
138
140
 
@@ -4543,6 +4545,12 @@ var GooglePolylines = /** @class */ (function () {
4543
4545
  case event_type_1.PolylineEventType.DragPolyline:
4544
4546
  _this.addPolylineEventDragPolyline(polyline, eventFunction);
4545
4547
  break;
4548
+ case event_type_1.PolylineEventType.MouseOver:
4549
+ _this.addPolylineEventMouseOver(polyline, eventFunction);
4550
+ break;
4551
+ case event_type_1.PolylineEventType.MouseOut:
4552
+ _this.addPolylineEventMouseOut(polyline, eventFunction);
4553
+ break;
4546
4554
  default:
4547
4555
  break;
4548
4556
  }
@@ -4566,6 +4574,12 @@ var GooglePolylines = /** @class */ (function () {
4566
4574
  _this.google.maps.event.clearListeners(polyline, 'dragstart');
4567
4575
  _this.google.maps.event.clearListeners(polyline, 'dragend');
4568
4576
  break;
4577
+ case event_type_1.PolylineEventType.MouseOver:
4578
+ _this.google.maps.event.clearListeners(polyline, 'mouseover');
4579
+ break;
4580
+ case event_type_1.PolylineEventType.MouseOut:
4581
+ _this.google.maps.event.clearListeners(polyline, 'mouseout');
4582
+ break;
4569
4583
  default:
4570
4584
  break;
4571
4585
  }
@@ -4785,6 +4799,22 @@ var GooglePolylines = /** @class */ (function () {
4785
4799
  };
4786
4800
  this.google.maps.event.addListener(polyline.getPath(), 'remove_at', polyline.removeAtListener);
4787
4801
  };
4802
+ GooglePolylines.prototype.addPolylineEventMouseOver = function (polyline, eventFunction) {
4803
+ polyline.overPolylineListener = function () {
4804
+ polyline.dragging = false;
4805
+ var param = polyline.getPath().getArray().map(function (x) { return new event_return_1.default([x.lat(), x.lng()]); });
4806
+ eventFunction(param, polyline.object);
4807
+ };
4808
+ this.google.maps.event.addListener(polyline, 'mouseover', polyline.overPolylineListener);
4809
+ };
4810
+ GooglePolylines.prototype.addPolylineEventMouseOut = function (polyline, eventFunction) {
4811
+ polyline.outPolylineListener = function () {
4812
+ polyline.dragging = false;
4813
+ var param = polyline.getPath().getArray().map(function (x) { return new event_return_1.default([x.lat(), x.lng()]); });
4814
+ eventFunction(param, polyline.object);
4815
+ };
4816
+ this.google.maps.event.addListener(polyline, 'mouseout', polyline.outPolylineListener);
4817
+ };
4788
4818
  GooglePolylines.prototype.addPolylineEventDragPolyline = function (polyline, eventFunction) {
4789
4819
  polyline.dragPolylineListener = function () {
4790
4820
  polyline.dragging = false;
@@ -6396,6 +6426,12 @@ var LeafletPolylines = /** @class */ (function () {
6396
6426
  case event_type_1.PolylineEventType.RemoveAt:
6397
6427
  _this.addPolylineEventRemoveAt(polyline, eventFunction);
6398
6428
  break;
6429
+ case event_type_1.PolylineEventType.MouseOver:
6430
+ _this.addPolylineEventMouseOver(polyline, eventFunction);
6431
+ break;
6432
+ case event_type_1.PolylineEventType.MouseOut:
6433
+ _this.addPolylineEventMouseOut(polyline, eventFunction);
6434
+ break;
6399
6435
  case event_type_1.PolylineEventType.DragPolyline:
6400
6436
  _this.addPolylineEventDragPolyline(polyline, eventFunction);
6401
6437
  break;
@@ -6419,6 +6455,12 @@ var LeafletPolylines = /** @class */ (function () {
6419
6455
  case event_type_1.PolylineEventType.DragPolyline:
6420
6456
  polyline.off('dragend');
6421
6457
  break;
6458
+ case event_type_1.PolylineEventType.MouseOver:
6459
+ polyline.off('mouseover');
6460
+ break;
6461
+ case event_type_1.PolylineEventType.MouseOut:
6462
+ polyline.off('mouseout');
6463
+ break;
6422
6464
  default:
6423
6465
  break;
6424
6466
  }
@@ -6715,6 +6757,18 @@ var LeafletPolylines = /** @class */ (function () {
6715
6757
  eventFunction(param, event.target.object, polyline.getLatLngs().map(function (x) { return new event_return_1.default([x.lat, x.lng]); }));
6716
6758
  });
6717
6759
  };
6760
+ LeafletPolylines.prototype.addPolylineEventMouseOver = function (polyline, eventFunction) {
6761
+ polyline.on('mouseover', function (event) {
6762
+ var param = event.target.getLatLngs().map(function (x) { return new event_return_1.default([x.lat, x.lng]); });
6763
+ eventFunction(param, event.target.object);
6764
+ });
6765
+ };
6766
+ LeafletPolylines.prototype.addPolylineEventMouseOut = function (polyline, eventFunction) {
6767
+ polyline.on('mouseout', function (event) {
6768
+ var param = event.target.getLatLngs().map(function (x) { return new event_return_1.default([x.lat, x.lng]); });
6769
+ eventFunction(param, event.target.object);
6770
+ });
6771
+ };
6718
6772
  LeafletPolylines.prototype.addPolylineEventDragPolyline = function (polyline, eventFunction) {
6719
6773
  polyline.on('dragend', function (event) {
6720
6774
  var param = event.target.getLatLngs().map(function (x) { return new event_return_1.default([x.lat, x.lng]); });