@inlog/inlog-maps 6.4.4 → 6.5.1

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 (61) hide show
  1. package/DOCUMENTATION.md +164 -1
  2. package/README.md +3 -2
  3. package/_bundles/inlog-maps.js +1 -1
  4. package/_bundles/inlog-maps.js.map +1 -1
  5. package/_bundles/inlog-maps.min.js +1 -1
  6. package/_bundles/inlog-maps.min.js.map +1 -1
  7. package/lib/index.d.ts +2 -0
  8. package/lib/index.js +2 -0
  9. package/lib/index.js.map +1 -1
  10. package/lib/map.d.ts +52 -5
  11. package/lib/map.js +198 -63
  12. package/lib/map.js.map +1 -1
  13. package/lib/models/apis/google/google-heatmap.d.ts +13 -0
  14. package/lib/models/apis/google/google-heatmap.js +128 -0
  15. package/lib/models/apis/google/google-heatmap.js.map +1 -0
  16. package/lib/models/apis/googleMaps.d.ts +7 -0
  17. package/lib/models/apis/googleMaps.js +24 -0
  18. package/lib/models/apis/googleMaps.js.map +1 -1
  19. package/lib/models/apis/leaflet/leaflet-heatmap.d.ts +12 -0
  20. package/lib/models/apis/leaflet/leaflet-heatmap.js +110 -0
  21. package/lib/models/apis/leaflet/leaflet-heatmap.js.map +1 -0
  22. package/lib/models/apis/leaflet/leaflet-polylines.js +4 -4
  23. package/lib/models/apis/leaflet/leaflet-polylines.js.map +1 -1
  24. package/lib/models/apis/leaflet.d.ts +7 -0
  25. package/lib/models/apis/leaflet.js +24 -0
  26. package/lib/models/apis/leaflet.js.map +1 -1
  27. package/lib/models/apis/mapFunctions.d.ts +6 -0
  28. package/lib/models/features/heatmap/heatmap-options.d.ts +21 -0
  29. package/lib/models/features/heatmap/heatmap-options.js +21 -0
  30. package/lib/models/features/heatmap/heatmap-options.js.map +1 -0
  31. package/lib/models/features/polygons/polygon-alter-options.d.ts +1 -1
  32. package/lib/models/features/polygons/polygon-alter-options.js +1 -1
  33. package/lib/models/features/polygons/polygon-alter-options.js.map +1 -1
  34. package/lib-esm/index.d.ts +2 -0
  35. package/lib-esm/index.js +2 -0
  36. package/lib-esm/index.js.map +1 -1
  37. package/lib-esm/map.d.ts +52 -5
  38. package/lib-esm/map.js +198 -63
  39. package/lib-esm/map.js.map +1 -1
  40. package/lib-esm/models/apis/google/google-heatmap.d.ts +13 -0
  41. package/lib-esm/models/apis/google/google-heatmap.js +128 -0
  42. package/lib-esm/models/apis/google/google-heatmap.js.map +1 -0
  43. package/lib-esm/models/apis/googleMaps.d.ts +7 -0
  44. package/lib-esm/models/apis/googleMaps.js +24 -0
  45. package/lib-esm/models/apis/googleMaps.js.map +1 -1
  46. package/lib-esm/models/apis/leaflet/leaflet-heatmap.d.ts +12 -0
  47. package/lib-esm/models/apis/leaflet/leaflet-heatmap.js +110 -0
  48. package/lib-esm/models/apis/leaflet/leaflet-heatmap.js.map +1 -0
  49. package/lib-esm/models/apis/leaflet/leaflet-polylines.js +4 -4
  50. package/lib-esm/models/apis/leaflet/leaflet-polylines.js.map +1 -1
  51. package/lib-esm/models/apis/leaflet.d.ts +7 -0
  52. package/lib-esm/models/apis/leaflet.js +24 -0
  53. package/lib-esm/models/apis/leaflet.js.map +1 -1
  54. package/lib-esm/models/apis/mapFunctions.d.ts +6 -0
  55. package/lib-esm/models/features/heatmap/heatmap-options.d.ts +21 -0
  56. package/lib-esm/models/features/heatmap/heatmap-options.js +21 -0
  57. package/lib-esm/models/features/heatmap/heatmap-options.js.map +1 -0
  58. package/lib-esm/models/features/polygons/polygon-alter-options.d.ts +1 -1
  59. package/lib-esm/models/features/polygons/polygon-alter-options.js +1 -1
  60. package/lib-esm/models/features/polygons/polygon-alter-options.js.map +1 -1
  61. package/package.json +2 -1
