-
-
Save ix4/d7e60e5fdd7c79118a706ce57a47fbfa to your computer and use it in GitHub Desktop.
Tucson's many centers. (Click on a circle or navigate with the buttons to see each year's center.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "FeatureCollection", | |
| "features": [ | |
| { | |
| "type": "Feature", | |
| "id": 1877, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1877 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1878, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1878 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1879, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1879 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1880, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1880 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1881, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1881 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1882, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1882 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1883, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1883 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1884, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1884 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1885, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1885 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1886, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1886 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1887, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1887 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1888, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1888 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1889, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1889 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1890, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1890 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1891, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1891 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1892, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1892 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1893, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1893 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1894, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1894 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1895, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1895 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1896, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1896 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1897, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1897 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1898, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1898 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1899, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1899 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1900, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1900 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1901, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1901 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1902, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1902 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1903, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1903 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1904, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96920822605945, | |
| 32.22141715084916 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1904 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1905, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1905 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1906, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1906 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1907, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1907 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1908, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1908 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1909, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1909 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1910, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1910 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1911, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1911 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1912, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1912 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1913, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1913 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1914, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1914 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1915, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1915 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1916, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1916 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1917, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1917 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1918, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96926715770758, | |
| 32.221292189969084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1918 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1919, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9630630185677, | |
| 32.221632751652926 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1919 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1920, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96230876269517, | |
| 32.22201220206158 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1920 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1921, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96252879675224, | |
| 32.22239915443647 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1921 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1922, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96213681847055, | |
| 32.222641538498735 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1922 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1923, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96101865313726, | |
| 32.223221402098716 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1923 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1924, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96101865313726, | |
| 32.223221402098716 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1924 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1925, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96101865313726, | |
| 32.223221402098716 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1925 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1926, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96189570173566, | |
| 32.22330955105706 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1926 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1927, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96184880183294, | |
| 32.223358660185596 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1927 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1928, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96178081453965, | |
| 32.223392049723046 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1928 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1929, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96178081453965, | |
| 32.223392049723046 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1929 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1930, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1930 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1931, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1931 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1932, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1932 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1933, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1933 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1934, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1934 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1935, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1935 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1936, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1936 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1937, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96172376441761, | |
| 32.22340655685692 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1937 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1938, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96130255337421, | |
| 32.22492911894087 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1938 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1939, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96130255337421, | |
| 32.22492911894087 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1939 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1940, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96051984017824, | |
| 32.225300645610794 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1940 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1941, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.96051984017824, | |
| 32.225300645610794 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1941 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1942, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95844084878541, | |
| 32.224962994978654 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1942 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1943, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95835106674389, | |
| 32.22490725983439 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1943 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1944, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95835106674389, | |
| 32.22490725983439 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1944 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1945, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95817412524232, | |
| 32.225567500991595 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1945 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1946, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95756816427296, | |
| 32.226164282167545 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1946 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1947, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95663953183302, | |
| 32.226140896645525 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1947 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1948, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95622621979003, | |
| 32.22652373044634 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1948 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1949, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95622621979003, | |
| 32.22652373044634 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1949 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1950, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95622621979003, | |
| 32.22652373044634 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1950 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1951, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95622621979003, | |
| 32.22652373044634 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1951 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1952, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95542453650954, | |
| 32.22620514253451 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1952 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1953, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.95169613429044, | |
| 32.226396619751334 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1953 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1954, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94828476569343, | |
| 32.223705836917645 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1954 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1955, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94787030291332, | |
| 32.223003772819595 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1955 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1956, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93567120722413, | |
| 32.21920028603731 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1956 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1957, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93567120722413, | |
| 32.21920028603731 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1957 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1958, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93718821537377, | |
| 32.21817175428114 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1958 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1959, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.92667920409569, | |
| 32.22985424936471 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1959 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1960, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94434878407935, | |
| 32.21232994611879 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1960 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1961, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94424718984311, | |
| 32.21238017781876 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1961 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1962, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94424718984311, | |
| 32.21238017781876 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1962 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1963, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94427003324898, | |
| 32.21240951758745 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1963 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1964, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.94310810629332, | |
| 32.212269096621306 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1964 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1965, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93781909650872, | |
| 32.21240975646663 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1965 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1966, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93781909650872, | |
| 32.21240975646663 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1966 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1967, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93764570053266, | |
| 32.21239213310588 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1967 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1968, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93684696079514, | |
| 32.21232105043232 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1968 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1969, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9341107274484, | |
| 32.212375032463804 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1969 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1970, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93492556012909, | |
| 32.21248917012558 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1970 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1971, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93192333041816, | |
| 32.2123675481053 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1971 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1972, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.93149880158307, | |
| 32.21262410042065 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1972 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1973, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.92360037924256, | |
| 32.209373944428 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1973 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1974, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9231882138133, | |
| 32.209776102807545 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1974 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1975, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9225334987387, | |
| 32.209840243144306 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1975 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1976, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.92166976139362, | |
| 32.20968859942191 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1976 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1977, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9199112680703, | |
| 32.210232810194 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1977 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1978, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9183912523259, | |
| 32.21009054531308 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1978 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1979, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9210784612607, | |
| 32.21004896603645 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1979 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1980, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.92155095548432, | |
| 32.210510130278486 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1980 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1981, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.91997051256314, | |
| 32.21112298574852 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1981 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1982, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.92048084718657, | |
| 32.211926759934904 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1982 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1983, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.9252895021069, | |
| 32.2108858668917 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1983 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1984, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.91840909820323, | |
| 32.21178745486364 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1984 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1985, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.90575153417122, | |
| 32.202746136069806 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1985 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1986, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8986417563809, | |
| 32.19753321604228 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1986 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1987, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.89781266334992, | |
| 32.1975758901493 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1987 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1988, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.88994482903588, | |
| 32.192524111500695 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1988 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1989, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.89017976219623, | |
| 32.19286971536929 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1989 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1990, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.88963159219412, | |
| 32.193809949581855 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1990 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1991, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.88926232392855, | |
| 32.19361416003467 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1991 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1992, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8890701197769, | |
| 32.193991414891514 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1992 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1993, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8891281617657, | |
| 32.193870795808536 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1993 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1994, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.88920010193192, | |
| 32.19383329368779 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1994 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1995, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.88296326294979, | |
| 32.18225221445949 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1995 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1996, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87866554257371, | |
| 32.17698465051686 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1996 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1997, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87877761572942, | |
| 32.17747488055643 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1997 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1998, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87880904599366, | |
| 32.17747979842 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1998 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 1999, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87877723073845, | |
| 32.1769896031815 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 1999 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2000, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87857965120173, | |
| 32.17675607283585 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2000 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2001, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8767960568954, | |
| 32.15752386730557 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2001 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2002, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87744746133797, | |
| 32.156588241671066 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2002 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2003, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87744691067869, | |
| 32.156586058818604 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2003 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2004, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87745318217688, | |
| 32.15659973629413 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2004 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2005, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87732525781782, | |
| 32.15648051373951 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2005 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2006, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8771172174792, | |
| 32.156298906331095 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2006 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2007, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8771172174792, | |
| 32.156298906331095 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2007 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2008, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8771280036081, | |
| 32.15629689375621 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2008 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2009, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8778748270815, | |
| 32.15569473589331 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2009 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2010, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8778748270815, | |
| 32.15569473589331 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2010 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2011, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.8778748270815, | |
| 32.15569473589331 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2011 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2012, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87788290102084, | |
| 32.155730162370084 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2012 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2013, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87809855274358, | |
| 32.155477770196114 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2013 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2014, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87846050525337, | |
| 32.15422403220097 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2014 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2015, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87852000327544, | |
| 32.154362261356894 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2015 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2016, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87829140297337, | |
| 32.15456632320771 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2016 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2017, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87830518499486, | |
| 32.1544474804373 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2017 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2018, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87883453747479, | |
| 32.154124664734304 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2018 | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": 2019, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -110.87882493866977, | |
| 32.15410395888261 | |
| ] | |
| }, | |
| "properties": { | |
| "name": 2019 | |
| } | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
| <title></title> | |
| <script src='https://npmcdn.com/@turf/turf/turf.min.js'></script> | |
| <script src="https://d3js.org/queue.v1.min.js"></script> | |
| <script src='bundle.js'></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.min.js"></script> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" /> | |
| <script src="https://d3js.org/d3.v4.min.js"></script> | |
| <script src="https://d3js.org/topojson.v1.min.js"></script> | |
| <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
| <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
| <style> | |
| html, body { | |
| padding: 0px; | |
| margin: 0px; | |
| } | |
| .range{ | |
| height: 50px; | |
| } | |
| .tick line { | |
| stroke-dasharray: 2 2 ; | |
| stroke: #ccc; | |
| } | |
| .dot { | |
| height: .5em; | |
| width: .5em; | |
| background-color: #bbb; | |
| border-radius: 50%; | |
| display: inline-block; | |
| } | |
| .info { | |
| padding: 6px 8px; | |
| font: 14px/16px Arial, Helvetica, sans-serif; | |
| background: white; | |
| background: rgba(255,255,255,0.8); | |
| box-shadow: 0 0 15px rgba(0,0,0,0.2); | |
| border-radius: 5px; | |
| } | |
| .legend { | |
| line-height: 18px; | |
| color: #555; | |
| } | |
| .legend i { | |
| width: 18px; | |
| height: 18px; | |
| float: left; | |
| margin-right: 8px; | |
| opacity: 0.7; | |
| } | |
| .selectedCircle{ | |
| stroke: #0033ff; | |
| fill: #0033ff; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="map" style="width:100%; height: 500px;"></div> | |
| <script> | |
| !(function(){ | |
| "use strict"; | |
| var colorScale = d3.scaleLinear() | |
| .domain([1877, 2019]) | |
| .range(["#ffb2c1","#ff0033"]); | |
| var map; | |
| var i =2019; | |
| var g; | |
| var url = 'https://gist.githubusercontent.com/Alex-Devoid/5f6665782677129909bfc76569cf118d/raw/a55a828ffc6e892192eec23777caf0c29b5c7f62/Annexations.json'; | |
| var centroids = 'centroidCords1111.geojson'; | |
| var circleFeature = { | |
| "type": "FeatureCollection", | |
| "features": [] | |
| } | |
| queue() | |
| .defer(d3.json, url) | |
| .defer(d3.json, centroids) | |
| .await(main); | |
| function main(error, data, centroids) { | |
| var b = true; | |
| addLmaps(); | |
| var svg = d3.select("#map").select("svg"); | |
| var g = svg.append("g").attr("class", 'city'); | |
| var gCircles = svg.append("g").attr("class", 'circles'); | |
| var circle = L.geoJSON(centroids, { | |
| pointToLayer: function(geoJsonPoint, latlng) { | |
| return L.circle(latlng, {radius: 100, | |
| color: colorScale(geoJsonPoint.id), | |
| fillColor: colorScale(geoJsonPoint.id), | |
| fillOpacity: '.7', | |
| opacivty:'.5', | |
| className: 'a'+geoJsonPoint.id.toString() | |
| }).on('click',function(d){ | |
| b = false; | |
| console.log(b); | |
| update(data, d.target.feature.id, g, gCircles) | |
| }) | |
| } | |
| }).addTo(map) | |
| drawFeatures(data, i, g, gCircles); | |
| back.onclick = function(){ | |
| console.log("Called next"); | |
| i--; | |
| b = false; | |
| console.log(b); | |
| update(data, i, g, gCircles) | |
| } | |
| next.onclick = function(){ | |
| console.log("Called back"); | |
| i++ | |
| b = false; | |
| console.log(b); | |
| update(data, i, g, gCircles) | |
| } | |
| } | |
| function addLmaps() { | |
| map = L.map('map').setView([32.15410395888261, -110.87882493866977], 11); | |
| L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { | |
| attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | |
| }).addTo(map); | |
| L.svg().addTo(map); | |
| map.doubleClickZoom.disable(); | |
| var legend = L.control({position: 'bottomleft'}); | |
| legend.onAdd = function (map) { | |
| var div = L.DomUtil.create('div', 'info legend'); | |
| div.innerHTML = | |
| '<p ><i style="background:'+"red" + '"></i>' + "Yearly Centroids" + '</p> <br>'+ | |
| '<p><i style="background:'+"blue" + '"></i> <p id="changeYear">' + '</p></p> <br>'+ | |
| '<p>' + 'Change year' + '</p> <br>'+ | |
| '<button type="button" id="back" aria-label="Close">Back</button>'+ | |
| '<button type="button" id="next" aria-label="Close">Next</button>' | |
| ; | |
| return div; | |
| }; | |
| legend.addTo(map); | |
| } | |
| function projectPoint(x, y) { | |
| var point = map.latLngToLayerPoint(new L.LatLng(y, x)); | |
| this.stream.point(point.x, point.y); | |
| } | |
| function drawFeatures(az, date, g, gCircles) { | |
| update(az,date, g, gCircles) | |
| } | |
| function update(az,date,g, gCircles){ | |
| console.log(date); | |
| d3.select("#changeYear") | |
| .text(date) | |
| var selectedCircle1 = d3.selectAll(".leaflet-interactive") | |
| selectedCircle1.classed("selectedCircle", false); | |
| selectedCircle1.filter(`.a${date.toString()}`) | |
| .raise().classed("selectedCircle", true); | |
| g.selectAll("*").remove(); | |
| // gCircles.selectAll("*").remove(); | |
| var transform = d3.geoTransform({point: projectPoint}); | |
| var path = d3.geoPath().projection(transform); | |
| var selected = d3.set([ | |
| 'TUC' | |
| ]); | |
| var mergeTucson = topojson.merge(az, az.objects.Annexations.geometries.filter(function(d) { | |
| var yearBounds = new Date('') | |
| yearBounds.setFullYear(date) | |
| if (new Date(d.properties.EFF_DATE).getFullYear() <= yearBounds.getFullYear() ) { | |
| return selected.has(d.properties.CITY_CD) | |
| } | |
| })); | |
| console.log(mergeTucson); | |
| var mergeCentroid = path.centroid(mergeTucson); | |
| var latLngCentroid = map.layerPointToLatLng(mergeCentroid); | |
| /////////// | |
| var latLngCentroid1 = { | |
| "type": "Feature", | |
| "id": i, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [latLngCentroid.lng, latLngCentroid.lat] | |
| }, | |
| "properties": { | |
| "year": i | |
| } | |
| } | |
| circleFeature.features.push(latLngCentroid1) | |
| var featureElement = g.selectAll(".city") | |
| .data([mergeTucson]).enter().append("path") | |
| .attr("fill", "grey") | |
| .attr("fill-opacity", 0.5) | |
| // .attr("stroke", "#000ffd") | |
| ; | |
| map.on("moveend", update); | |
| update(); | |
| function update() { | |
| featureElement.attr("d", path); | |
| // points.attr("d", path); | |
| } | |
| } | |
| }()); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment