Blame view
src/main/resources/leafletmap/Leaflet.markercluster-1.4.1/dist/leaflet.markercluster-src.js.map
154 KB
9e952e84e add message clust... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 |
{"version":3,"file":"leaflet.markercluster-src.js","sources":["../src/MarkerClusterGroup.js","../src/MarkerCluster.js","../src/MarkerOpacity.js","../src/DistanceGrid.js","../src/MarkerCluster.QuickHull.js","../src/MarkerCluster.Spiderfier.js","../src/MarkerClusterGroup.Refresh.js"],"sourcesContent":["/*\r * L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within\r */\r \r export var MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({\r \r \toptions: {\r \t\tmaxClusterRadius: 80, //A cluster will cover at most this many pixels from its center\r \t\ticonCreateFunction: null,\r \t\tclusterPane: L.Marker.prototype.options.pane,\r \r \t\tspiderfyOnMaxZoom: true,\r \t\tshowCoverageOnHover: true,\r \t\tzoomToBoundsOnClick: true,\r \t\tsingleMarkerMode: false,\r \r \t\tdisableClusteringAtZoom: null,\r \r \t\t// Setting this to false prevents the removal of any clusters outside of the viewpoint, which\r \t\t// is the default behaviour for performance reasons.\r \t\tremoveOutsideVisibleBounds: true,\r \r \t\t// Set to false to disable all animations (zoom and spiderfy).\r \t\t// If false, option animateAddingMarkers below has no effect.\r \t\t// If L.DomUtil.TRANSITION is falsy, this option has no effect.\r \t\tanimate: true,\r \r \t\t//Whether to animate adding markers after adding the MarkerClusterGroup to the map\r \t\t// If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.\r \t\tanimateAddingMarkers: false,\r \r \t\t//Increase to increase the distance away that spiderfied markers appear from the center\r \t\tspiderfyDistanceMultiplier: 1,\r \r \t\t// Make it possible to specify a polyline options on a spider leg\r \t\tspiderLegPolylineOptions: { weight: 1.5, color: '#222', opacity: 0.5 },\r \r \t\t// When bulk adding layers, adds markers in chunks. Means addLayers may not add all the layers in the call, others will be loaded during setTimeouts\r \t\tchunkedLoading: false,\r \t\tchunkInterval: 200, // process markers for a maximum of ~ n milliseconds (then trigger the chunkProgress callback)\r \t\tchunkDelay: 50, // at the end of each interval, give n milliseconds back to system/browser\r \t\tchunkProgress: null, // progress callback: function(processed, total, elapsed) (e.g. for a progress indicator)\r \r \t\t//Options to pass to the L.Polygon constructor\r \t\tpolygonOptions: {}\r \t},\r \r \tinitialize: function (options) {\r \t\tL.Util.setOptions(this, options);\r \t\tif (!this.options.iconCreateFunction) {\r \t\t\tthis.options.iconCreateFunction = this._defaultIconCreateFunction;\r \t\t}\r \r \t\tthis._featureGroup = L.featureGroup();\r \t\tthis._featureGroup.addEventParent(this);\r \r \t\tthis._nonPointGroup = L.featureGroup();\r \t\tthis._nonPointGroup.addEventParent(this);\r \r \t\tthis._inZoomAnimation = 0;\r \t\tthis._needsClustering = [];\r \t\tthis._needsRemoving = []; //Markers removed while we aren't on the map need to be kept track of\r \t\t//The bounds of the currently shown area (from _getExpandedVisibleBounds) Updated on zoom/move\r \t\tthis._currentShownBounds = null;\r \r \t\tthis._queue = [];\r \r \t\tthis._childMarkerEventHandlers = {\r \t\t\t'dragstart': this._childMarkerDragStart,\r \t\t\t'move': this._childMarkerMoved,\r \t\t\t'dragend': this._childMarkerDragEnd,\r \t\t};\r \r \t\t// Hook the appropriate animation methods.\r \t\tvar animate = L.DomUtil.TRANSITION && this.options.animate;\r \t\tL.extend(this, animate ? this._withAnimation : this._noAnimation);\r \t\t// Remember which MarkerCluster class to instantiate (animated or not).\r \t\tthis._markerCluster = animate ? L.MarkerCluster : L.MarkerClusterNonAnimated;\r \t},\r \r \taddLayer: function (layer) {\r \r \t\tif (layer instanceof L.LayerGroup) {\r \t\t\treturn this.addLayers([layer]);\r \t\t}\r \r \t\t//Don't cluster non point data\r \t\tif (!layer.getLatLng) {\r \t\t\tthis._nonPointGroup.addLayer(layer);\r \t\t\tthis.fire('layeradd', { layer: layer });\r \t\t\treturn this;\r \t\t}\r \r \t\tif (!this._map) {\r \t\t\tthis._needsClustering.push(layer);\r \t\t\tthis.fire('layeradd', { layer: layer });\r \t\t\treturn this;\r \t\t}\r \r \t\tif (this.hasLayer(layer)) {\r \t\t\treturn this;\r \t\t}\r \r \r \t\t//If we have already clustered we'll need to add this one to a cluster\r \r \t\tif (this._unspiderfy) {\r \t\t\tthis._unspiderfy();\r \t\t}\r \r \t\tthis._addLayer(layer, this._maxZoom);\r \t\tthis.fire('layeradd', { layer: layer });\r \r \t\t// Refresh bounds and weighted positions.\r \t\tthis._topClusterLevel._recalculateBounds();\r \r \t\tthis._refreshClustersIcons();\r \r \t\t//Work out what is visible\r \t\tvar visibleLayer = layer,\r \t\t currentZoom = this._zoom;\r \t\tif (layer.__parent) {\r \t\t\twhile (visibleLayer.__parent._zoom >= currentZoom) {\r \t\t\t\tvisibleLayer = visibleLayer.__parent;\r \t\t\t}\r \t\t}\r \r \t\tif (this._currentShownBounds.contains(visibleLayer.getLatLng())) {\r \t\t\tif (this.options.animateAddingMarkers) {\r \t\t\t\tthis._animationAddLayer(layer, visibleLayer);\r \t\t\t} else {\r \t\t\t\tthis._animationAddLayerNonAnimated(layer, visibleLayer);\r \t\t\t}\r \t\t}\r \t\treturn this;\r \t},\r \r \tremoveLayer: function (layer) {\r \r \t\tif (layer instanceof L.LayerGroup) {\r \t\t\treturn this.removeLayers([layer]);\r \t\t}\r \r \t\t//Non point layers\r \t\tif (!layer.getLatLng) {\r \t\t\tthis._nonPointGroup.removeLayer(layer);\r \t\t\tthis.fire('layerremove', { layer: layer });\r \t\t\treturn this;\r \t\t}\r \r \t\tif (!this._map) {\r \t\t\tif (!this._arraySplice(this._needsClustering, layer) && this.hasLayer(layer)) {\r \t\t\t\tthis._needsRemoving.push({ layer: layer, latlng: layer._latlng });\r \t\t\t}\r \t\t\tthis.fire('layerremove', { layer: layer });\r \t\t\treturn this;\r \t\t}\r \r \t\tif (!layer.__parent) {\r \t\t\treturn this;\r \t\t}\r \r \t\tif (this._unspiderfy) {\r \t\t\tthis._unspiderfy();\r \t\t\tthis._unspiderfyLayer(layer);\r \t\t}\r \r \t\t//Remove the marker from clusters\r \t\tthis._removeLayer(layer, true);\r \t\tthis.fire('layerremove', { layer: layer });\r \r \t\t// Refresh bounds and weighted positions.\r \t\tthis._topClusterLevel._recalculateBounds();\r \r \t\tthis._refreshClustersIcons();\r \r \t\tlayer.off(this._childMarkerEventHandlers, this);\r \r \t\tif (this._featureGroup.hasLayer(layer)) {\r \t\t\tthis._featureGroup.removeLayer(layer);\r \t\t\tif (layer.clusterShow) {\r \t\t\t\tlayer.clusterShow();\r \t\t\t}\r \t\t}\r \r \t\treturn this;\r \t},\r \r \t//Takes an array of markers and adds them in bulk\r \taddLayers: function (layersArray, skipLayerAddEvent) {\r \t\tif (!L.Util.isArray(layersArray)) {\r \t\t\treturn this.addLayer(layersArray);\r \t\t}\r \r \t\tvar fg = this._featureGroup,\r \t\t npg = this._nonPointGroup,\r \t\t chunked = this.options.chunkedLoading,\r \t\t chunkInterval = this.options.chunkInterval,\r \t\t chunkProgress = this.options.chunkProgress,\r \t\t l = layersArray.length,\r \t\t offset = 0,\r \t\t originalArray = true,\r \t\t m;\r \r \t\tif (this._map) {\r \t\t\tvar started = (new Date()).getTime();\r \t\t\tvar process = L.bind(function () {\r \t\t\t\tvar start = (new Date()).getTime();\r \t\t\t\tfor (; offset < l; offset++) {\r \t\t\t\t\tif (chunked && offset % 200 === 0) {\r \t\t\t\t\t\t// every couple hundred markers, instrument the time elapsed since processing started:\r \t\t\t\t\t\tvar elapsed = (new Date()).getTime() - start;\r \t\t\t\t\t\tif (elapsed > chunkInterval) {\r \t\t\t\t\t\t\tbreak; // been working too hard, time to take a break :-)\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \r \t\t\t\t\tm = layersArray[offset];\r \r \t\t\t\t\t// Group of layers, append children to layersArray and skip.\r \t\t\t\t\t// Side effects:\r \t\t\t\t\t// - Total increases, so chunkProgress ratio jumps backward.\r \t\t\t\t\t// - Groups are not included in this group, only their non-group child layers (hasLayer).\r \t\t\t\t\t// Changing array length while looping does not affect performance in current browsers:\r \t\t\t\t\t// http://jsperf.com/for-loop-changing-length/6\r \t\t\t\t\tif (m instanceof L.LayerGroup) {\r \t\t\t\t\t\tif (originalArray) {\r \t\t\t\t\t\t\tlayersArray = layersArray.slice();\r \t\t\t\t\t\t\toriginalArray = false;\r \t\t\t\t\t\t}\r \t\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\r \t\t\t\t\t\tl = layersArray.length;\r \t\t\t\t\t\tcontinue;\r \t\t\t\t\t}\r \r \t\t\t\t\t//Not point data, can't be clustered\r \t\t\t\t\tif (!m.getLatLng) {\r \t\t\t\t\t\tnpg.addLayer(m);\r \t\t\t\t\t\tif (!skipLayerAddEvent) {\r \t\t\t\t\t\t\tthis.fire('layeradd', { layer: m });\r \t\t\t\t\t\t}\r \t\t\t\t\t\tcontinue;\r \t\t\t\t\t}\r \r \t\t\t\t\tif (this.hasLayer(m)) {\r \t\t\t\t\t\tcontinue;\r \t\t\t\t\t}\r \r \t\t\t\t\tthis._addLayer(m, this._maxZoom);\r \t\t\t\t\tif (!skipLayerAddEvent) {\r \t\t\t\t\t\tthis.fire('layeradd', { layer: m });\r \t\t\t\t\t}\r \r \t\t\t\t\t//If we just made a cluster of size 2 then we need to remove the other marker from the map (if it is) or we never will\r \t\t\t\t\tif (m.__parent) {\r \t\t\t\t\t\tif (m.__parent.getChildCount() === 2) {\r \t\t\t\t\t\t\tvar markers = m.__parent.getAllChildMarkers(),\r \t\t\t\t\t\t\t otherMarker = markers[0] === m ? markers[1] : markers[0];\r \t\t\t\t\t\t\tfg.removeLayer(otherMarker);\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \t\t\t\t}\r \r \t\t\t\tif (chunkProgress) {\r \t\t\t\t\t// report progress and time elapsed:\r \t\t\t\t\tchunkProgress(offset, l, (new Date()).getTime() - started);\r \t\t\t\t}\r \r \t\t\t\t// Completed processing all markers.\r \t\t\t\tif (offset === l) {\r \r \t\t\t\t\t// Refresh bounds and weighted positions.\r \t\t\t\t\tthis._topClusterLevel._recalculateBounds();\r \r \t\t\t\t\tthis._refreshClustersIcons();\r \r \t\t\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);\r \t\t\t\t} else {\r \t\t\t\t\tsetTimeout(process, this.options.chunkDelay);\r \t\t\t\t}\r \t\t\t}, this);\r \r \t\t\tprocess();\r \t\t} else {\r \t\t\tvar needsClustering = this._needsClustering;\r \r \t\t\tfor (; offset < l; offset++) {\r \t\t\t\tm = layersArray[offset];\r \r \t\t\t\t// Group of layers, append children to layersArray and skip.\r \t\t\t\tif (m instanceof L.LayerGroup) {\r \t\t\t\t\tif (originalArray) {\r \t\t\t\t\t\tlayersArray = layersArray.slice();\r \t\t\t\t\t\toriginalArray = false;\r \t\t\t\t\t}\r \t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\r \t\t\t\t\tl = layersArray.length;\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\t//Not point data, can't be clustered\r \t\t\t\tif (!m.getLatLng) {\r \t\t\t\t\tnpg.addLayer(m);\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tif (this.hasLayer(m)) {\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tneedsClustering.push(m);\r \t\t\t}\r \t\t}\r \t\treturn this;\r \t},\r \r \t//Takes an array of markers and removes them in bulk\r \tremoveLayers: function (layersArray) {\r \t\tvar i, m,\r \t\t l = layersArray.length,\r \t\t fg = this._featureGroup,\r \t\t npg = this._nonPointGroup,\r \t\t originalArray = true;\r \r \t\tif (!this._map) {\r \t\t\tfor (i = 0; i < l; i++) {\r \t\t\t\tm = layersArray[i];\r \r \t\t\t\t// Group of layers, append children to layersArray and skip.\r \t\t\t\tif (m instanceof L.LayerGroup) {\r \t\t\t\t\tif (originalArray) {\r \t\t\t\t\t\tlayersArray = layersArray.slice();\r \t\t\t\t\t\toriginalArray = false;\r \t\t\t\t\t}\r \t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\r \t\t\t\t\tl = layersArray.length;\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tthis._arraySplice(this._needsClustering, m);\r \t\t\t\tnpg.removeLayer(m);\r \t\t\t\tif (this.hasLayer(m)) {\r \t\t\t\t\tthis._needsRemoving.push({ layer: m, latlng: m._latlng });\r \t\t\t\t}\r \t\t\t\tthis.fire('layerremove', { layer: m });\r \t\t\t}\r \t\t\treturn this;\r \t\t}\r \r \t\tif (this._unspiderfy) {\r \t\t\tthis._unspiderfy();\r \r \t\t\t// Work on a copy of the array, so that next loop is not affected.\r \t\t\tvar layersArray2 = layersArray.slice(),\r \t\t\t l2 = l;\r \t\t\tfor (i = 0; i < l2; i++) {\r \t\t\t\tm = layersArray2[i];\r \r \t\t\t\t// Group of layers, append children to layersArray and skip.\r \t\t\t\tif (m instanceof L.LayerGroup) {\r \t\t\t\t\tthis._extractNonGroupLayers(m, layersArray2);\r \t\t\t\t\tl2 = layersArray2.length;\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tthis._unspiderfyLayer(m);\r \t\t\t}\r \t\t}\r \r \t\tfor (i = 0; i < l; i++) {\r \t\t\tm = layersArray[i];\r \r \t\t\t// Group of layers, append children to layersArray and skip.\r \t\t\tif (m instanceof L.LayerGroup) {\r \t\t\t\tif (originalArray) {\r \t\t\t\t\tlayersArray = layersArray.slice();\r \t\t\t\t\toriginalArray = false;\r \t\t\t\t}\r \t\t\t\tthis._extractNonGroupLayers(m, layersArray);\r \t\t\t\tl = layersArray.length;\r \t\t\t\tcontinue;\r \t\t\t}\r \r \t\t\tif (!m.__parent) {\r \t\t\t\tnpg.removeLayer(m);\r \t\t\t\tthis.fire('layerremove', { layer: m });\r \t\t\t\tcontinue;\r \t\t\t}\r \r \t\t\tthis._removeLayer(m, true, true);\r \t\t\tthis.fire('layerremove', { layer: m });\r \r \t\t\tif (fg.hasLayer(m)) {\r \t\t\t\tfg.removeLayer(m);\r \t\t\t\tif (m.clusterShow) {\r \t\t\t\t\tm.clusterShow();\r \t\t\t\t}\r \t\t\t}\r \t\t}\r \r \t\t// Refresh bounds and weighted positions.\r \t\tthis._topClusterLevel._recalculateBounds();\r \r \t\tthis._refreshClustersIcons();\r \r \t\t//Fix up the clusters and markers on the map\r \t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);\r \r \t\treturn this;\r \t},\r \r \t//Removes all layers from the MarkerClusterGroup\r \tclearLayers: function () {\r \t\t//Need our own special implementation as the LayerGroup one doesn't work for us\r \r \t\t//If we aren't on the map (yet), blow away the markers we know of\r \t\tif (!this._map) {\r \t\t\tthis._needsClustering = [];\r \t\t\tthis._needsRemoving = [];\r \t\t\tdelete this._gridClusters;\r \t\t\tdelete this._gridUnclustered;\r \t\t}\r \r \t\tif (this._noanimationUnspiderfy) {\r \t\t\tthis._noanimationUnspiderfy();\r \t\t}\r \r \t\t//Remove all the visible layers\r \t\tthis._featureGroup.clearLayers();\r \t\tthis._nonPointGroup.clearLayers();\r \r \t\tthis.eachLayer(function (marker) {\r \t\t\tmarker.off(this._childMarkerEventHandlers, this);\r \t\t\tdelete marker.__parent;\r \t\t}, this);\r \r \t\tif (this._map) {\r \t\t\t//Reset _topClusterLevel and the DistanceGrids\r \t\t\tthis._generateInitialClusters();\r \t\t}\r \r \t\treturn this;\r \t},\r \r \t//Override FeatureGroup.getBounds as it doesn't work\r \tgetBounds: function () {\r \t\tvar bounds = new L.LatLngBounds();\r \r \t\tif (this._topClusterLevel) {\r \t\t\tbounds.extend(this._topClusterLevel._bounds);\r \t\t}\r \r \t\tfor (var i = this._needsClustering.length - 1; i >= 0; i--) {\r \t\t\tbounds.extend(this._needsClustering[i].getLatLng());\r \t\t}\r \r \t\tbounds.extend(this._nonPointGroup.getBounds());\r \r \t\treturn bounds;\r \t},\r \r \t//Overrides LayerGroup.eachLayer\r \teachLayer: function (method, context) {\r \t\tvar markers = this._needsClustering.slice(),\r \t\t\tneedsRemoving = this._needsRemoving,\r \t\t\tthisNeedsRemoving, i, j;\r \r \t\tif (this._topClusterLevel) {\r \t\t\tthis._topClusterLevel.getAllChildMarkers(markers);\r \t\t}\r \r \t\tfor (i = markers.length - 1; i >= 0; i--) {\r \t\t\tthisNeedsRemoving = true;\r \r \t\t\tfor (j = needsRemoving.length - 1; j >= 0; j--) {\r \t\t\t\tif (needsRemoving[j].layer === markers[i]) {\r \t\t\t\t\tthisNeedsRemoving = false;\r \t\t\t\t\tbreak;\r \t\t\t\t}\r \t\t\t}\r \r \t\t\tif (thisNeedsRemoving) {\r \t\t\t\tmethod.call(context, markers[i]);\r \t\t\t}\r \t\t}\r \r \t\tthis._nonPointGroup.eachLayer(method, context);\r \t},\r \r \t//Overrides LayerGroup.getLayers\r \tgetLayers: function () {\r \t\tvar layers = [];\r \t\tthis.eachLayer(function (l) {\r \t\t\tlayers.push(l);\r \t\t});\r \t\treturn layers;\r \t},\r \r \t//Overrides LayerGroup.getLayer, WARNING: Really bad performance\r \tgetLayer: function (id) {\r \t\tvar result = null;\r \r \t\tid = parseInt(id, 10);\r \r \t\tthis.eachLayer(function (l) {\r \t\t\tif (L.stamp(l) === id) {\r \t\t\t\tresult = l;\r \t\t\t}\r \t\t});\r \r \t\treturn result;\r \t},\r \r \t//Returns true if the given layer is in this MarkerClusterGroup\r \thasLayer: function (layer) {\r \t\tif (!layer) {\r \t\t\treturn false;\r \t\t}\r \r \t\tvar i, anArray = this._needsClustering;\r \r \t\tfor (i = anArray.length - 1; i >= 0; i--) {\r \t\t\tif (anArray[i] === layer) {\r \t\t\t\treturn true;\r \t\t\t}\r \t\t}\r \r \t\tanArray = this._needsRemoving;\r \t\tfor (i = anArray.length - 1; i >= 0; i--) {\r \t\t\tif (anArray[i].layer === layer) {\r \t\t\t\treturn false;\r \t\t\t}\r \t\t}\r \r \t\treturn !!(layer.__parent && layer.__parent._group === this) || this._nonPointGroup.hasLayer(layer);\r \t},\r \r \t//Zoom down to show the given layer (spiderfying if necessary) then calls the callback\r \tzoomToShowLayer: function (layer, callback) {\r \r \t\tif (typeof callback !== 'function') {\r \t\t\tcallback = function () {};\r \t\t}\r \r \t\tvar showMarker = function () {\r \t\t\tif ((layer._icon || layer.__parent._icon) && !this._inZoomAnimation) {\r \t\t\t\tthis._map.off('moveend', showMarker, this);\r \t\t\t\tthis.off('animationend', showMarker, this);\r \r \t\t\t\tif (layer._icon) {\r \t\t\t\t\tcallback();\r \t\t\t\t} else if (layer.__parent._icon) {\r \t\t\t\t\tthis.once('spiderfied', callback, this);\r \t\t\t\t\tlayer.__parent.spiderfy();\r \t\t\t\t}\r \t\t\t}\r \t\t};\r \r \t\tif (layer._icon && this._map.getBounds().contains(layer.getLatLng())) {\r \t\t\t//Layer is visible ond on screen, immediate return\r \t\t\tcallback();\r \t\t} else if (layer.__parent._zoom < Math.round(this._map._zoom)) {\r \t\t\t//Layer should be visible at this zoom level. It must not be on screen so just pan over to it\r \t\t\tthis._map.on('moveend', showMarker, this);\r \t\t\tthis._map.panTo(layer.getLatLng());\r \t\t} else {\r \t\t\tthis._map.on('moveend', showMarker, this);\r \t\t\tthis.on('animationend', showMarker, this);\r \t\t\tlayer.__parent.zoomToBounds();\r \t\t}\r \t},\r \r \t//Overrides FeatureGroup.onAdd\r \tonAdd: function (map) {\r \t\tthis._map = map;\r \t\tvar i, l, layer;\r \r \t\tif (!isFinite(this._map.getMaxZoom())) {\r \t\t\tthrow \"Map has no maxZoom specified\";\r \t\t}\r \r \t\tthis._featureGroup.addTo(map);\r \t\tthis._nonPointGroup.addTo(map);\r \r \t\tif (!this._gridClusters) {\r \t\t\tthis._generateInitialClusters();\r \t\t}\r \r \t\tthis._maxLat = map.options.crs.projection.MAX_LATITUDE;\r \r \t\t//Restore all the positions as they are in the MCG before removing them\r \t\tfor (i = 0, l = this._needsRemoving.length; i < l; i++) {\r \t\t\tlayer = this._needsRemoving[i];\r \t\t\tlayer.newlatlng = layer.layer._latlng;\r \t\t\tlayer.layer._latlng = layer.latlng;\r \t\t}\r \t\t//Remove them, then restore their new positions\r \t\tfor (i = 0, l = this._needsRemoving.length; i < l; i++) {\r \t\t\tlayer = this._needsRemoving[i];\r \t\t\tthis._removeLayer(layer.layer, true);\r \t\t\tlayer.layer._latlng = layer.newlatlng;\r \t\t}\r \t\tthis._needsRemoving = [];\r \r \t\t//Remember the current zoom level and bounds\r \t\tthis._zoom = Math.round(this._map._zoom);\r \t\tthis._currentShownBounds = this._getExpandedVisibleBounds();\r \r \t\tthis._map.on('zoomend', this._zoomEnd, this);\r \t\tthis._map.on('moveend', this._moveEnd, this);\r \r \t\tif (this._spiderfierOnAdd) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely\r \t\t\tthis._spiderfierOnAdd();\r \t\t}\r \r \t\tthis._bindEvents();\r \r \t\t//Actually add our markers to the map:\r \t\tl = this._needsClustering;\r \t\tthis._needsClustering = [];\r \t\tthis.addLayers(l, true);\r \t},\r \r \t//Overrides FeatureGroup.onRemove\r \tonRemove: function (map) {\r \t\tmap.off('zoomend', this._zoomEnd, this);\r \t\tmap.off('moveend', this._moveEnd, this);\r \r \t\tthis._unbindEvents();\r \r \t\t//In case we are in a cluster animation\r \t\tthis._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');\r \r \t\tif (this._spiderfierOnRemove) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely\r \t\t\tthis._spiderfierOnRemove();\r \t\t}\r \r \t\tdelete this._maxLat;\r \r \t\t//Clean up all the layers we added to the map\r \t\tthis._hideCoverage();\r \t\tthis._featureGroup.remove();\r \t\tthis._nonPointGroup.remove();\r \r \t\tthis._featureGroup.clearLayers();\r \r \t\tthis._map = null;\r \t},\r \r \tgetVisibleParent: function (marker) {\r \t\tvar vMarker = marker;\r \t\twhile (vMarker && !vMarker._icon) {\r \t\t\tvMarker = vMarker.__parent;\r \t\t}\r \t\treturn vMarker || null;\r \t},\r \r \t//Remove the given object from the given array\r \t_arraySplice: function (anArray, obj) {\r \t\tfor (var i = anArray.length - 1; i >= 0; i--) {\r \t\t\tif (anArray[i] === obj) {\r \t\t\t\tanArray.splice(i, 1);\r \t\t\t\treturn true;\r \t\t\t}\r \t\t}\r \t},\r \r \t/**\r \t * Removes a marker from all _gridUnclustered zoom levels, starting at the supplied zoom.\r \t * @param marker to be removed from _gridUnclustered.\r \t * @param z integer bottom start zoom level (included)\r \t * @private\r \t */\r \t_removeFromGridUnclustered: function (marker, z) {\r \t\tvar map = this._map,\r \t\t gridUnclustered = this._gridUnclustered,\r \t\t\tminZoom = Math.floor(this._map.getMinZoom());\r \r \t\tfor (; z >= minZoom; z--) {\r \t\t\tif (!gridUnclustered[z].removeObject(marker, map.project(marker.getLatLng(), z))) {\r \t\t\t\tbreak;\r \t\t\t}\r \t\t}\r \t},\r \r \t_childMarkerDragStart: function (e) {\r \t\te.target.__dragStart = e.target._latlng;\r \t},\r \r \t_childMarkerMoved: function (e) {\r \t\tif (!this._ignoreMove && !e.target.__dragStart) {\r \t\t\tvar isPopupOpen = e.target._popup && e.target._popup.isOpen();\r \r \t\t\tthis._moveChild(e.target, e.oldLatLng, e.latlng);\r \r \t\t\tif (isPopupOpen) {\r \t\t\t\te.target.openPopup();\r \t\t\t}\r \t\t}\r \t},\r \r \t_moveChild: function (layer, from, to) {\r \t\tlayer._latlng = from;\r \t\tthis.removeLayer(layer);\r \r \t\tlayer._latlng = to;\r \t\tthis.addLayer(layer);\r \t},\r \r \t_childMarkerDragEnd: function (e) {\r \t\tvar dragStart = e.target.__dragStart;\r \t\tdelete e.target.__dragStart;\r \t\tif (dragStart) {\r \t\t\tthis._moveChild(e.target, dragStart, e.target._latlng);\r \t\t}\t\t\r \t},\r \r \r \t//Internal function for removing a marker from everything.\r \t//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)\r \t_removeLayer: function (marker, removeFromDistanceGrid, dontUpdateMap) {\r \t\tvar gridClusters = this._gridClusters,\r \t\t\tgridUnclustered = this._gridUnclustered,\r \t\t\tfg = this._featureGroup,\r \t\t\tmap = this._map,\r \t\t\tminZoom = Math.floor(this._map.getMinZoom());\r \r \t\t//Remove the marker from distance clusters it might be in\r \t\tif (removeFromDistanceGrid) {\r \t\t\tthis._removeFromGridUnclustered(marker, this._maxZoom);\r \t\t}\r \r \t\t//Work our way up the clusters removing them as we go if required\r \t\tvar cluster = marker.__parent,\r \t\t\tmarkers = cluster._markers,\r \t\t\totherMarker;\r \r \t\t//Remove the marker from the immediate parents marker list\r \t\tthis._arraySplice(markers, marker);\r \r \t\twhile (cluster) {\r \t\t\tcluster._childCount--;\r \t\t\tcluster._boundsNeedUpdate = true;\r \r \t\t\tif (cluster._zoom < minZoom) {\r \t\t\t\t//Top level, do nothing\r \t\t\t\tbreak;\r \t\t\t} else if (removeFromDistanceGrid && cluster._childCount <= 1) { //Cluster no longer required\r \t\t\t\t//We need to push the other marker up to the parent\r \t\t\t\totherMarker = cluster._markers[0] === marker ? cluster._markers[1] : cluster._markers[0];\r \r \t\t\t\t//Update distance grid\r \t\t\t\tgridClusters[cluster._zoom].removeObject(cluster, map.project(cluster._cLatLng, cluster._zoom));\r \t\t\t\tgridUnclustered[cluster._zoom].addObject(otherMarker, map.project(otherMarker.getLatLng(), cluster._zoom));\r \r \t\t\t\t//Move otherMarker up to parent\r \t\t\t\tthis._arraySplice(cluster.__parent._childClusters, cluster);\r \t\t\t\tcluster.__parent._markers.push(otherMarker);\r \t\t\t\totherMarker.__parent = cluster.__parent;\r \r \t\t\t\tif (cluster._icon) {\r \t\t\t\t\t//Cluster is currently on the map, need to put the marker on the map instead\r \t\t\t\t\tfg.removeLayer(cluster);\r \t\t\t\t\tif (!dontUpdateMap) {\r \t\t\t\t\t\tfg.addLayer(otherMarker);\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t} else {\r \t\t\t\tcluster._iconNeedsUpdate = true;\r \t\t\t}\r \r \t\t\tcluster = cluster.__parent;\r \t\t}\r \r \t\tdelete marker.__parent;\r \t},\r \r \t_isOrIsParent: function (el, oel) {\r \t\twhile (oel) {\r \t\t\tif (el === oel) {\r \t\t\t\treturn true;\r \t\t\t}\r \t\t\toel = oel.parentNode;\r \t\t}\r \t\treturn false;\r \t},\r \r \t//Override L.Evented.fire\r \tfire: function (type, data, propagate) {\r \t\tif (data && data.layer instanceof L.MarkerCluster) {\r \t\t\t//Prevent multiple clustermouseover/off events if the icon is made up of stacked divs (Doesn't work in ie <= 8, no relatedTarget)\r \t\t\tif (data.originalEvent && this._isOrIsParent(data.layer._icon, data.originalEvent.relatedTarget)) {\r \t\t\t\treturn;\r \t\t\t}\r \t\t\ttype = 'cluster' + type;\r \t\t}\r \r \t\tL.FeatureGroup.prototype.fire.call(this, type, data, propagate);\r \t},\r \r \t//Override L.Evented.listens\r \tlistens: function (type, propagate) {\r \t\treturn L.FeatureGroup.prototype.listens.call(this, type, propagate) || L.FeatureGroup.prototype.listens.call(this, 'cluster' + type, propagate);\r \t},\r \r \t//Default functionality\r \t_defaultIconCreateFunction: function (cluster) {\r \t\tvar childCount = cluster.getChildCount();\r \r \t\tvar c = ' marker-cluster-';\r \t\tif (childCount < 10) {\r \t\t\tc += 'small';\r \t\t} else if (childCount < 100) {\r \t\t\tc += 'medium';\r \t\t} else {\r \t\t\tc += 'large';\r \t\t}\r \r \t\treturn new L.DivIcon({ html: '<div><span>' + childCount + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });\r \t},\r \r \t_bindEvents: function () {\r \t\tvar map = this._map,\r \t\t spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,\r \t\t showCoverageOnHover = this.options.showCoverageOnHover,\r \t\t zoomToBoundsOnClick = this.options.zoomToBoundsOnClick;\r \r \t\t//Zoom on cluster click or spiderfy if we are at the lowest level\r \t\tif (spiderfyOnMaxZoom || zoomToBoundsOnClick) {\r \t\t\tthis.on('clusterclick', this._zoomOrSpiderfy, this);\r \t\t}\r \r \t\t//Show convex hull (boundary) polygon on mouse over\r \t\tif (showCoverageOnHover) {\r \t\t\tthis.on('clustermouseover', this._showCoverage, this);\r \t\t\tthis.on('clustermouseout', this._hideCoverage, this);\r \t\t\tmap.on('zoomend', this._hideCoverage, this);\r \t\t}\r \t},\r \r \t_zoomOrSpiderfy: function (e) {\r \t\tvar cluster = e.layer,\r \t\t bottomCluster = cluster;\r \r \t\twhile (bottomCluster._childClusters.length === 1) {\r \t\t\tbottomCluster = bottomCluster._childClusters[0];\r \t\t}\r \r \t\tif (bottomCluster._zoom === this._maxZoom &&\r \t\t\tbottomCluster._childCount === cluster._childCount &&\r \t\t\tthis.options.spiderfyOnMaxZoom) {\r \r \t\t\t// All child markers are contained in a single cluster from this._maxZoom to this cluster.\r \t\t\tcluster.spiderfy();\r \t\t} else if (this.options.zoomToBoundsOnClick) {\r \t\t\tcluster.zoomToBounds();\r \t\t}\r \r \t\t// Focus the map again for keyboard users.\r \t\tif (e.originalEvent && e.originalEvent.keyCode === 13) {\r \t\t\tthis._map._container.focus();\r \t\t}\r \t},\r \r \t_showCoverage: function (e) {\r \t\tvar map = this._map;\r \t\tif (this._inZoomAnimation) {\r \t\t\treturn;\r \t\t}\r \t\tif (this._shownPolygon) {\r \t\t\tmap.removeLayer(this._shownPolygon);\r \t\t}\r \t\tif (e.layer.getChildCount() > 2 && e.layer !== this._spiderfied) {\r \t\t\tthis._shownPolygon = new L.Polygon(e.layer.getConvexHull(), this.options.polygonOptions);\r \t\t\tmap.addLayer(this._shownPolygon);\r \t\t}\r \t},\r \r \t_hideCoverage: function () {\r \t\tif (this._shownPolygon) {\r \t\t\tthis._map.removeLayer(this._shownPolygon);\r \t\t\tthis._shownPolygon = null;\r \t\t}\r \t},\r \r \t_unbindEvents: function () {\r \t\tvar spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,\r \t\t\tshowCoverageOnHover = this.options.showCoverageOnHover,\r \t\t\tzoomToBoundsOnClick = this.options.zoomToBoundsOnClick,\r \t\t\tmap = this._map;\r \r \t\tif (spiderfyOnMaxZoom || zoomToBoundsOnClick) {\r \t\t\tthis.off('clusterclick', this._zoomOrSpiderfy, this);\r \t\t}\r \t\tif (showCoverageOnHover) {\r \t\t\tthis.off('clustermouseover', this._showCoverage, this);\r \t\t\tthis.off('clustermouseout', this._hideCoverage, this);\r \t\t\tmap.off('zoomend', this._hideCoverage, this);\r \t\t}\r \t},\r \r \t_zoomEnd: function () {\r \t\tif (!this._map) { //May have been removed from the map by a zoomEnd handler\r \t\t\treturn;\r \t\t}\r \t\tthis._mergeSplitClusters();\r \r \t\tthis._zoom = Math.round(this._map._zoom);\r \t\tthis._currentShownBounds = this._getExpandedVisibleBounds();\r \t},\r \r \t_moveEnd: function () {\r \t\tif (this._inZoomAnimation) {\r \t\t\treturn;\r \t\t}\r \r \t\tvar newBounds = this._getExpandedVisibleBounds();\r \r \t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, newBounds);\r \t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, Math.round(this._map._zoom), newBounds);\r \r \t\tthis._currentShownBounds = newBounds;\r \t\treturn;\r \t},\r \r \t_generateInitialClusters: function () {\r \t\tvar maxZoom = Math.ceil(this._map.getMaxZoom()),\r \t\t\tminZoom = Math.floor(this._map.getMinZoom()),\r \t\t\tradius = this.options.maxClusterRadius,\r \t\t\tradiusFn = radius;\r \r \t\t//If we just set maxClusterRadius to a single number, we need to create\r \t\t//a simple function to return that number. Otherwise, we just have to\r \t\t//use the function we've passed in.\r \t\tif (typeof radius !== \"function\") {\r \t\t\tradiusFn = function () { return radius; };\r \t\t}\r \r \t\tif (this.options.disableClusteringAtZoom !== null) {\r \t\t\tmaxZoom = this.options.disableClusteringAtZoom - 1;\r \t\t}\r \t\tthis._maxZoom = maxZoom;\r \t\tthis._gridClusters = {};\r \t\tthis._gridUnclustered = {};\r \r \t\t//Set up DistanceGrids for each zoom\r \t\tfor (var zoom = maxZoom; zoom >= minZoom; zoom--) {\r \t\t\tthis._gridClusters[zoom] = new L.DistanceGrid(radiusFn(zoom));\r \t\t\tthis._gridUnclustered[zoom] = new L.DistanceGrid(radiusFn(zoom));\r \t\t}\r \r \t\t// Instantiate the appropriate L.MarkerCluster class (animated or not).\r \t\tthis._topClusterLevel = new this._markerCluster(this, minZoom - 1);\r \t},\r \r \t//Zoom: Zoom to start adding at (Pass this._maxZoom to start at the bottom)\r \t_addLayer: function (layer, zoom) {\r \t\tvar gridClusters = this._gridClusters,\r \t\t gridUnclustered = this._gridUnclustered,\r \t\t\tminZoom = Math.floor(this._map.getMinZoom()),\r \t\t markerPoint, z;\r \r \t\tif (this.options.singleMarkerMode) {\r \t\t\tthis._overrideMarkerIcon(layer);\r \t\t}\r \r \t\tlayer.on(this._childMarkerEventHandlers, this);\r \r \t\t//Find the lowest zoom level to slot this one in\r \t\tfor (; zoom >= minZoom; zoom--) {\r \t\t\tmarkerPoint = this._map.project(layer.getLatLng(), zoom); // calculate pixel position\r \r \t\t\t//Try find a cluster close by\r \t\t\tvar closest = gridClusters[zoom].getNearObject(markerPoint);\r \t\t\tif (closest) {\r \t\t\t\tclosest._addChild(layer);\r \t\t\t\tlayer.__parent = closest;\r \t\t\t\treturn;\r \t\t\t}\r \r \t\t\t//Try find a marker close by to form a new cluster with\r \t\t\tclosest = gridUnclustered[zoom].getNearObject(markerPoint);\r \t\t\tif (closest) {\r \t\t\t\tvar parent = closest.__parent;\r \t\t\t\tif (parent) {\r \t\t\t\t\tthis._removeLayer(closest, false);\r \t\t\t\t}\r \r \t\t\t\t//Create new cluster with these 2 in it\r \r \t\t\t\tvar newCluster = new this._markerCluster(this, zoom, closest, layer);\r \t\t\t\tgridClusters[zoom].addObject(newCluster, this._map.project(newCluster._cLatLng, zoom));\r \t\t\t\tclosest.__parent = newCluster;\r \t\t\t\tlayer.__parent = newCluster;\r \r \t\t\t\t//First create any new intermediate parent clusters that don't exist\r \t\t\t\tvar lastParent = newCluster;\r \t\t\t\tfor (z = zoom - 1; z > parent._zoom; z--) {\r \t\t\t\t\tlastParent = new this._markerCluster(this, z, lastParent);\r \t\t\t\t\tgridClusters[z].addObject(lastParent, this._map.project(closest.getLatLng(), z));\r \t\t\t\t}\r \t\t\t\tparent._addChild(lastParent);\r \r \t\t\t\t//Remove closest from this zoom level and any above that it is in, replace with newCluster\r \t\t\t\tthis._removeFromGridUnclustered(closest, zoom);\r \r \t\t\t\treturn;\r \t\t\t}\r \r \t\t\t//Didn't manage to cluster in at this zoom, record us as a marker here and continue upwards\r \t\t\tgridUnclustered[zoom].addObject(layer, markerPoint);\r \t\t}\r \r \t\t//Didn't get in anything, add us to the top\r \t\tthis._topClusterLevel._addChild(layer);\r \t\tlayer.__parent = this._topClusterLevel;\r \t\treturn;\r \t},\r \r \t/**\r \t * Refreshes the icon of all \"dirty\" visible clusters.\r \t * Non-visible \"dirty\" clusters will be updated when they are added to the map.\r \t * @private\r \t */\r \t_refreshClustersIcons: function () {\r \t\tthis._featureGroup.eachLayer(function (c) {\r \t\t\tif (c instanceof L.MarkerCluster && c._iconNeedsUpdate) {\r \t\t\t\tc._updateIcon();\r \t\t\t}\r \t\t});\r \t},\r \r \t//Enqueue code to fire after the marker expand/contract has happened\r \t_enqueue: function (fn) {\r \t\tthis._queue.push(fn);\r \t\tif (!this._queueTimeout) {\r \t\t\tthis._queueTimeout = setTimeout(L.bind(this._processQueue, this), 300);\r \t\t}\r \t},\r \t_processQueue: function () {\r \t\tfor (var i = 0; i < this._queue.length; i++) {\r \t\t\tthis._queue[i].call(this);\r \t\t}\r \t\tthis._queue.length = 0;\r \t\tclearTimeout(this._queueTimeout);\r \t\tthis._queueTimeout = null;\r \t},\r \r \t//Merge and split any existing clusters that are too big or small\r \t_mergeSplitClusters: function () {\r \t\tvar mapZoom = Math.round(this._map._zoom);\r \r \t\t//In case we are starting to split before the animation finished\r \t\tthis._processQueue();\r \r \t\tif (this._zoom < mapZoom && this._currentShownBounds.intersects(this._getExpandedVisibleBounds())) { //Zoom in, split\r \t\t\tthis._animationStart();\r \t\t\t//Remove clusters now off screen\r \t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, this._getExpandedVisibleBounds());\r \r \t\t\tthis._animationZoomIn(this._zoom, mapZoom);\r \r \t\t} else if (this._zoom > mapZoom) { //Zoom out, merge\r \t\t\tthis._animationStart();\r \r \t\t\tthis._animationZoomOut(this._zoom, mapZoom);\r \t\t} else {\r \t\t\tthis._moveEnd();\r \t\t}\r \t},\r \r \t//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)\r \t_getExpandedVisibleBounds: function () {\r \t\tif (!this.options.removeOutsideVisibleBounds) {\r \t\t\treturn this._mapBoundsInfinite;\r \t\t} else if (L.Browser.mobile) {\r \t\t\treturn this._checkBoundsMaxLat(this._map.getBounds());\r \t\t}\r \r \t\treturn this._checkBoundsMaxLat(this._map.getBounds().pad(1)); // Padding expands the bounds by its own dimensions but scaled with the given factor.\r \t},\r \r \t/**\r \t * Expands the latitude to Infinity (or -Infinity) if the input bounds reach the map projection maximum defined latitude\r \t * (in the case of Web/Spherical Mercator, it is 85.0511287798 / see https://en.wikipedia.org/wiki/Web_Mercator#Formulas).\r \t * Otherwise, the removeOutsideVisibleBounds option will remove markers beyond that limit, whereas the same markers without\r \t * this option (or outside MCG) will have their position floored (ceiled) by the projection and rendered at that limit,\r \t * making the user think that MCG \"eats\" them and never displays them again.\r \t * @param bounds L.LatLngBounds\r \t * @returns {L.LatLngBounds}\r \t * @private\r \t */\r \t_checkBoundsMaxLat: function (bounds) {\r \t\tvar maxLat = this._maxLat;\r \r \t\tif (maxLat !== undefined) {\r \t\t\tif (bounds.getNorth() >= maxLat) {\r \t\t\t\tbounds._northEast.lat = Infinity;\r \t\t\t}\r \t\t\tif (bounds.getSouth() <= -maxLat) {\r \t\t\t\tbounds._southWest.lat = -Infinity;\r \t\t\t}\r \t\t}\r \r \t\treturn bounds;\r \t},\r \r \t//Shared animation code\r \t_animationAddLayerNonAnimated: function (layer, newCluster) {\r \t\tif (newCluster === layer) {\r \t\t\tthis._featureGroup.addLayer(layer);\r \t\t} else if (newCluster._childCount === 2) {\r \t\t\tnewCluster._addToMap();\r \r \t\t\tvar markers = newCluster.getAllChildMarkers();\r \t\t\tthis._featureGroup.removeLayer(markers[0]);\r \t\t\tthis._featureGroup.removeLayer(markers[1]);\r \t\t} else {\r \t\t\tnewCluster._updateIcon();\r \t\t}\r \t},\r \r \t/**\r \t * Extracts individual (i.e. non-group) layers from a Layer Group.\r \t * @param group to extract layers from.\r \t * @param output {Array} in which to store the extracted layers.\r \t * @returns {*|Array}\r \t * @private\r \t */\r \t_extractNonGroupLayers: function (group, output) {\r \t\tvar layers = group.getLayers(),\r \t\t i = 0,\r \t\t layer;\r \r \t\toutput = output || [];\r \r \t\tfor (; i < layers.length; i++) {\r \t\t\tlayer = layers[i];\r \r \t\t\tif (layer instanceof L.LayerGroup) {\r \t\t\t\tthis._extractNonGroupLayers(layer, output);\r \t\t\t\tcontinue;\r \t\t\t}\r \r \t\t\toutput.push(layer);\r \t\t}\r \r \t\treturn output;\r \t},\r \r \t/**\r \t * Implements the singleMarkerMode option.\r \t * @param layer Marker to re-style using the Clusters iconCreateFunction.\r \t * @returns {L.Icon} The newly created icon.\r \t * @private\r \t */\r \t_overrideMarkerIcon: function (layer) {\r \t\tvar icon = layer.options.icon = this.options.iconCreateFunction({\r \t\t\tgetChildCount: function () {\r \t\t\t\treturn 1;\r \t\t\t},\r \t\t\tgetAllChildMarkers: function () {\r \t\t\t\treturn [layer];\r \t\t\t}\r \t\t});\r \r \t\treturn icon;\r \t}\r });\r \r // Constant bounds used in case option \"removeOutsideVisibleBounds\" is set to false.\r L.MarkerClusterGroup.include({\r \t_mapBoundsInfinite: new L.LatLngBounds(new L.LatLng(-Infinity, -Infinity), new L.LatLng(Infinity, Infinity))\r });\r \r L.MarkerClusterGroup.include({\r \t_noAnimation: {\r \t\t//Non Animated versions of everything\r \t\t_animationStart: function () {\r \t\t\t//Do nothing...\r \t\t},\r \t\t_animationZoomIn: function (previousZoomLevel, newZoomLevel) {\r \t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);\r \t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\r \r \t\t\t//We didn't actually animate, but we use this event to mean \"clustering animations have finished\"\r \t\t\tthis.fire('animationend');\r \t\t},\r \t\t_animationZoomOut: function (previousZoomLevel, newZoomLevel) {\r \t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);\r \t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\r \r \t\t\t//We didn't actually animate, but we use this event to mean \"clustering animations have finished\"\r \t\t\tthis.fire('animationend');\r \t\t},\r \t\t_animationAddLayer: function (layer, newCluster) {\r \t\t\tthis._animationAddLayerNonAnimated(layer, newCluster);\r \t\t}\r \t},\r \r \t_withAnimation: {\r \t\t//Animated versions here\r \t\t_animationStart: function () {\r \t\t\tthis._map._mapPane.className += ' leaflet-cluster-anim';\r \t\t\tthis._inZoomAnimation++;\r \t\t},\r \r \t\t_animationZoomIn: function (previousZoomLevel, newZoomLevel) {\r \t\t\tvar bounds = this._getExpandedVisibleBounds(),\r \t\t\t fg = this._featureGroup,\r \t\t\t\tminZoom = Math.floor(this._map.getMinZoom()),\r \t\t\t i;\r \r \t\t\tthis._ignoreMove = true;\r \r \t\t\t//Add all children of current clusters to map and remove those clusters from map\r \t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {\r \t\t\t\tvar startPos = c._latlng,\r \t\t\t\t markers = c._markers,\r \t\t\t\t m;\r \r \t\t\t\tif (!bounds.contains(startPos)) {\r \t\t\t\t\tstartPos = null;\r \t\t\t\t}\r \r \t\t\t\tif (c._isSingleParent() && previousZoomLevel + 1 === newZoomLevel) { //Immediately add the new child and remove us\r \t\t\t\t\tfg.removeLayer(c);\r \t\t\t\t\tc._recursivelyAddChildrenToMap(null, newZoomLevel, bounds);\r \t\t\t\t} else {\r \t\t\t\t\t//Fade out old cluster\r \t\t\t\t\tc.clusterHide();\r \t\t\t\t\tc._recursivelyAddChildrenToMap(startPos, newZoomLevel, bounds);\r \t\t\t\t}\r \r \t\t\t\t//Remove all markers that aren't visible any more\r \t\t\t\t//TODO: Do we actually need to do this on the higher levels too?\r \t\t\t\tfor (i = markers.length - 1; i >= 0; i--) {\r \t\t\t\t\tm = markers[i];\r \t\t\t\t\tif (!bounds.contains(m._latlng)) {\r \t\t\t\t\t\tfg.removeLayer(m);\r \t\t\t\t\t}\r \t\t\t\t}\r \r \t\t\t});\r \r \t\t\tthis._forceLayout();\r \r \t\t\t//Update opacities\r \t\t\tthis._topClusterLevel._recursivelyBecomeVisible(bounds, newZoomLevel);\r \t\t\t//TODO Maybe? Update markers in _recursivelyBecomeVisible\r \t\t\tfg.eachLayer(function (n) {\r \t\t\t\tif (!(n instanceof L.MarkerCluster) && n._icon) {\r \t\t\t\t\tn.clusterShow();\r \t\t\t\t}\r \t\t\t});\r \r \t\t\t//update the positions of the just added clusters/markers\r \t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, newZoomLevel, function (c) {\r \t\t\t\tc._recursivelyRestoreChildPositions(newZoomLevel);\r \t\t\t});\r \r \t\t\tthis._ignoreMove = false;\r \r \t\t\t//Remove the old clusters and close the zoom animation\r \t\t\tthis._enqueue(function () {\r \t\t\t\t//update the positions of the just added clusters/markers\r \t\t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {\r \t\t\t\t\tfg.removeLayer(c);\r \t\t\t\t\tc.clusterShow();\r \t\t\t\t});\r \r \t\t\t\tthis._animationEnd();\r \t\t\t});\r \t\t},\r \r \t\t_animationZoomOut: function (previousZoomLevel, newZoomLevel) {\r \t\t\tthis._animationZoomOutSingle(this._topClusterLevel, previousZoomLevel - 1, newZoomLevel);\r \r \t\t\t//Need to add markers for those that weren't on the map before but are now\r \t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\r \t\t\t//Remove markers that were on the map before but won't be now\r \t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel, this._getExpandedVisibleBounds());\r \t\t},\r \r \t\t_animationAddLayer: function (layer, newCluster) {\r \t\t\tvar me = this,\r \t\t\t fg = this._featureGroup;\r \r \t\t\tfg.addLayer(layer);\r \t\t\tif (newCluster !== layer) {\r \t\t\t\tif (newCluster._childCount > 2) { //Was already a cluster\r \r \t\t\t\t\tnewCluster._updateIcon();\r \t\t\t\t\tthis._forceLayout();\r \t\t\t\t\tthis._animationStart();\r \r \t\t\t\t\tlayer._setPos(this._map.latLngToLayerPoint(newCluster.getLatLng()));\r \t\t\t\t\tlayer.clusterHide();\r \r \t\t\t\t\tthis._enqueue(function () {\r \t\t\t\t\t\tfg.removeLayer(layer);\r \t\t\t\t\t\tlayer.clusterShow();\r \r \t\t\t\t\t\tme._animationEnd();\r \t\t\t\t\t});\r \r \t\t\t\t} else { //Just became a cluster\r \t\t\t\t\tthis._forceLayout();\r \r \t\t\t\t\tme._animationStart();\r \t\t\t\t\tme._animationZoomOutSingle(newCluster, this._map.getMaxZoom(), this._zoom);\r \t\t\t\t}\r \t\t\t}\r \t\t}\r \t},\r \r \t// Private methods for animated versions.\r \t_animationZoomOutSingle: function (cluster, previousZoomLevel, newZoomLevel) {\r \t\tvar bounds = this._getExpandedVisibleBounds(),\r \t\t\tminZoom = Math.floor(this._map.getMinZoom());\r \r \t\t//Animate all of the markers in the clusters to move to their cluster center point\r \t\tcluster._recursivelyAnimateChildrenInAndAddSelfToMap(bounds, minZoom, previousZoomLevel + 1, newZoomLevel);\r \r \t\tvar me = this;\r \r \t\t//Update the opacity (If we immediately set it they won't animate)\r \t\tthis._forceLayout();\r \t\tcluster._recursivelyBecomeVisible(bounds, newZoomLevel);\r \r \t\t//TODO: Maybe use the transition timing stuff to make this more reliable\r \t\t//When the animations are done, tidy up\r \t\tthis._enqueue(function () {\r \r \t\t\t//This cluster stopped being a cluster before the timeout fired\r \t\t\tif (cluster._childCount === 1) {\r \t\t\t\tvar m = cluster._markers[0];\r \t\t\t\t//If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it\r \t\t\t\tthis._ignoreMove = true;\r \t\t\t\tm.setLatLng(m.getLatLng());\r \t\t\t\tthis._ignoreMove = false;\r \t\t\t\tif (m.clusterShow) {\r \t\t\t\t\tm.clusterShow();\r \t\t\t\t}\r \t\t\t} else {\r \t\t\t\tcluster._recursively(bounds, newZoomLevel, minZoom, function (c) {\r \t\t\t\t\tc._recursivelyRemoveChildrenFromMap(bounds, minZoom, previousZoomLevel + 1);\r \t\t\t\t});\r \t\t\t}\r \t\t\tme._animationEnd();\r \t\t});\r \t},\r \r \t_animationEnd: function () {\r \t\tif (this._map) {\r \t\t\tthis._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');\r \t\t}\r \t\tthis._inZoomAnimation--;\r \t\tthis.fire('animationend');\r \t},\r \r \t//Force a browser layout of stuff in the map\r \t// Should apply the current opacity and location to all elements so we can update them again for an animation\r \t_forceLayout: function () {\r \t\t//In my testing this works, infact offsetWidth of any element seems to work.\r \t\t//Could loop all this._layers and do this for each _icon if it stops working\r \r \t\tL.Util.falseFn(document.body.offsetWidth);\r \t}\r });\r \r L.markerClusterGroup = function (options) {\r \treturn new L.MarkerClusterGroup(options);\r };\r ","export var MarkerCluster = L.MarkerCluster = L.Marker.extend({\r \toptions: L.Icon.prototype.options,\r \r \tinitialize: function (group, zoom, a, b) {\r \r \t\tL.Marker.prototype.initialize.call(this, a ? (a._cLatLng || a.getLatLng()) : new L.LatLng(0, 0),\r { icon: this, pane: group.options.clusterPane });\r \r \t\tthis._group = group;\r \t\tthis._zoom = zoom;\r \r \t\tthis._markers = [];\r \t\tthis._childClusters = [];\r \t\tthis._childCount = 0;\r \t\tthis._iconNeedsUpdate = true;\r \t\tthis._boundsNeedUpdate = true;\r \r \t\tthis._bounds = new L.LatLngBounds();\r \r \t\tif (a) {\r \t\t\tthis._addChild(a);\r \t\t}\r \t\tif (b) {\r \t\t\tthis._addChild(b);\r \t\t}\r \t},\r \r \t//Recursively retrieve all child markers of this cluster\r \tgetAllChildMarkers: function (storageArray, ignoreDraggedMarker) {\r \t\tstorageArray = storageArray || [];\r \r \t\tfor (var i = this._childClusters.length - 1; i >= 0; i--) {\r \t\t\tthis._childClusters[i].getAllChildMarkers(storageArray);\r \t\t}\r \r \t\tfor (var j = this._markers.length - 1; j >= 0; j--) {\r \t\t\tif (ignoreDraggedMarker && this._markers[j].__dragStart) {\r \t\t\t\tcontinue;\r \t\t\t}\r \t\t\tstorageArray.push(this._markers[j]);\r \t\t}\r \r \t\treturn storageArray;\r \t},\r \r \t//Returns the count of how many child markers we have\r \tgetChildCount: function () {\r \t\treturn this._childCount;\r \t},\r \r \t//Zoom to the minimum of showing all of the child markers, or the extents of this cluster\r \tzoomToBounds: function (fitBoundsOptions) {\r \t\tvar childClusters = this._childClusters.slice(),\r \t\t\tmap = this._group._map,\r \t\t\tboundsZoom = map.getBoundsZoom(this._bounds),\r \t\t\tzoom = this._zoom + 1,\r \t\t\tmapZoom = map.getZoom(),\r \t\t\ti;\r \r \t\t//calculate how far we need to zoom down to see all of the markers\r \t\twhile (childClusters.length > 0 && boundsZoom > zoom) {\r \t\t\tzoom++;\r \t\t\tvar newClusters = [];\r \t\t\tfor (i = 0; i < childClusters.length; i++) {\r \t\t\t\tnewClusters = newClusters.concat(childClusters[i]._childClusters);\r \t\t\t}\r \t\t\tchildClusters = newClusters;\r \t\t}\r \r \t\tif (boundsZoom > zoom) {\r \t\t\tthis._group._map.setView(this._latlng, zoom);\r \t\t} else if (boundsZoom <= mapZoom) { //If fitBounds wouldn't zoom us down, zoom us down instead\r \t\t\tthis._group._map.setView(this._latlng, mapZoom + 1);\r \t\t} else {\r \t\t\tthis._group._map.fitBounds(this._bounds, fitBoundsOptions);\r \t\t}\r \t},\r \r \tgetBounds: function () {\r \t\tvar bounds = new L.LatLngBounds();\r \t\tbounds.extend(this._bounds);\r \t\treturn bounds;\r \t},\r \r \t_updateIcon: function () {\r \t\tthis._iconNeedsUpdate = true;\r \t\tif (this._icon) {\r \t\t\tthis.setIcon(this);\r \t\t}\r \t},\r \r \t//Cludge for Icon, we pretend to be an icon for performance\r \tcreateIcon: function () {\r \t\tif (this._iconNeedsUpdate) {\r \t\t\tthis._iconObj = this._group.options.iconCreateFunction(this);\r \t\t\tthis._iconNeedsUpdate = false;\r \t\t}\r \t\treturn this._iconObj.createIcon();\r \t},\r \tcreateShadow: function () {\r \t\treturn this._iconObj.createShadow();\r \t},\r \r \r \t_addChild: function (new1, isNotificationFromChild) {\r \r \t\tthis._iconNeedsUpdate = true;\r \r \t\tthis._boundsNeedUpdate = true;\r \t\tthis._setClusterCenter(new1);\r \r \t\tif (new1 instanceof L.MarkerCluster) {\r \t\t\tif (!isNotificationFromChild) {\r \t\t\t\tthis._childClusters.push(new1);\r \t\t\t\tnew1.__parent = this;\r \t\t\t}\r \t\t\tthis._childCount += new1._childCount;\r \t\t} else {\r \t\t\tif (!isNotificationFromChild) {\r \t\t\t\tthis._markers.push(new1);\r \t\t\t}\r \t\t\tthis._childCount++;\r \t\t}\r \r \t\tif (this.__parent) {\r \t\t\tthis.__parent._addChild(new1, true);\r \t\t}\r \t},\r \r \t/**\r \t * Makes sure the cluster center is set. If not, uses the child center if it is a cluster, or the marker position.\r \t * @param child L.MarkerCluster|L.Marker that will be used as cluster center if not defined yet.\r \t * @private\r \t */\r \t_setClusterCenter: function (child) {\r \t\tif (!this._cLatLng) {\r \t\t\t// when clustering, take position of the first point as the cluster center\r \t\t\tthis._cLatLng = child._cLatLng || child._latlng;\r \t\t}\r \t},\r \r \t/**\r \t * Assigns impossible bounding values so that the next extend entirely determines the new bounds.\r \t * This method avoids having to trash the previous L.LatLngBounds object and to create a new one, which is much slower for this class.\r \t * As long as the bounds are not extended, most other methods would probably fail, as they would with bounds initialized but not extended.\r \t * @private\r \t */\r \t_resetBounds: function () {\r \t\tvar bounds = this._bounds;\r \r \t\tif (bounds._southWest) {\r \t\t\tbounds._southWest.lat = Infinity;\r \t\t\tbounds._southWest.lng = Infinity;\r \t\t}\r \t\tif (bounds._northEast) {\r \t\t\tbounds._northEast.lat = -Infinity;\r \t\t\tbounds._northEast.lng = -Infinity;\r \t\t}\r \t},\r \r \t_recalculateBounds: function () {\r \t\tvar markers = this._markers,\r \t\t childClusters = this._childClusters,\r \t\t latSum = 0,\r \t\t lngSum = 0,\r \t\t totalCount = this._childCount,\r \t\t i, child, childLatLng, childCount;\r \r \t\t// Case where all markers are removed from the map and we are left with just an empty _topClusterLevel.\r \t\tif (totalCount === 0) {\r \t\t\treturn;\r \t\t}\r \r \t\t// Reset rather than creating a new object, for performance.\r \t\tthis._resetBounds();\r \r \t\t// Child markers.\r \t\tfor (i = 0; i < markers.length; i++) {\r \t\t\tchildLatLng = markers[i]._latlng;\r \r \t\t\tthis._bounds.extend(childLatLng);\r \r \t\t\tlatSum += childLatLng.lat;\r \t\t\tlngSum += childLatLng.lng;\r \t\t}\r \r \t\t// Child clusters.\r \t\tfor (i = 0; i < childClusters.length; i++) {\r \t\t\tchild = childClusters[i];\r \r \t\t\t// Re-compute child bounds and weighted position first if necessary.\r \t\t\tif (child._boundsNeedUpdate) {\r \t\t\t\tchild._recalculateBounds();\r \t\t\t}\r \r \t\t\tthis._bounds.extend(child._bounds);\r \r \t\t\tchildLatLng = child._wLatLng;\r \t\t\tchildCount = child._childCount;\r \r \t\t\tlatSum += childLatLng.lat * childCount;\r \t\t\tlngSum += childLatLng.lng * childCount;\r \t\t}\r \r \t\tthis._latlng = this._wLatLng = new L.LatLng(latSum / totalCount, lngSum / totalCount);\r \r \t\t// Reset dirty flag.\r \t\tthis._boundsNeedUpdate = false;\r \t},\r \r \t//Set our markers position as given and add it to the map\r \t_addToMap: function (startPos) {\r \t\tif (startPos) {\r \t\t\tthis._backupLatlng = this._latlng;\r \t\t\tthis.setLatLng(startPos);\r \t\t}\r \t\tthis._group._featureGroup.addLayer(this);\r \t},\r \r \t_recursivelyAnimateChildrenIn: function (bounds, center, maxZoom) {\r \t\tthis._recursively(bounds, this._group._map.getMinZoom(), maxZoom - 1,\r \t\t\tfunction (c) {\r \t\t\t\tvar markers = c._markers,\r \t\t\t\t\ti, m;\r \t\t\t\tfor (i = markers.length - 1; i >= 0; i--) {\r \t\t\t\t\tm = markers[i];\r \r \t\t\t\t\t//Only do it if the icon is still on the map\r \t\t\t\t\tif (m._icon) {\r \t\t\t\t\t\tm._setPos(center);\r \t\t\t\t\t\tm.clusterHide();\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t},\r \t\t\tfunction (c) {\r \t\t\t\tvar childClusters = c._childClusters,\r \t\t\t\t\tj, cm;\r \t\t\t\tfor (j = childClusters.length - 1; j >= 0; j--) {\r \t\t\t\t\tcm = childClusters[j];\r \t\t\t\t\tif (cm._icon) {\r \t\t\t\t\t\tcm._setPos(center);\r \t\t\t\t\t\tcm.clusterHide();\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t}\r \t\t);\r \t},\r \r \t_recursivelyAnimateChildrenInAndAddSelfToMap: function (bounds, mapMinZoom, previousZoomLevel, newZoomLevel) {\r \t\tthis._recursively(bounds, newZoomLevel, mapMinZoom,\r \t\t\tfunction (c) {\r \t\t\t\tc._recursivelyAnimateChildrenIn(bounds, c._group._map.latLngToLayerPoint(c.getLatLng()).round(), previousZoomLevel);\r \r \t\t\t\t//TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be.\r \t\t\t\t//As a hack we only do a animation free zoom on a single level zoom, if someone does multiple levels then we always animate\r \t\t\t\tif (c._isSingleParent() && previousZoomLevel - 1 === newZoomLevel) {\r \t\t\t\t\tc.clusterShow();\r \t\t\t\t\tc._recursivelyRemoveChildrenFromMap(bounds, mapMinZoom, previousZoomLevel); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds\r \t\t\t\t} else {\r \t\t\t\t\tc.clusterHide();\r \t\t\t\t}\r \r \t\t\t\tc._addToMap();\r \t\t\t}\r \t\t);\r \t},\r \r \t_recursivelyBecomeVisible: function (bounds, zoomLevel) {\r \t\tthis._recursively(bounds, this._group._map.getMinZoom(), zoomLevel, null, function (c) {\r \t\t\tc.clusterShow();\r \t\t});\r \t},\r \r \t_recursivelyAddChildrenToMap: function (startPos, zoomLevel, bounds) {\r \t\tthis._recursively(bounds, this._group._map.getMinZoom() - 1, zoomLevel,\r \t\t\tfunction (c) {\r \t\t\t\tif (zoomLevel === c._zoom) {\r \t\t\t\t\treturn;\r \t\t\t\t}\r \r \t\t\t\t//Add our child markers at startPos (so they can be animated out)\r \t\t\t\tfor (var i = c._markers.length - 1; i >= 0; i--) {\r \t\t\t\t\tvar nm = c._markers[i];\r \r \t\t\t\t\tif (!bounds.contains(nm._latlng)) {\r \t\t\t\t\t\tcontinue;\r \t\t\t\t\t}\r \r \t\t\t\t\tif (startPos) {\r \t\t\t\t\t\tnm._backupLatlng = nm.getLatLng();\r \r \t\t\t\t\t\tnm.setLatLng(startPos);\r \t\t\t\t\t\tif (nm.clusterHide) {\r \t\t\t\t\t\t\tnm.clusterHide();\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \r \t\t\t\t\tc._group._featureGroup.addLayer(nm);\r \t\t\t\t}\r \t\t\t},\r \t\t\tfunction (c) {\r \t\t\t\tc._addToMap(startPos);\r \t\t\t}\r \t\t);\r \t},\r \r \t_recursivelyRestoreChildPositions: function (zoomLevel) {\r \t\t//Fix positions of child markers\r \t\tfor (var i = this._markers.length - 1; i >= 0; i--) {\r \t\t\tvar nm = this._markers[i];\r \t\t\tif (nm._backupLatlng) {\r \t\t\t\tnm.setLatLng(nm._backupLatlng);\r \t\t\t\tdelete nm._backupLatlng;\r \t\t\t}\r \t\t}\r \r \t\tif (zoomLevel - 1 === this._zoom) {\r \t\t\t//Reposition child clusters\r \t\t\tfor (var j = this._childClusters.length - 1; j >= 0; j--) {\r \t\t\t\tthis._childClusters[j]._restorePosition();\r \t\t\t}\r \t\t} else {\r \t\t\tfor (var k = this._childClusters.length - 1; k >= 0; k--) {\r \t\t\t\tthis._childClusters[k]._recursivelyRestoreChildPositions(zoomLevel);\r \t\t\t}\r \t\t}\r \t},\r \r \t_restorePosition: function () {\r \t\tif (this._backupLatlng) {\r \t\t\tthis.setLatLng(this._backupLatlng);\r \t\t\tdelete this._backupLatlng;\r \t\t}\r \t},\r \r \t//exceptBounds: If set, don't remove any markers/clusters in it\r \t_recursivelyRemoveChildrenFromMap: function (previousBounds, mapMinZoom, zoomLevel, exceptBounds) {\r \t\tvar m, i;\r \t\tthis._recursively(previousBounds, mapMinZoom - 1, zoomLevel - 1,\r \t\t\tfunction (c) {\r \t\t\t\t//Remove markers at every level\r \t\t\t\tfor (i = c._markers.length - 1; i >= 0; i--) {\r \t\t\t\t\tm = c._markers[i];\r \t\t\t\t\tif (!exceptBounds || !exceptBounds.contains(m._latlng)) {\r \t\t\t\t\t\tc._group._featureGroup.removeLayer(m);\r \t\t\t\t\t\tif (m.clusterShow) {\r \t\t\t\t\t\t\tm.clusterShow();\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t},\r \t\t\tfunction (c) {\r \t\t\t\t//Remove child clusters at just the bottom level\r \t\t\t\tfor (i = c._childClusters.length - 1; i >= 0; i--) {\r \t\t\t\t\tm = c._childClusters[i];\r \t\t\t\t\tif (!exceptBounds || !exceptBounds.contains(m._latlng)) {\r \t\t\t\t\t\tc._group._featureGroup.removeLayer(m);\r \t\t\t\t\t\tif (m.clusterShow) {\r \t\t\t\t\t\t\tm.clusterShow();\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t}\r \t\t);\r \t},\r \r \t//Run the given functions recursively to this and child clusters\r \t// boundsToApplyTo: a L.LatLngBounds representing the bounds of what clusters to recurse in to\r \t// zoomLevelToStart: zoom level to start running functions (inclusive)\r \t// zoomLevelToStop: zoom level to stop running functions (inclusive)\r \t// runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level\r \t// runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level\r \t_recursively: function (boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel) {\r \t\tvar childClusters = this._childClusters,\r \t\t zoom = this._zoom,\r \t\t i, c;\r \r \t\tif (zoomLevelToStart <= zoom) {\r \t\t\tif (runAtEveryLevel) {\r \t\t\t\trunAtEveryLevel(this);\r \t\t\t}\r \t\t\tif (runAtBottomLevel && zoom === zoomLevelToStop) {\r \t\t\t\trunAtBottomLevel(this);\r \t\t\t}\r \t\t}\r \r \t\tif (zoom < zoomLevelToStart || zoom < zoomLevelToStop) {\r \t\t\tfor (i = childClusters.length - 1; i >= 0; i--) {\r \t\t\t\tc = childClusters[i];\r \t\t\t\tif (c._boundsNeedUpdate) {\r \t\t\t\t\tc._recalculateBounds();\r \t\t\t\t}\r \t\t\t\tif (boundsToApplyTo.intersects(c._bounds)) {\r \t\t\t\t\tc._recursively(boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel);\r \t\t\t\t}\r \t\t\t}\r \t\t}\r \t},\r \r \t//Returns true if we are the parent of only one cluster and that cluster is the same as us\r \t_isSingleParent: function () {\r \t\t//Don't need to check this._markers as the rest won't work if there are any\r \t\treturn this._childClusters.length > 0 && this._childClusters[0]._childCount === this._childCount;\r \t}\r });\r \r ","/*\r * Extends L.Marker to include two extra methods: clusterHide and clusterShow.\r * \r * They work as setOpacity(0) and setOpacity(1) respectively, but\r * don't overwrite the options.opacity\r * \r */\r \r L.Marker.include({\r \tclusterHide: function () {\r \t\tvar backup = this.options.opacity;\r \t\tthis.setOpacity(0);\r \t\tthis.options.opacity = backup;\r \t\treturn this;\r \t},\r \t\r \tclusterShow: function () {\r \t\treturn this.setOpacity(this.options.opacity);\r \t}\r });\r \r \r ","\r L.DistanceGrid = function (cellSize) {\r \tthis._cellSize = cellSize;\r \tthis._sqCellSize = cellSize * cellSize;\r \tthis._grid = {};\r \tthis._objectPoint = { };\r };\r \r L.DistanceGrid.prototype = {\r \r \taddObject: function (obj, point) {\r \t\tvar x = this._getCoord(point.x),\r \t\t y = this._getCoord(point.y),\r \t\t grid = this._grid,\r \t\t row = grid[y] = grid[y] || {},\r \t\t cell = row[x] = row[x] || [],\r \t\t stamp = L.Util.stamp(obj);\r \r \t\tthis._objectPoint[stamp] = point;\r \r \t\tcell.push(obj);\r \t},\r \r \tupdateObject: function (obj, point) {\r \t\tthis.removeObject(obj);\r \t\tthis.addObject(obj, point);\r \t},\r \r \t//Returns true if the object was found\r \tremoveObject: function (obj, point) {\r \t\tvar x = this._getCoord(point.x),\r \t\t y = this._getCoord(point.y),\r \t\t grid = this._grid,\r \t\t row = grid[y] = grid[y] || {},\r \t\t cell = row[x] = row[x] || [],\r \t\t i, len;\r \r \t\tdelete this._objectPoint[L.Util.stamp(obj)];\r \r \t\tfor (i = 0, len = cell.length; i < len; i++) {\r \t\t\tif (cell[i] === obj) {\r \r \t\t\t\tcell.splice(i, 1);\r \r \t\t\t\tif (len === 1) {\r \t\t\t\t\tdelete row[x];\r \t\t\t\t}\r \r \t\t\t\treturn true;\r \t\t\t}\r \t\t}\r \r \t},\r \r \teachObject: function (fn, context) {\r \t\tvar i, j, k, len, row, cell, removed,\r \t\t grid = this._grid;\r \r \t\tfor (i in grid) {\r \t\t\trow = grid[i];\r \r \t\t\tfor (j in row) {\r \t\t\t\tcell = row[j];\r \r \t\t\t\tfor (k = 0, len = cell.length; k < len; k++) {\r \t\t\t\t\tremoved = fn.call(context, cell[k]);\r \t\t\t\t\tif (removed) {\r \t\t\t\t\t\tk--;\r \t\t\t\t\t\tlen--;\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t}\r \t\t}\r \t},\r \r \tgetNearObject: function (point) {\r \t\tvar x = this._getCoord(point.x),\r \t\t y = this._getCoord(point.y),\r \t\t i, j, k, row, cell, len, obj, dist,\r \t\t objectPoint = this._objectPoint,\r \t\t closestDistSq = this._sqCellSize,\r \t\t closest = null;\r \r \t\tfor (i = y - 1; i <= y + 1; i++) {\r \t\t\trow = this._grid[i];\r \t\t\tif (row) {\r \r \t\t\t\tfor (j = x - 1; j <= x + 1; j++) {\r \t\t\t\t\tcell = row[j];\r \t\t\t\t\tif (cell) {\r \r \t\t\t\t\t\tfor (k = 0, len = cell.length; k < len; k++) {\r \t\t\t\t\t\t\tobj = cell[k];\r \t\t\t\t\t\t\tdist = this._sqDist(objectPoint[L.Util.stamp(obj)], point);\r \t\t\t\t\t\t\tif (dist < closestDistSq ||\r \t\t\t\t\t\t\t\tdist <= closestDistSq && closest === null) {\r \t\t\t\t\t\t\t\tclosestDistSq = dist;\r \t\t\t\t\t\t\t\tclosest = obj;\r \t\t\t\t\t\t\t}\r \t\t\t\t\t\t}\r \t\t\t\t\t}\r \t\t\t\t}\r \t\t\t}\r \t\t}\r \t\treturn closest;\r \t},\r \r \t_getCoord: function (x) {\r \t\tvar coord = Math.floor(x / this._cellSize);\r \t\treturn isFinite(coord) ? coord : x;\r \t},\r \r \t_sqDist: function (p, p2) {\r \t\tvar dx = p2.x - p.x,\r \t\t dy = p2.y - p.y;\r \t\treturn dx * dx + dy * dy;\r \t}\r };\r ","/* Copyright (c) 2012 the authors listed at the following URL, and/or\r the authors of referenced articles or incorporated external code:\r http://en.literateprograms.org/Quickhull_(Javascript)?action=history&offset=20120410175256\r \r Permission is hereby granted, free of charge, to any person obtaining\r a copy of this software and associated documentation files (the\r \"Software\"), to deal in the Software without restriction, including\r without limitation the rights to use, copy, modify, merge, publish,\r distribute, sublicense, and/or sell copies of the Software, and to\r permit persons to whom the Software is furnished to do so, subject to\r the following conditions:\r \r The above copyright notice and this permission notice shall be\r included in all copies or substantial portions of the Software.\r \r THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r \r Retrieved from: http://en.literateprograms.org/Quickhull_(Javascript)?oldid=18434\r */\r \r (function () {\r \tL.QuickHull = {\r \r \t\t/*\r \t\t * @param {Object} cpt a point to be measured from the baseline\r \t\t * @param {Array} bl the baseline, as represented by a two-element\r \t\t * array of latlng objects.\r \t\t * @returns {Number} an approximate distance measure\r \t\t */\r \t\tgetDistant: function (cpt, bl) {\r \t\t\tvar vY = bl[1].lat - bl[0].lat,\r \t\t\t\tvX = bl[0].lng - bl[1].lng;\r \t\t\treturn (vX * (cpt.lat - bl[0].lat) + vY * (cpt.lng - bl[0].lng));\r \t\t},\r \r \t\t/*\r \t\t * @param {Array} baseLine a two-element array of latlng objects\r \t\t * representing the baseline to project from\r \t\t * @param {Array} latLngs an array of latlng objects\r \t\t * @returns {Object} the maximum point and all new points to stay\r \t\t * in consideration for the hull.\r \t\t */\r \t\tfindMostDistantPointFromBaseLine: function (baseLine, latLngs) {\r \t\t\tvar maxD = 0,\r \t\t\t\tmaxPt = null,\r \t\t\t\tnewPoints = [],\r \t\t\t\ti, pt, d;\r \r \t\t\tfor (i = latLngs.length - 1; i >= 0; i--) {\r \t\t\t\tpt = latLngs[i];\r \t\t\t\td = this.getDistant(pt, baseLine);\r \r \t\t\t\tif (d > 0) {\r \t\t\t\t\tnewPoints.push(pt);\r \t\t\t\t} else {\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tif (d > maxD) {\r \t\t\t\t\tmaxD = d;\r \t\t\t\t\tmaxPt = pt;\r \t\t\t\t}\r \t\t\t}\r \r \t\t\treturn { maxPoint: maxPt, newPoints: newPoints };\r \t\t},\r \r \r \t\t/*\r \t\t * Given a baseline, compute the convex hull of latLngs as an array\r \t\t * of latLngs.\r \t\t *\r \t\t * @param {Array} latLngs\r \t\t * @returns {Array}\r \t\t */\r \t\tbuildConvexHull: function (baseLine, latLngs) {\r \t\t\tvar convexHullBaseLines = [],\r \t\t\t\tt = this.findMostDistantPointFromBaseLine(baseLine, latLngs);\r \r \t\t\tif (t.maxPoint) { // if there is still a point \"outside\" the base line\r \t\t\t\tconvexHullBaseLines =\r \t\t\t\t\tconvexHullBaseLines.concat(\r \t\t\t\t\t\tthis.buildConvexHull([baseLine[0], t.maxPoint], t.newPoints)\r \t\t\t\t\t);\r \t\t\t\tconvexHullBaseLines =\r \t\t\t\t\tconvexHullBaseLines.concat(\r \t\t\t\t\t\tthis.buildConvexHull([t.maxPoint, baseLine[1]], t.newPoints)\r \t\t\t\t\t);\r \t\t\t\treturn convexHullBaseLines;\r \t\t\t} else { // if there is no more point \"outside\" the base line, the current base line is part of the convex hull\r \t\t\t\treturn [baseLine[0]];\r \t\t\t}\r \t\t},\r \r \t\t/*\r \t\t * Given an array of latlngs, compute a convex hull as an array\r \t\t * of latlngs\r \t\t *\r \t\t * @param {Array} latLngs\r \t\t * @returns {Array}\r \t\t */\r \t\tgetConvexHull: function (latLngs) {\r \t\t\t// find first baseline\r \t\t\tvar maxLat = false, minLat = false,\r \t\t\t\tmaxLng = false, minLng = false,\r \t\t\t\tmaxLatPt = null, minLatPt = null,\r \t\t\t\tmaxLngPt = null, minLngPt = null,\r \t\t\t\tmaxPt = null, minPt = null,\r \t\t\t\ti;\r \r \t\t\tfor (i = latLngs.length - 1; i >= 0; i--) {\r \t\t\t\tvar pt = latLngs[i];\r \t\t\t\tif (maxLat === false || pt.lat > maxLat) {\r \t\t\t\t\tmaxLatPt = pt;\r \t\t\t\t\tmaxLat = pt.lat;\r \t\t\t\t}\r \t\t\t\tif (minLat === false || pt.lat < minLat) {\r \t\t\t\t\tminLatPt = pt;\r \t\t\t\t\tminLat = pt.lat;\r \t\t\t\t}\r \t\t\t\tif (maxLng === false || pt.lng > maxLng) {\r \t\t\t\t\tmaxLngPt = pt;\r \t\t\t\t\tmaxLng = pt.lng;\r \t\t\t\t}\r \t\t\t\tif (minLng === false || pt.lng < minLng) {\r \t\t\t\t\tminLngPt = pt;\r \t\t\t\t\tminLng = pt.lng;\r \t\t\t\t}\r \t\t\t}\r \t\t\t\r \t\t\tif (minLat !== maxLat) {\r \t\t\t\tminPt = minLatPt;\r \t\t\t\tmaxPt = maxLatPt;\r \t\t\t} else {\r \t\t\t\tminPt = minLngPt;\r \t\t\t\tmaxPt = maxLngPt;\r \t\t\t}\r \r \t\t\tvar ch = [].concat(this.buildConvexHull([minPt, maxPt], latLngs),\r \t\t\t\t\t\t\t\tthis.buildConvexHull([maxPt, minPt], latLngs));\r \t\t\treturn ch;\r \t\t}\r \t};\r }());\r \r L.MarkerCluster.include({\r \tgetConvexHull: function () {\r \t\tvar childMarkers = this.getAllChildMarkers(),\r \t\t\tpoints = [],\r \t\t\tp, i;\r \r \t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\tp = childMarkers[i].getLatLng();\r \t\t\tpoints.push(p);\r \t\t}\r \r \t\treturn L.QuickHull.getConvexHull(points);\r \t}\r });\r ","//This code is 100% based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet\r //Huge thanks to jawj for implementing it first to make my job easy :-)\r \r L.MarkerCluster.include({\r \r \t_2PI: Math.PI * 2,\r \t_circleFootSeparation: 25, //related to circumference of circle\r \t_circleStartAngle: 0,\r \r \t_spiralFootSeparation: 28, //related to size of spiral (experiment!)\r \t_spiralLengthStart: 11,\r \t_spiralLengthFactor: 5,\r \r \t_circleSpiralSwitchover: 9, //show spiral instead of circle from this marker count upwards.\r \t\t\t\t\t\t\t\t// 0 -> always spiral; Infinity -> always circle\r \r \tspiderfy: function () {\r \t\tif (this._group._spiderfied === this || this._group._inZoomAnimation) {\r \t\t\treturn;\r \t\t}\r \r \t\tvar childMarkers = this.getAllChildMarkers(null, true),\r \t\t\tgroup = this._group,\r \t\t\tmap = group._map,\r \t\t\tcenter = map.latLngToLayerPoint(this._latlng),\r \t\t\tpositions;\r \r \t\tthis._group._unspiderfy();\r \t\tthis._group._spiderfied = this;\r \r \t\t//TODO Maybe: childMarkers order by distance to center\r \r \t\tif (childMarkers.length >= this._circleSpiralSwitchover) {\r \t\t\tpositions = this._generatePointsSpiral(childMarkers.length, center);\r \t\t} else {\r \t\t\tcenter.y += 10; // Otherwise circles look wrong => hack for standard blue icon, renders differently for other icons.\r \t\t\tpositions = this._generatePointsCircle(childMarkers.length, center);\r \t\t}\r \r \t\tthis._animationSpiderfy(childMarkers, positions);\r \t},\r \r \tunspiderfy: function (zoomDetails) {\r \t\t/// <param Name=\"zoomDetails\">Argument from zoomanim if being called in a zoom animation or null otherwise</param>\r \t\tif (this._group._inZoomAnimation) {\r \t\t\treturn;\r \t\t}\r \t\tthis._animationUnspiderfy(zoomDetails);\r \r \t\tthis._group._spiderfied = null;\r \t},\r \r \t_generatePointsCircle: function (count, centerPt) {\r \t\tvar circumference = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + count),\r \t\t\tlegLength = circumference / this._2PI, //radius from circumference\r \t\t\tangleStep = this._2PI / count,\r \t\t\tres = [],\r \t\t\ti, angle;\r \r \t\tlegLength = Math.max(legLength, 35); // Minimum distance to get outside the cluster icon.\r \r \t\tres.length = count;\r \r \t\tfor (i = 0; i < count; i++) { // Clockwise, like spiral.\r \t\t\tangle = this._circleStartAngle + i * angleStep;\r \t\t\tres[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();\r \t\t}\r \r \t\treturn res;\r \t},\r \r \t_generatePointsSpiral: function (count, centerPt) {\r \t\tvar spiderfyDistanceMultiplier = this._group.options.spiderfyDistanceMultiplier,\r \t\t\tlegLength = spiderfyDistanceMultiplier * this._spiralLengthStart,\r \t\t\tseparation = spiderfyDistanceMultiplier * this._spiralFootSeparation,\r \t\t\tlengthFactor = spiderfyDistanceMultiplier * this._spiralLengthFactor * this._2PI,\r \t\t\tangle = 0,\r \t\t\tres = [],\r \t\t\ti;\r \r \t\tres.length = count;\r \r \t\t// Higher index, closer position to cluster center.\r \t\tfor (i = count; i >= 0; i--) {\r \t\t\t// Skip the first position, so that we are already farther from center and we avoid\r \t\t\t// being under the default cluster icon (especially important for Circle Markers).\r \t\t\tif (i < count) {\r \t\t\t\tres[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();\r \t\t\t}\r \t\t\tangle += separation / legLength + i * 0.0005;\r \t\t\tlegLength += lengthFactor / angle;\r \t\t}\r \t\treturn res;\r \t},\r \r \t_noanimationUnspiderfy: function () {\r \t\tvar group = this._group,\r \t\t\tmap = group._map,\r \t\t\tfg = group._featureGroup,\r \t\t\tchildMarkers = this.getAllChildMarkers(null, true),\r \t\t\tm, i;\r \r \t\tgroup._ignoreMove = true;\r \r \t\tthis.setOpacity(1);\r \t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\tm = childMarkers[i];\r \r \t\t\tfg.removeLayer(m);\r \r \t\t\tif (m._preSpiderfyLatlng) {\r \t\t\t\tm.setLatLng(m._preSpiderfyLatlng);\r \t\t\t\tdelete m._preSpiderfyLatlng;\r \t\t\t}\r \t\t\tif (m.setZIndexOffset) {\r \t\t\t\tm.setZIndexOffset(0);\r \t\t\t}\r \r \t\t\tif (m._spiderLeg) {\r \t\t\t\tmap.removeLayer(m._spiderLeg);\r \t\t\t\tdelete m._spiderLeg;\r \t\t\t}\r \t\t}\r \r \t\tgroup.fire('unspiderfied', {\r \t\t\tcluster: this,\r \t\t\tmarkers: childMarkers\r \t\t});\r \t\tgroup._ignoreMove = false;\r \t\tgroup._spiderfied = null;\r \t}\r });\r \r //Non Animated versions of everything\r L.MarkerClusterNonAnimated = L.MarkerCluster.extend({\r \t_animationSpiderfy: function (childMarkers, positions) {\r \t\tvar group = this._group,\r \t\t\tmap = group._map,\r \t\t\tfg = group._featureGroup,\r \t\t\tlegOptions = this._group.options.spiderLegPolylineOptions,\r \t\t\ti, m, leg, newPos;\r \r \t\tgroup._ignoreMove = true;\r \r \t\t// Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.\r \t\t// The reverse order trick no longer improves performance on modern browsers.\r \t\tfor (i = 0; i < childMarkers.length; i++) {\r \t\t\tnewPos = map.layerPointToLatLng(positions[i]);\r \t\t\tm = childMarkers[i];\r \r \t\t\t// Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.\r \t\t\tleg = new L.Polyline([this._latlng, newPos], legOptions);\r \t\t\tmap.addLayer(leg);\r \t\t\tm._spiderLeg = leg;\r \r \t\t\t// Now add the marker.\r \t\t\tm._preSpiderfyLatlng = m._latlng;\r \t\t\tm.setLatLng(newPos);\r \t\t\tif (m.setZIndexOffset) {\r \t\t\t\tm.setZIndexOffset(1000000); //Make these appear on top of EVERYTHING\r \t\t\t}\r \r \t\t\tfg.addLayer(m);\r \t\t}\r \t\tthis.setOpacity(0.3);\r \r \t\tgroup._ignoreMove = false;\r \t\tgroup.fire('spiderfied', {\r \t\t\tcluster: this,\r \t\t\tmarkers: childMarkers\r \t\t});\r \t},\r \r \t_animationUnspiderfy: function () {\r \t\tthis._noanimationUnspiderfy();\r \t}\r });\r \r //Animated versions here\r L.MarkerCluster.include({\r \r \t_animationSpiderfy: function (childMarkers, positions) {\r \t\tvar me = this,\r \t\t\tgroup = this._group,\r \t\t\tmap = group._map,\r \t\t\tfg = group._featureGroup,\r \t\t\tthisLayerLatLng = this._latlng,\r \t\t\tthisLayerPos = map.latLngToLayerPoint(thisLayerLatLng),\r \t\t\tsvg = L.Path.SVG,\r \t\t\tlegOptions = L.extend({}, this._group.options.spiderLegPolylineOptions), // Copy the options so that we can modify them for animation.\r \t\t\tfinalLegOpacity = legOptions.opacity,\r \t\t\ti, m, leg, legPath, legLength, newPos;\r \r \t\tif (finalLegOpacity === undefined) {\r \t\t\tfinalLegOpacity = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity;\r \t\t}\r \r \t\tif (svg) {\r \t\t\t// If the initial opacity of the spider leg is not 0 then it appears before the animation starts.\r \t\t\tlegOptions.opacity = 0;\r \r \t\t\t// Add the class for CSS transitions.\r \t\t\tlegOptions.className = (legOptions.className || '') + ' leaflet-cluster-spider-leg';\r \t\t} else {\r \t\t\t// Make sure we have a defined opacity.\r \t\t\tlegOptions.opacity = finalLegOpacity;\r \t\t}\r \r \t\tgroup._ignoreMove = true;\r \r \t\t// Add markers and spider legs to map, hidden at our center point.\r \t\t// Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.\r \t\t// The reverse order trick no longer improves performance on modern browsers.\r \t\tfor (i = 0; i < childMarkers.length; i++) {\r \t\t\tm = childMarkers[i];\r \r \t\t\tnewPos = map.layerPointToLatLng(positions[i]);\r \r \t\t\t// Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.\r \t\t\tleg = new L.Polyline([thisLayerLatLng, newPos], legOptions);\r \t\t\tmap.addLayer(leg);\r \t\t\tm._spiderLeg = leg;\r \r \t\t\t// Explanations: https://jakearchibald.com/2013/animated-line-drawing-svg/\r \t\t\t// In our case the transition property is declared in the CSS file.\r \t\t\tif (svg) {\r \t\t\t\tlegPath = leg._path;\r \t\t\t\tlegLength = legPath.getTotalLength() + 0.1; // Need a small extra length to avoid remaining dot in Firefox.\r \t\t\t\tlegPath.style.strokeDasharray = legLength; // Just 1 length is enough, it will be duplicated.\r \t\t\t\tlegPath.style.strokeDashoffset = legLength;\r \t\t\t}\r \r \t\t\t// If it is a marker, add it now and we'll animate it out\r \t\t\tif (m.setZIndexOffset) {\r \t\t\t\tm.setZIndexOffset(1000000); // Make normal markers appear on top of EVERYTHING\r \t\t\t}\r \t\t\tif (m.clusterHide) {\r \t\t\t\tm.clusterHide();\r \t\t\t}\r \t\t\t\r \t\t\t// Vectors just get immediately added\r \t\t\tfg.addLayer(m);\r \r \t\t\tif (m._setPos) {\r \t\t\t\tm._setPos(thisLayerPos);\r \t\t\t}\r \t\t}\r \r \t\tgroup._forceLayout();\r \t\tgroup._animationStart();\r \r \t\t// Reveal markers and spider legs.\r \t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\tnewPos = map.layerPointToLatLng(positions[i]);\r \t\t\tm = childMarkers[i];\r \r \t\t\t//Move marker to new position\r \t\t\tm._preSpiderfyLatlng = m._latlng;\r \t\t\tm.setLatLng(newPos);\r \t\t\t\r \t\t\tif (m.clusterShow) {\r \t\t\t\tm.clusterShow();\r \t\t\t}\r \r \t\t\t// Animate leg (animation is actually delegated to CSS transition).\r \t\t\tif (svg) {\r \t\t\t\tleg = m._spiderLeg;\r \t\t\t\tlegPath = leg._path;\r \t\t\t\tlegPath.style.strokeDashoffset = 0;\r \t\t\t\t//legPath.style.strokeOpacity = finalLegOpacity;\r \t\t\t\tleg.setStyle({opacity: finalLegOpacity});\r \t\t\t}\r \t\t}\r \t\tthis.setOpacity(0.3);\r \r \t\tgroup._ignoreMove = false;\r \r \t\tsetTimeout(function () {\r \t\t\tgroup._animationEnd();\r \t\t\tgroup.fire('spiderfied', {\r \t\t\t\tcluster: me,\r \t\t\t\tmarkers: childMarkers\r \t\t\t});\r \t\t}, 200);\r \t},\r \r \t_animationUnspiderfy: function (zoomDetails) {\r \t\tvar me = this,\r \t\t\tgroup = this._group,\r \t\t\tmap = group._map,\r \t\t\tfg = group._featureGroup,\r \t\t\tthisLayerPos = zoomDetails ? map._latLngToNewLayerPoint(this._latlng, zoomDetails.zoom, zoomDetails.center) : map.latLngToLayerPoint(this._latlng),\r \t\t\tchildMarkers = this.getAllChildMarkers(null, true),\r \t\t\tsvg = L.Path.SVG,\r \t\t\tm, i, leg, legPath, legLength, nonAnimatable;\r \r \t\tgroup._ignoreMove = true;\r \t\tgroup._animationStart();\r \r \t\t//Make us visible and bring the child markers back in\r \t\tthis.setOpacity(1);\r \t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\tm = childMarkers[i];\r \r \t\t\t//Marker was added to us after we were spiderfied\r \t\t\tif (!m._preSpiderfyLatlng) {\r \t\t\t\tcontinue;\r \t\t\t}\r \r \t\t\t//Close any popup on the marker first, otherwise setting the location of the marker will make the map scroll\r \t\t\tm.closePopup();\r \r \t\t\t//Fix up the location to the real one\r \t\t\tm.setLatLng(m._preSpiderfyLatlng);\r \t\t\tdelete m._preSpiderfyLatlng;\r \r \t\t\t//Hack override the location to be our center\r \t\t\tnonAnimatable = true;\r \t\t\tif (m._setPos) {\r \t\t\t\tm._setPos(thisLayerPos);\r \t\t\t\tnonAnimatable = false;\r \t\t\t}\r \t\t\tif (m.clusterHide) {\r \t\t\t\tm.clusterHide();\r \t\t\t\tnonAnimatable = false;\r \t\t\t}\r \t\t\tif (nonAnimatable) {\r \t\t\t\tfg.removeLayer(m);\r \t\t\t}\r \r \t\t\t// Animate the spider leg back in (animation is actually delegated to CSS transition).\r \t\t\tif (svg) {\r \t\t\t\tleg = m._spiderLeg;\r \t\t\t\tlegPath = leg._path;\r \t\t\t\tlegLength = legPath.getTotalLength() + 0.1;\r \t\t\t\tlegPath.style.strokeDashoffset = legLength;\r \t\t\t\tleg.setStyle({opacity: 0});\r \t\t\t}\r \t\t}\r \r \t\tgroup._ignoreMove = false;\r \r \t\tsetTimeout(function () {\r \t\t\t//If we have only <= one child left then that marker will be shown on the map so don't remove it!\r \t\t\tvar stillThereChildCount = 0;\r \t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\t\tm = childMarkers[i];\r \t\t\t\tif (m._spiderLeg) {\r \t\t\t\t\tstillThereChildCount++;\r \t\t\t\t}\r \t\t\t}\r \r \r \t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\r \t\t\t\tm = childMarkers[i];\r \r \t\t\t\tif (!m._spiderLeg) { //Has already been unspiderfied\r \t\t\t\t\tcontinue;\r \t\t\t\t}\r \r \t\t\t\tif (m.clusterShow) {\r \t\t\t\t\tm.clusterShow();\r \t\t\t\t}\r \t\t\t\tif (m.setZIndexOffset) {\r \t\t\t\t\tm.setZIndexOffset(0);\r \t\t\t\t}\r \r \t\t\t\tif (stillThereChildCount > 1) {\r \t\t\t\t\tfg.removeLayer(m);\r \t\t\t\t}\r \r \t\t\t\tmap.removeLayer(m._spiderLeg);\r \t\t\t\tdelete m._spiderLeg;\r \t\t\t}\r \t\t\tgroup._animationEnd();\r \t\t\tgroup.fire('unspiderfied', {\r \t\t\t\tcluster: me,\r \t\t\t\tmarkers: childMarkers\r \t\t\t});\r \t\t}, 200);\r \t}\r });\r \r \r L.MarkerClusterGroup.include({\r \t//The MarkerCluster currently spiderfied (if any)\r \t_spiderfied: null,\r \r \tunspiderfy: function () {\r \t\tthis._unspiderfy.apply(this, arguments);\r \t},\r \r \t_spiderfierOnAdd: function () {\r \t\tthis._map.on('click', this._unspiderfyWrapper, this);\r \r \t\tif (this._map.options.zoomAnimation) {\r \t\t\tthis._map.on('zoomstart', this._unspiderfyZoomStart, this);\r \t\t}\r \t\t//Browsers without zoomAnimation or a big zoom don't fire zoomstart\r \t\tthis._map.on('zoomend', this._noanimationUnspiderfy, this);\r \r \t\tif (!L.Browser.touch) {\r \t\t\tthis._map.getRenderer(this);\r \t\t\t//Needs to happen in the pageload, not after, or animations don't work in webkit\r \t\t\t// http://stackoverflow.com/questions/8455200/svg-animate-with-dynamically-added-elements\r \t\t\t//Disable on touch browsers as the animation messes up on a touch zoom and isn't very noticable\r \t\t}\r \t},\r \r \t_spiderfierOnRemove: function () {\r \t\tthis._map.off('click', this._unspiderfyWrapper, this);\r \t\tthis._map.off('zoomstart', this._unspiderfyZoomStart, this);\r \t\tthis._map.off('zoomanim', this._unspiderfyZoomAnim, this);\r \t\tthis._map.off('zoomend', this._noanimationUnspiderfy, this);\r \r \t\t//Ensure that markers are back where they should be\r \t\t// Use no animation to avoid a sticky leaflet-cluster-anim class on mapPane\r \t\tthis._noanimationUnspiderfy();\r \t},\r \r \t//On zoom start we add a zoomanim handler so that we are guaranteed to be last (after markers are animated)\r \t//This means we can define the animation they do rather than Markers doing an animation to their actual location\r \t_unspiderfyZoomStart: function () {\r \t\tif (!this._map) { //May have been removed from the map by a zoomEnd handler\r \t\t\treturn;\r \t\t}\r \r \t\tthis._map.on('zoomanim', this._unspiderfyZoomAnim, this);\r \t},\r \r \t_unspiderfyZoomAnim: function (zoomDetails) {\r \t\t//Wait until the first zoomanim after the user has finished touch-zooming before running the animation\r \t\tif (L.DomUtil.hasClass(this._map._mapPane, 'leaflet-touching')) {\r \t\t\treturn;\r \t\t}\r \r \t\tthis._map.off('zoomanim', this._unspiderfyZoomAnim, this);\r \t\tthis._unspiderfy(zoomDetails);\r \t},\r \r \t_unspiderfyWrapper: function () {\r \t\t/// <summary>_unspiderfy but passes no arguments</summary>\r \t\tthis._unspiderfy();\r \t},\r \r \t_unspiderfy: function (zoomDetails) {\r \t\tif (this._spiderfied) {\r \t\t\tthis._spiderfied.unspiderfy(zoomDetails);\r \t\t}\r \t},\r \r \t_noanimationUnspiderfy: function () {\r \t\tif (this._spiderfied) {\r \t\t\tthis._spiderfied._noanimationUnspiderfy();\r \t\t}\r \t},\r \r \t//If the given layer is currently being spiderfied then we unspiderfy it so it isn't on the map anymore etc\r \t_unspiderfyLayer: function (layer) {\r \t\tif (layer._spiderLeg) {\r \t\t\tthis._featureGroup.removeLayer(layer);\r \r \t\t\tif (layer.clusterShow) {\r \t\t\t\tlayer.clusterShow();\r \t\t\t}\r \t\t\t\t//Position will be fixed up immediately in _animationUnspiderfy\r \t\t\tif (layer.setZIndexOffset) {\r \t\t\t\tlayer.setZIndexOffset(0);\r \t\t\t}\r \r \t\t\tthis._map.removeLayer(layer._spiderLeg);\r \t\t\tdelete layer._spiderLeg;\r \t\t}\r \t}\r });\r ","/**\r * Adds 1 public method to MCG and 1 to L.Marker to facilitate changing\r * markers' icon options and refreshing their icon and their parent clusters\r * accordingly (case where their iconCreateFunction uses data of childMarkers\r * to make up the cluster icon).\r */\r \r \r L.MarkerClusterGroup.include({\r \t/**\r \t * Updates the icon of all clusters which are parents of the given marker(s).\r \t * In singleMarkerMode, also updates the given marker(s) icon.\r \t * @param layers L.MarkerClusterGroup|L.LayerGroup|Array(L.Marker)|Map(L.Marker)|\r \t * L.MarkerCluster|L.Marker (optional) list of markers (or single marker) whose parent\r \t * clusters need to be updated. If not provided, retrieves all child markers of this.\r \t * @returns {L.MarkerClusterGroup}\r \t */\r \trefreshClusters: function (layers) {\r \t\tif (!layers) {\r \t\t\tlayers = this._topClusterLevel.getAllChildMarkers();\r \t\t} else if (layers instanceof L.MarkerClusterGroup) {\r \t\t\tlayers = layers._topClusterLevel.getAllChildMarkers();\r \t\t} else if (layers instanceof L.LayerGroup) {\r \t\t\tlayers = layers._layers;\r \t\t} else if (layers instanceof L.MarkerCluster) {\r \t\t\tlayers = layers.getAllChildMarkers();\r \t\t} else if (layers instanceof L.Marker) {\r \t\t\tlayers = [layers];\r \t\t} // else: must be an Array(L.Marker)|Map(L.Marker)\r \t\tthis._flagParentsIconsNeedUpdate(layers);\r \t\tthis._refreshClustersIcons();\r \r \t\t// In case of singleMarkerMode, also re-draw the markers.\r \t\tif (this.options.singleMarkerMode) {\r \t\t\tthis._refreshSingleMarkerModeMarkers(layers);\r \t\t}\r \r \t\treturn this;\r \t},\r \r \t/**\r \t * Simply flags all parent clusters of the given markers as having a \"dirty\" icon.\r \t * @param layers Array(L.Marker)|Map(L.Marker) list of markers.\r \t * @private\r \t */\r \t_flagParentsIconsNeedUpdate: function (layers) {\r \t\tvar id, parent;\r \r \t\t// Assumes layers is an Array or an Object whose prototype is non-enumerable.\r \t\tfor (id in layers) {\r \t\t\t// Flag parent clusters' icon as \"dirty\", all the way up.\r \t\t\t// Dumb process that flags multiple times upper parents, but still\r \t\t\t// much more efficient than trying to be smart and make short lists,\r \t\t\t// at least in the case of a hierarchy following a power law:\r \t\t\t// http://jsperf.com/flag-nodes-in-power-hierarchy/2\r \t\t\tparent = layers[id].__parent;\r \t\t\twhile (parent) {\r \t\t\t\tparent._iconNeedsUpdate = true;\r \t\t\t\tparent = parent.__parent;\r \t\t\t}\r \t\t}\r \t},\r \r \t/**\r \t * Re-draws the icon of the supplied markers.\r \t * To be used in singleMarkerMode only.\r \t * @param layers Array(L.Marker)|Map(L.Marker) list of markers.\r \t * @private\r \t */\r \t_refreshSingleMarkerModeMarkers: function (layers) {\r \t\tvar id, layer;\r \r \t\tfor (id in layers) {\r \t\t\tlayer = layers[id];\r \r \t\t\t// Make sure we do not override markers that do not belong to THIS group.\r \t\t\tif (this.hasLayer(layer)) {\r \t\t\t\t// Need to re-create the icon first, then re-draw the marker.\r \t\t\t\tlayer.setIcon(this._overrideMarkerIcon(layer));\r \t\t\t}\r \t\t}\r \t}\r });\r \r L.Marker.include({\r \t/**\r \t * Updates the given options in the marker's icon and refreshes the marker.\r \t * @param options map object of icon options.\r \t * @param directlyRefreshClusters boolean (optional) true to trigger\r \t * MCG.refreshClustersOf() right away with this single marker.\r \t * @returns {L.Marker}\r \t */\r \trefreshIconOptions: function (options, directlyRefreshClusters) {\r \t\tvar icon = this.options.icon;\r \r \t\tL.setOptions(icon, options);\r \r \t\tthis.setIcon(icon);\r \r \t\t// Shortcut to refresh the associated MCG clusters right away.\r \t\t// To be used when refreshing a single marker.\r \t\t// Otherwise, better use MCG.refreshClusters() once at the end with\r \t\t// the list of modified markers.\r \t\tif (directlyRefreshClusters && this.__parent) {\r \t\t\tthis.__parent._group.refreshClusters(this);\r \t\t}\r \r \t\treturn this;\r \t}\r });\r "],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;AAIA,AAAO,IAAI,kBAAkB,GAAG,CAAC,CAAC,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC;;CAE5E,OAAO,EAAE;EACR,gBAAgB,EAAE,EAAE;EACpB,kBAAkB,EAAE,IAAI;EACxB,WAAW,EAA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