package/DOCUMENTATION.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@inlog/inlog-maps](https://github.com/weareinlog/inlog-maps#readme) *6.4.4*
1
+ # [@inlog/inlog-maps](https://github.com/weareinlog/inlog-maps#readme) *6.5.1*
2
2
 
3
3
  > A library for using generic layer maps
4
4
 
@@ -1633,6 +1633,169 @@ Returns the image as a base64 string or null
1633
1633
 
1634
1634
 
1635
1635
 
1636
+ #### Map.drawHeatMap(type, options)
1637
+
1638
+ Use this function to draw heatmaps in the currentMap
1639
+
1640
+
1641
+
1642
+
1643
+ ##### Parameters
1644
+
1645
+ | Name | Type | Description | |
1646
+ | ---- | ---- | ----------- | -------- |
1647
+ | type | `string` | |   |
1648
+ | options | `HeatMapOptions` | |   |
1649
+
1650
+
1651
+
1652
+
1653
+ ##### Returns
1654
+
1655
+
1656
+ - `Void`
1657
+
1658
+
1659
+
1660
+ #### Map.toggleHeatMaps(show, type, condition)
1661
+
1662
+ Use this function to show/hide heatmaps from a specific type
1663
+
1664
+
1665
+
1666
+
1667
+ ##### Parameters
1668
+
1669
+ | Name | Type | Description | |
1670
+ | ---- | ---- | ----------- | -------- |
1671
+ | show | `boolean` | |   |
1672
+ | type | `string` | |   |
1673
+ | condition | `any` | toggle heatmaps with the condition [nullable] |   |
1674
+
1675
+
1676
+
1677
+
1678
+ ##### Returns
1679
+
1680
+
1681
+ - `Void`
1682
+
1683
+
1684
+
1685
+ #### Map.updateHeatMapData(type, data, condition)
1686
+
1687
+ Update heatmap data for a specific type
1688
+
1689
+
1690
+
1691
+
1692
+ ##### Parameters
1693
+
1694
+ | Name | Type | Description | |
1695
+ | ---- | ---- | ----------- | -------- |
1696
+ | type | `string` | |   |
1697
+ | data | `Array.<Array.<number>>` | | &nbsp; |
1698
+ | condition | `any` | update heatmaps with the condition [nullable] | &nbsp; |
1699
+
1700
+
1701
+
1702
+
1703
+ ##### Returns
1704
+
1705
+
1706
+ - `Void`
1707
+
1708
+
1709
+
1710
+ #### Map.setHeatMapOptions(type, options, condition)
1711
+
1712
+ Set heatmap options for a specific type
1713
+
1714
+
1715
+
1716
+
1717
+ ##### Parameters
1718
+
1719
+ | Name | Type | Description | |
1720
+ | ---- | ---- | ----------- | -------- |
1721
+ | type | `string` | | &nbsp; |
1722
+ | options | `Partial.<HeatMapOptions>` | | &nbsp; |
1723
+ | condition | `any` | update heatmaps with the condition [nullable] | &nbsp; |
1724
+
1725
+
1726
+
1727
+
1728
+ ##### Returns
1729
+
1730
+
1731
+ - `Void`
1732
+
1733
+
1734
+
1735
+ #### Map.removeHeatMaps(type, condition)
1736
+
1737
+ Remove heatmaps from the map and from internal list
1738
+
1739
+
1740
+
1741
+
1742
+ ##### Parameters
1743
+
1744
+ | Name | Type | Description | |
1745
+ | ---- | ---- | ----------- | -------- |
1746
+ | type | `string` | | &nbsp; |
1747
+ | condition | `any` | remove heatmaps with the condition [nullable] | &nbsp; |
1748
+
1749
+
1750
+
1751
+
1752
+ ##### Returns
1753
+
1754
+
1755
+ - `Void`
1756
+
1757
+
1758
+
1759
+ #### Map.removeAllHeatMaps()
1760
+
1761
+ Remove all heatmaps from the map and from the internal list
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+ ##### Returns
1769
+
1770
+
1771
+ - `Void`
1772
+
1773
+
1774
+
1775
+ #### Map.isHeatMapOnMap(type, condition)
1776
+
1777
+ Check if heatmap is visible on map
1778
+
1779
+
1780
+
1781
+
1782
+ ##### Parameters
1783
+
1784
+ | Name | Type | Description | |
1785
+ | ---- | ---- | ----------- | -------- |
1786
+ | type | `string` | | &nbsp; |
1787
+ | condition | `any` | check heatmaps with the condition [nullable] | &nbsp; |
1788
+
1789
+
1790
+
1791
+
1792
+ ##### Returns
1793
+
1794
+
1795
+ - `boolean`
1796
+
1797
+
1798
+
1636
1799
  #### Map.removeRuler()
1637
1800
 
1638
1801
  Remove ruler in the map
package/README.md CHANGED
@@ -10,7 +10,7 @@ Install the library
10
10
  #### Google
11
11
  ```javascript
12
12
  const params = {
13
- libraries: ['drawing'],
13
+ libraries: ['drawing', 'visualization'],
14
14
  apiKey: '<your-api-key-here>',
15
15
  gestureHandling: false,
16
16
  showTraffic: false,
@@ -28,7 +28,8 @@ const params = {
28
28
  scriptsDependencies: [
29
29
  'path/to/Leaflet.Editable.js',
30
30
  'path/to/Path.Drag.js',
31
- 'path/to/leaflet-gesture-handling.js'
31
+ 'path/to/leaflet-gesture-handling.js',
32
+ 'path/to/leaflet-heat.js'
32
33
  ],
33
34
  cssDependencies: [
34
35
  'path/to/leaflet-gesture-handling.css'