Skip to content

Instantly share code, notes, and snippets.

@mpmckenna8
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpmckenna8/91cb9a5bc530bca95fc8 to your computer and use it in GitHub Desktop.
Save mpmckenna8/91cb9a5bc530bca95fc8 to your computer and use it in GitHub Desktop.
World Cup Game Towns d3

This map shows the approximate location of the cities in which the games of the 2014 World Cup hosted by Brazil will be played.

To see the name of the city click on one of the icons on the map.

The map data is all from Natural Earth and the icons from the Noun Project.

It was made with the intent of showing and learning how to do a few different simple geo d3.js things I couldn't find good examples of like:

-adding icons in png and svg. -adding another geojon layer on my topojson jam. -Some other stuff I can't think of.. let me know if it helped you in some way

Add some attribution for noun project icons.

Creative Commons – Attribution (CC BY 3.0)

Soccer Ball designed by Hernan D. Schlosman from the Noun Project

World Cup trophy by Iain Hector from The Noun Project

http://thenounproject.com/term/trophy/51440/

http://thenounproject.com/term/soccer-ball/10684/ Designed by Mark Wehrhahn also might have been used

http://creativecommons.org/licenses/by/3.0/us/legalcode

Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Brahmaputra", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 82.400479770846971, 30.411477362585146 ], [ 82.722734002619092, 30.365046088170899 ], [ 83.76101688022743, 29.833321438103667 ], [ 84.066734653666146, 29.613283189404868 ], [ 84.379067010438234, 29.494504909781995 ], [ 84.707212355491635, 29.29635163015881 ], [ 85.408668247421502, 29.274389146434771 ], [ 87.660210402378453, 29.151528428660839 ], [ 87.788729689488321, 29.265604152945144 ], [ 87.984118279983903, 29.34203359630483 ], [ 88.630797153684398, 29.350663560497566 ], [ 91.037988722704455, 29.316505438752642 ], [ 92.095495233125348, 29.25340851492426 ], [ 93.250050083390391, 29.069802150991237 ], [ 93.607495965553284, 29.108585313426289 ], [ 94.356029087301067, 29.309529120393236 ], [ 94.820393507875821, 29.542150580355113 ], [ 95.150605910220918, 29.810118720004624 ], [ 95.265430942773435, 29.828541368116674 ], [ 95.336020949284148, 29.740717271436637 ], [ 95.372607863346786, 29.595739040641774 ], [ 95.31690066933615, 29.41768789318013 ], [ 94.876462436912504, 28.967947902943962 ], [ 94.870829705792715, 28.831961371367896 ], [ 95.043532342512151, 28.511231594348374 ], [ 95.087922397850861, 28.217244371039911 ], [ 95.396482375065631, 28.002916368109368 ], [ 95.382839796940573, 27.90434357351262 ], [ 95.289925571679788, 27.787864895126731 ], [ 94.831503940818578, 27.464163723250437 ], [ 94.395199822978299, 27.042406521100318 ], [ 93.751621535215321, 26.732037868755327 ], [ 92.677888625054749, 26.555123602804102 ], [ 92.322251418022091, 26.464431464131863 ], [ 91.68342736202996, 26.214860134378256 ], [ 91.250378859424046, 26.183208319599487 ], [ 90.606077101608975, 26.180831203714064 ], [ 90.334052362024551, 26.13476166432585 ], [ 90.112360467492408, 26.02952260996345 ], [ 89.924981724002095, 25.873795681251892 ], [ 89.788039178428619, 25.632105007422794 ], [ 89.612649367230006, 24.948374131769029 ], [ 89.71419355668354, 24.584623724866532 ], [ 89.744424269574267, 23.858673204030282 ], [ 90.005700311241981, 23.659021307870631 ], [ 90.225686883508502, 23.418415839119675 ], [ 90.387279087285179, 23.119829413337229 ], [ 90.507530145228372, 22.780237738531184 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Mekong", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 94.084004347716643, 33.155857652309663 ], [ 94.447703078186834, 33.163299058559701 ], [ 94.9414197123034, 33.089272569301585 ], [ 95.840434604885132, 32.632272040328402 ], [ 96.239324985746094, 32.525870266239437 ], [ 96.941297641998887, 31.96554271089866 ], [ 97.165159946687282, 31.488517564412376 ], [ 97.256782261140785, 31.096474310830075 ], [ 97.846255324294191, 30.277738755813786 ], [ 98.284574822993847, 29.66689748790769 ], [ 98.623985630286882, 28.963116156524663 ], [ 99.028095330809322, 27.516279405216792 ], [ 99.15015506388275, 27.027859605410157 ], [ 99.172582635497406, 26.02644786224208 ], [ 99.240278761799772, 25.668252671810961 ], [ 99.391277296956616, 25.344758205663837 ], [ 99.666816033936897, 25.013563951105226 ], [ 99.916568231203513, 24.833833319594092 ], [ 100.300317417402965, 24.721462917575408 ], [ 100.421291945398252, 24.647255560804282 ], [ 100.48733442586726, 24.525945135999109 ], [ 100.519942254643411, 24.377917995699036 ], [ 100.475552199304701, 24.163977566010672 ], [ 100.138518507897118, 23.473115342700623 ], [ 100.122395461022052, 23.311135565681738 ], [ 100.171488071699315, 23.106574408454364 ], [ 100.983738234462976, 21.844971828696714 ], [ 101.018258091233946, 21.797713731365789 ], [ 101.150032993578236, 21.849984442629022 ], [ 101.18000532430753, 21.436572984294031 ], [ 100.329101190189533, 20.786121731036232 ], [ 100.115987583417848, 20.41784963630819 ], [ 100.548881056726884, 20.109237982661128 ], [ 100.559087152104524, 20.002371120681531 ], [ 100.569293247482165, 19.89553009691808 ], [ 100.597301873784346, 19.893049628168072 ], [ 101.114789666755172, 19.852147732009058 ], [ 101.471563755298263, 19.870131130446623 ], [ 102.184801873790718, 20.048905747960362 ], [ 101.883734979258264, 19.555189113843809 ], [ 101.764827508554646, 18.721777452056614 ], [ 101.492286004647326, 18.160028794827809 ], [ 101.485981479907707, 17.969704494696842 ], [ 101.563651157642397, 17.820514634670189 ], [ 101.585975376392469, 17.810463568589427 ], [ 102.113591750092496, 18.109101670804165 ], [ 102.413004998791621, 17.932781683824288 ], [ 102.998705682387708, 17.961694647691601 ], [ 103.20019209189374, 18.309632066312773 ], [ 103.956476678485302, 18.240954087796879 ], [ 104.716947056092494, 17.428858954330082 ], [ 104.779320509868796, 16.441864935771449 ], [ 105.589038527450157, 15.570316066952856 ], [ 105.5760677429449, 15.324646307837298 ], [ 105.781688267034269, 15.120524400284395 ], [ 105.891035597763874, 14.771088365126744 ], [ 105.86969323122733, 14.217840481009958 ], [ 105.964932895941246, 13.857397365774133 ], [ 105.949326613389104, 13.350089829964816 ], [ 105.972270949326685, 12.659641018113092 ], [ 105.929896274847351, 12.397073065638082 ], [ 105.810161981227083, 12.286769720911082 ], [ 105.650688511174366, 12.233956407108792 ], [ 105.368121779402401, 11.970484117068665 ], [ 105.049846632916768, 11.804602769411758 ], [ 104.951144647239289, 11.590920721884856 ], [ 105.11258182171909, 10.93261465091868 ], [ 105.207976515729882, 10.706866156451639 ], [ 105.5666109558355, 10.267073879431649 ], [ 106.361084425890738, 9.433791408725185 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Ob", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 90.325370721399509, 47.650166734398894 ], [ 90.200520460982347, 47.408010972679179 ], [ 89.733417189496095, 47.162496242860485 ], [ 89.396900262411435, 47.069142767925229 ], [ 89.048136020873585, 47.087436224956548 ], [ 86.943561639354726, 47.660114447615086 ], [ 86.400132277373388, 47.856562404972649 ], [ 85.267074822941794, 47.994383449895068 ], [ 84.356846144552719, 47.732125556013813 ], [ 83.835637648456895, 48.035517889999397 ], [ 83.619733514341448, 48.193983669622426 ], [ 83.551158888690139, 48.313123684271346 ], [ 83.491575962257599, 48.778573309924255 ], [ 83.619010044289354, 48.896498928414303 ], [ 83.868400506529952, 49.025354112334085 ], [ 84.011647576843018, 49.175913397816458 ], [ 83.882766554707075, 49.346238918650471 ], [ 83.363728468767505, 49.643843492219375 ], [ 82.484815708347327, 50.060407212924162 ], [ 82.140030552095936, 50.182156887403821 ], [ 81.781086053396592, 50.251868394565562 ], [ 80.427783644537016, 50.385193589878597 ], [ 78.545314569008639, 50.767289130244706 ], [ 77.242861769524268, 51.869030666707445 ], [ 76.998845656242054, 52.130100002645989 ], [ 76.606104770823805, 52.692520453494595 ], [ 76.327878859364347, 52.901784166060537 ], [ 75.589525994778057, 53.29648875590587 ], [ 75.309336378891544, 53.496321519578544 ], [ 75.117823520817836, 53.687886054084515 ], [ 75.02191206248412, 53.847902126676303 ], [ 74.993593377588184, 53.98559398051799 ], [ 74.519927199200879, 54.375285956431014 ], [ 74.396175062969917, 54.425050360728079 ], [ 74.123685235494861, 54.534526882538415 ], [ 73.85061404815653, 54.644003404348751 ], [ 73.725091994119566, 54.693767808645831 ], [ 73.63321129750463, 54.741348883678569 ], [ 73.465895928851609, 54.829715582897677 ], [ 73.376121046852546, 54.877296657930415 ], [ 73.081772088518051, 55.229549058647976 ], [ 73.115155063778587, 55.30603017843994 ], [ 73.334056430966967, 55.445763251357164 ], [ 73.655173781228655, 55.585496324274388 ], [ 74.241081170553912, 55.761247870499062 ], [ 74.471868117169436, 55.874884345108882 ], [ 74.624520298159638, 56.027278143937622 ], [ 74.710303175764125, 56.203339748756036 ], [ 74.702655063784931, 56.412345079160517 ], [ 74.629842970685701, 56.644346421934884 ], [ 74.47806928904447, 56.859475409565945 ], [ 74.279941847637417, 57.027785549540582 ], [ 73.690210402322549, 57.255471910218574 ], [ 72.901059604793346, 57.446312974672466 ], [ 71.47432498564703, 57.65875478782435 ], [ 70.289022658168335, 57.946230780664052 ], [ 68.839860467407306, 58.033589789453458 ], [ 68.680606622191846, 58.068497219466622 ], [ 68.384500665159408, 58.133105678939529 ], [ 68.224032423785076, 58.16727671979254 ], [ 68.245387709429679, 58.249416408920467 ], [ 68.268112420530031, 58.332382920965074 ], [ 68.503705275348693, 58.527073879624709 ], [ 68.601425408812617, 58.746078599677659 ], [ 68.793144972615465, 58.984074408597891 ], [ 68.968328078084909, 59.404746405669883 ], [ 69.129558546835568, 59.550422268300679 ], [ 69.334300571575966, 59.649537665436483 ], [ 69.782748651004852, 59.872624823640507 ], [ 69.804556105431999, 59.996028143953495 ], [ 69.767659132775606, 60.107132473381029 ], [ 69.837318963505055, 60.256864935946723 ], [ 69.804091017541396, 60.515014553460787 ], [ 69.725077752567103, 60.658339138422292 ], [ 69.497494744753709, 60.813084214920309 ], [ 69.398069289024136, 60.861724656815028 ], [ 69.17914208361961, 60.968733628983429 ], [ 68.959814385864831, 61.075703843827611 ], [ 68.859135776652181, 61.124228013749672 ], [ 68.821786635213243, 61.106709703202725 ], [ 68.786116977823781, 61.089346421952669 ], [ 68.40846561063475, 61.20691030541667 ], [ 68.225892775347575, 61.447670803464518 ], [ 67.645101352819211, 61.730470079181785 ], [ 67.232826775994653, 62.068123887776892 ], [ 66.280740187449169, 62.44683462182789 ], [ 65.688734979113462, 62.66237702091729 ], [ 65.409940626898816, 62.84727529565761 ], [ 65.303228794216096, 63.075065009200202 ], [ 65.427252231716579, 63.306523749435499 ], [ 65.688993361274925, 63.587333482509521 ], [ 65.833325636666132, 64.015162665453957 ], [ 65.918385044218553, 64.115053209074134 ], [ 65.926033156197747, 64.224348863371446 ], [ 65.582281528592205, 64.707368476003595 ], [ 65.510657993435672, 64.965647284598376 ], [ 65.411025831976929, 65.040164699963256 ], [ 65.368392775336133, 65.16746959091428 ], [ 65.766301303983568, 65.802676296645998 ], [ 65.8353926939578, 65.999796047623349 ], [ 65.839268426379704, 66.157176622168251 ], [ 66.341408318959822, 66.443179836687634 ], [ 66.677305128857, 66.566531480568315 ], [ 67.033097365186535, 66.605082099058066 ], [ 68.192871535113056, 66.575755723732428 ], [ 69.013493279908005, 66.788352566181189 ], [ 69.930439894495009, 66.74683055283468 ], [ 70.840100132128867, 66.653037828224925 ], [ 71.469570753876184, 66.663476467547881 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Peace", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ -124.835630459474231, 56.756923529682723 ], [ -124.200450399402911, 56.243492336646824 ], [ -123.888738159818331, 56.088824774797246 ], [ -123.54353959210863, 56.04471893983613 ], [ -122.730075033186097, 56.098539944068108 ], [ -122.221708130514799, 56.021232001359465 ], [ -121.973635417297658, 56.019785061255305 ], [ -121.357135580055598, 56.189748847063271 ], [ -120.244593669243869, 56.151973375057906 ], [ -119.509444743459667, 56.251450507219772 ], [ -119.188714158995907, 56.244370835995781 ], [ -118.670347866676124, 56.016219387427157 ], [ -118.346233283341491, 55.981311957413993 ], [ -117.779136115370477, 56.054098212297106 ], [ -117.506129523572511, 56.155358181373032 ], [ -117.200360073701489, 56.41231924094437 ], [ -117.176898973440984, 56.545024319069896 ], [ -117.258211839652247, 56.854876207091976 ], [ -117.132276374156945, 57.281025905986908 ], [ -117.107523363089143, 57.654155585350381 ], [ -117.037010871226883, 57.929229234440015 ], [ -116.854153815562086, 58.069582424544748 ], [ -116.676231859181172, 58.12740835227936 ], [ -116.542105679167605, 58.288948879623746 ], [ -116.323152635546947, 58.370959377670957 ], [ -115.988470221808626, 58.418708401108645 ], [ -114.972511562950388, 58.409716701889863 ], [ -114.613231167441143, 58.475862535223456 ], [ -114.488959037110249, 58.512165228908501 ], [ -114.21144044681779, 58.590480862046832 ], [ -113.923622097614171, 58.664959520087493 ], [ -113.768450690549741, 58.689751288479528 ], [ -113.583487820269056, 58.72357351341455 ], [ -113.297529822627936, 58.807844855374526 ], [ -113.14918616418008, 58.85532257754268 ], [ -112.64761471235515, 59.097607530343126 ], [ -112.322673306103852, 59.12590037702293 ], [ -112.065040452912712, 59.083577378975889 ], [ -111.926470099722053, 58.973454901761912 ], [ -111.410765143665316, 59.005055040108388 ], [ -111.443838060332112, 59.536624660878743 ], [ -111.569024217559175, 59.84794932722113 ], [ -112.383134731885349, 60.221544094475234 ], [ -112.493205532667034, 60.314613349032896 ], [ -112.483697069125327, 60.450522365960524 ], [ -112.571340298292341, 60.540594387445253 ], [ -113.160115729609814, 60.853236802811097 ], [ -113.282459683060821, 61.173811550533728 ], [ -113.459658169389655, 61.242670396562644 ], [ -113.581979514401539, 61.24420777042333 ], [ -113.70401017948177, 61.245874335364746 ], [ -113.83890020176014, 61.256002916093948 ], [ -114.136034842772887, 61.278107510006805 ], [ -114.433242153768546, 61.300186265703502 ], [ -114.568350185995655, 61.310211493568133 ], [ -116.334340583138129, 61.089398098384947 ], [ -116.698633592579696, 61.121385809973617 ], [ -117.668109300591382, 61.30783437768271 ], [ -118.154978807429274, 61.421470852292529 ], [ -119.070633511208968, 61.301323147213921 ], [ -119.768369507458104, 61.33413768171927 ], [ -120.317819173801453, 61.463354600665099 ], [ -120.575038615534254, 61.569678860105626 ], [ -120.813396159480519, 61.780957953530944 ], [ -121.589162761046111, 61.973685207763495 ], [ -123.024217285791437, 62.242299302816647 ], [ -123.254668335597046, 62.348907782634782 ], [ -123.29611283429513, 62.509931545656258 ], [ -123.228933472315703, 62.866679795983217 ], [ -123.320504110336898, 63.057339992924071 ], [ -123.954418905261306, 63.741019192145572 ], [ -124.336488607411269, 64.002760321703889 ], [ -124.489347494130641, 64.223160305428749 ], [ -124.761682292308805, 64.423871568450366 ], [ -125.025154582348918, 64.692020575612915 ], [ -125.300228231438567, 64.805967108816489 ], [ -126.181621460608753, 65.04910472274976 ], [ -126.929327759439872, 65.291389675550207 ], [ -128.030190796553654, 65.608347073012411 ], [ -128.671417806647355, 65.722758694106616 ], [ -128.908560954434762, 65.860553900812889 ], [ -128.983362590177251, 66.029665025488057 ], [ -128.842079224291268, 66.322515367286101 ], [ -129.025608073575853, 66.455478827573089 ], [ -129.770523845063224, 66.731611843524703 ], [ -130.043711304374199, 66.88087921819978 ], [ -130.345036581068115, 67.213778795024027 ], [ -130.532828736016796, 67.305840359152015 ], [ -130.759404053400516, 67.353666897238142 ], [ -131.208678955746052, 67.454694322368752 ], [ -132.652828532574745, 67.293308824321244 ], [ -133.01577633988822, 67.292740383566027 ], [ -133.37255042843131, 67.359351304790252 ], [ -133.829731824917502, 67.520581773540883 ], [ -134.190071587288742, 67.741524359804785 ], [ -134.399567843799986, 68.05264232041803 ], [ -134.407190117563061, 68.182091783309161 ], [ -134.159685845101137, 68.449672349716494 ], [ -134.244228488330634, 68.706194159613332 ], [ -134.83589779985644, 68.963775336372194 ], [ -135.313413872449502, 69.374990546334757 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Danube", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 8.219788038779399, 48.046809190455178 ], [ 8.553359409223447, 47.980818386418449 ], [ 9.41408206547689, 48.138353990260228 ], [ 10.71989383306024, 48.64871043557477 ], [ 11.683555942439085, 48.794127916044104 ], [ 12.032991977596737, 49.027498684274207 ], [ 12.155762261614143, 49.000756130563161 ], [ 12.383784519102051, 48.951818549182747 ], [ 12.506554803119457, 48.927556464221723 ], [ 12.659697910216437, 48.875104885445467 ], [ 12.996602410543289, 48.756094061877278 ], [ 13.33350691087017, 48.636385606473155 ], [ 13.486650017967122, 48.581841132189084 ], [ 14.701666294013677, 48.234058742864775 ], [ 14.995601840889833, 48.213052273138132 ], [ 15.634425896881964, 48.374618638698678 ], [ 15.936733025789437, 48.353482977891304 ], [ 16.87807091641821, 48.171788641953071 ], [ 17.48847293464982, 47.867466132186223 ], [ 17.857132602620027, 47.758428860050373 ], [ 18.696512892336926, 47.880953681014404 ], [ 18.909884881270074, 47.806100368839623 ], [ 19.025691766036175, 47.668201809268766 ], [ 18.933242628665994, 47.175932115256373 ], [ 18.9523112321817, 46.777765204447491 ], [ 18.882289666426232, 46.279656073586125 ], [ 18.764209018639292, 46.0343480494966 ], [ 18.780512933027381, 45.965114549333563 ], [ 18.810976189863425, 45.901436265641905 ], [ 18.887224765710101, 45.806248277360268 ], [ 19.009090712162418, 45.621660061213703 ], [ 19.072768995854062, 45.52151113543205 ], [ 19.155205824467686, 45.448001410496857 ], [ 19.308633151942246, 45.313461819024965 ], [ 19.39223270028242, 45.246825059584594 ], [ 19.512974684332391, 45.232652798028553 ], [ 19.776899143155049, 45.191427924167712 ], [ 20.040487705167834, 45.148278103203992 ], [ 20.160247837004249, 45.128305162123183 ], [ 20.541981642344325, 44.801761786470834 ], [ 20.767807651459805, 44.744194240897698 ], [ 21.360071241956973, 44.826669826835527 ], [ 21.562022739353608, 44.7689472519655 ], [ 22.145087924902811, 44.478422349620587 ], [ 22.459022251075936, 44.702517198254299 ], [ 22.705725538837356, 44.578002834647023 ], [ 22.474008416440597, 44.409227606781769 ], [ 22.657149692482989, 44.234923000661283 ], [ 22.944832391051847, 43.82378530534713 ], [ 23.332302280376325, 43.897010809904714 ], [ 24.100679152124172, 43.741051337247853 ], [ 25.569271681426926, 43.688444729174719 ], [ 26.065158725699746, 43.943493760751267 ], [ 27.242399529740908, 44.175986029632398 ], [ 27.28505842459785, 44.153041693694803 ], [ 27.301517368282816, 44.133378811207749 ], [ 27.384419284787043, 44.16655508073913 ], [ 27.600853102333502, 44.235233059255037 ], [ 27.823836907672927, 44.303084214854266 ], [ 27.926388787556164, 44.333780015635639 ], [ 28.05278934094207, 44.409408474294793 ], [ 28.044107700317028, 44.495837307302949 ], [ 27.876676059691363, 44.74411672624926 ], [ 27.988193800577221, 45.218480536472512 ], [ 28.046730279255854, 45.279316616388115 ], [ 28.15744703544118, 45.395911566746648 ], [ 28.223011508911497, 45.469369615249548 ], [ 28.346117689738804, 45.434914354018943 ], [ 28.563701307903756, 45.351095180841526 ], [ 28.679779493939378, 45.304030870131697 ], [ 29.149724969201657, 45.464925442072456 ], [ 29.603289015427436, 45.293308010431133 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Paran", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ -55.075289069221199, -14.319384047099 ], [ -55.432450731006483, -14.357366224833527 ], [ -56.120574103405062, -14.689128920147354 ], [ -56.334669562390303, -14.858575941632409 ], [ -56.393684048067612, -15.068382256737415 ], [ -56.087216966360657, -15.843322035386343 ], [ -55.9346939764512, -16.078863213772706 ], [ -55.927330084849601, -16.215340671455543 ], [ -55.999134487519171, -16.336883640206025 ], [ -56.429392462781308, -16.652471612212501 ], [ -56.54054846864112, -16.808224379140206 ], [ -56.589744432182982, -17.067174981354782 ], [ -56.980159878148086, -17.594739678622517 ], [ -57.175005866104598, -17.735196221591828 ], [ -57.318227098201532, -17.92546884529051 ], [ -57.442715623592647, -18.46755462003226 ], [ -57.599760301327649, -18.8793641089662 ], [ -57.337192348852639, -19.210920098550858 ], [ -57.386956753149718, -19.393492933838047 ], [ -57.456513231014583, -19.484314263591017 ], [ -57.610399186825745, -19.683933861980485 ], [ -57.766416795468942, -19.883078683148277 ], [ -57.842381150937996, -19.972475681236197 ], [ -57.930521765765818, -20.021981703371814 ], [ -58.010097011941269, -20.073348077069937 ], [ -58.166392381408045, -20.176700941653678 ], [ -57.8706739976178, -20.732687676681948 ], [ -57.888786587136096, -21.102639255459465 ], [ -57.937155727761294, -22.090175876557169 ], [ -57.974672817605196, -22.162212823172041 ], [ -57.832355923073379, -22.550147800387137 ], [ -57.829281175352008, -22.819795424086131 ], [ -57.342101609920377, -23.702738946225075 ], [ -57.201102464411989, -24.043079929299353 ], [ -57.121779140843969, -24.334741713154692 ], [ -57.130383266820573, -24.639529310812158 ], [ -57.268462693904453, -24.97160206471974 ], [ -57.573146938697334, -25.258457940371926 ], [ -57.630507778541315, -25.421755466414247 ], [ -57.628660346086889, -25.510535577091687 ], [ -57.629732632056943, -25.601176039331634 ], [ -57.704314642962188, -25.714818973495497 ], [ -57.887740139382188, -25.997011051133342 ], [ -58.125425889708666, -26.363377577420614 ], [ -58.362782202779272, -26.729537397978724 ], [ -58.545232306539774, -27.011109358429067 ], [ -58.618173590719749, -27.123718763947096 ], [ -58.850226609926409, -27.610769138298004 ], [ -58.893066372296374, -27.964752699497339 ], [ -59.073804694237197, -28.348553562129077 ], [ -59.227361212792502, -29.058329359657961 ], [ -59.396239793522341, -29.196822198200181 ], [ -59.522640346908261, -29.403011163044759 ], [ -59.588967047754878, -29.70495655692617 ], [ -59.654286058171806, -30.717246189091682 ], [ -60.063511725491153, -31.269615573859518 ], [ -60.380443284737211, -31.531666762011604 ], [ -60.591179775623473, -31.781573988575104 ], [ -60.696212124256704, -32.051118259409513 ], [ -60.726494513579738, -32.334563490530442 ], [ -60.712490200428647, -32.557030531546957 ], [ -60.641590135324194, -32.784613539360365 ], [ -60.49017818870901, -33.019431247694641 ], [ -60.248952602770544, -33.243396905247621 ], [ -59.868510708237764, -33.498316745743431 ], [ -59.200437791568433, -33.812354424781148 ], [ -58.668842332581931, -33.993583672828748 ], [ -58.429477098205965, -33.990948174781863 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Peace", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ -113.823382738076006, 58.7102151556671 ], [ -113.713518643023477, 58.669261583075794 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 2, "featurecla": "River", "name": "Congo", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 26.249281853955694, -11.742900485890779 ], [ 25.938293084423208, -11.653500258025836 ], [ 25.639603305776177, -11.18577686935209 ], [ 25.711175164500418, -10.742548109584689 ], [ 25.467107374785883, -10.375180352421765 ], [ 25.448193800567083, -10.092923679243547 ], [ 25.501937290150607, -9.455029799032665 ], [ 25.646734653432446, -9.248272393432877 ], [ 25.923203566193962, -9.099702650593741 ], [ 26.081436801871689, -8.766234633014285 ], [ 26.441311476352297, -8.272001234574809 ], [ 26.73204308442638, -8.161723728063947 ], [ 26.857565138463343, -8.046588636917654 ], [ 26.919370151484401, -7.916674086135885 ], [ 26.888260939244702, -7.642375583530622 ], [ 27.009390496536867, -6.987428480663418 ], [ 27.017090284948353, -6.622179457224455 ], [ 26.930480584427158, -5.61025156008499 ], [ 26.981898634557581, -5.252237237166895 ], [ 26.946396925573055, -5.008634535343006 ], [ 26.81245161307254, -4.746738376487791 ], [ 26.359611036898826, -4.334722181824681 ], [ 26.136627231559402, -4.068278496927782 ], [ 26.014464145621417, -3.742975355650444 ], [ 25.992850477815352, -3.587061099871825 ], [ 25.945321079214892, -3.244330081804044 ], [ 25.897778761506373, -2.902309614680277 ], [ 25.876178012808367, -2.748514092625626 ], [ 25.868478224396881, -2.604982801934952 ], [ 25.850133090933269, -2.259480635185518 ], [ 25.828222283641509, -1.846359856782179 ], [ 25.809877150177897, -1.499966271575715 ], [ 25.802177361766411, -1.35464568441693 ], [ 25.681564568797171, -1.012340996915555 ], [ 25.552425164499766, -0.778815199388589 ], [ 25.480181512155752, -0.539036553554297 ], [ 25.513409458119412, -0.054414971521098 ], [ 25.409436476348162, 0.345663967282576 ], [ 24.933599887804604, 0.53857208902815 ], [ 24.292295363062436, 0.781709702961408 ], [ 22.734871046649971, 1.950036322432226 ], [ 22.347091098731738, 2.129379380701181 ], [ 21.712607863052114, 2.141032416182995 ], [ 20.267528110442186, 1.923448798018057 ], [ 19.907653435961578, 1.842885240075034 ], [ 19.142842238041851, 1.573599351402081 ], [ 18.712480909915115, 1.19010854736409 ], [ 18.487585076580899, 0.911365871581722 ], [ 18.335863071371961, 0.586992906085626 ], [ 18.19923058439224, 0.099787502437849 ], [ 17.59957726407734, -0.649055677903689 ], [ 17.523716261472856, -0.743830254726987 ], [ 16.865306837642123, -1.225816338713287 ], [ 16.407091912510054, -1.740927015798682 ], [ 15.972803175529151, -2.712392266453612 ], [ 16.006289503654301, -3.535132744972529 ], [ 15.753540073314753, -3.855164890156097 ], [ 15.170991652088446, -4.343507175314301 ], [ 14.582603794013181, -4.97023894615014 ], [ 14.195909051173089, -4.971840915551191 ], [ 14.074624464584076, -5.020313409040966 ], [ 13.826422560286204, -5.257714938989835 ], [ 13.60994998541554, -5.363393243026714 ], [ 13.469596795310821, -5.759596449408505 ], [ 13.428152296612723, -5.776442966335658 ], [ 13.375597364971895, -5.864241224799549 ], [ 13.024869419006961, -5.984388929878158 ], [ 12.735171339578699, -5.965682061388499 ], [ 12.322431674863509, -6.10009246177966 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Lena", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 107.980107049595148, 54.004145819710772 ], [ 108.043359002720393, 54.102046820687733 ], [ 108.040671828241216, 54.185013332732339 ], [ 107.782909783969359, 54.293792222706728 ], [ 107.181706170685686, 53.921360175179203 ], [ 107.023162876414233, 53.871130682991492 ], [ 106.927148065215931, 53.884334011442064 ], [ 106.107353143337662, 53.885445054736337 ], [ 105.665416294377536, 54.021664130257719 ], [ 105.287764927188533, 54.385001125701891 ], [ 105.155266554792178, 54.880939846406989 ], [ 105.169735955833914, 55.053590806694146 ], [ 105.72319054567987, 55.844756985082725 ], [ 105.785719028753022, 56.229126288469672 ], [ 106.24641442263507, 56.485260525124346 ], [ 106.188020054145255, 56.564790554421535 ], [ 105.98229617719133, 56.651167710997413 ], [ 105.86189008995126, 56.760721747456174 ], [ 106.011028273545605, 56.896940822977555 ], [ 106.325014276151023, 57.010396430074366 ], [ 106.807258742298785, 57.111294664124244 ], [ 107.032878045685095, 57.270845648825414 ], [ 107.393476190217797, 57.300921332419279 ], [ 107.697230259229428, 57.438303127667226 ], [ 108.081547886184097, 57.760298977277884 ], [ 108.608905877722663, 58.045320339583711 ], [ 108.925062290484334, 58.165132147852418 ], [ 109.48569990441888, 58.28305776634248 ], [ 110.008820428509495, 58.563324896877447 ], [ 111.101260207159726, 58.783053086982505 ], [ 111.833876987761613, 59.14274689395009 ], [ 112.349969517060543, 59.300670071034048 ], [ 112.642768182426295, 59.544531155019399 ], [ 113.510828892065177, 59.928073635489682 ], [ 114.430927769021991, 60.493052069736734 ], [ 114.944436476706329, 60.732417304112687 ], [ 115.471794468244894, 60.744535427485133 ], [ 116.151804640773662, 60.607153632237186 ], [ 116.862355584786911, 60.355282701246594 ], [ 117.468210076976845, 60.013184719474395 ], [ 117.801626418124016, 59.880427964916578 ], [ 118.317408888829192, 59.800536200593342 ], [ 118.660075311356621, 59.877379055411353 ], [ 119.362978143390677, 60.164286607495839 ], [ 119.496690911945905, 60.189168809644372 ], [ 119.815612013835192, 60.248583787671961 ], [ 120.19651899625859, 60.319625962965205 ], [ 120.516086053551533, 60.379428514234974 ], [ 120.651116571130217, 60.405098781975965 ], [ 120.793562656742751, 60.453403327060798 ], [ 121.055226271652657, 60.541434129470005 ], [ 121.195837843918838, 60.588679307692843 ], [ 123.551146274917869, 60.591650702549629 ], [ 124.994882440288222, 60.75763540307112 ], [ 126.324206984564341, 61.055705064530656 ], [ 128.476116978062578, 61.289075832760759 ], [ 129.215606724159272, 61.499192206459512 ], [ 129.743068068562422, 61.909399725992401 ], [ 129.919904819865224, 62.144940904378757 ], [ 129.95602664603723, 62.415208645265253 ], [ 129.857428013224308, 62.712038072349785 ], [ 129.379627720253666, 63.48987173120706 ], [ 128.301140578322247, 63.599761664475736 ], [ 127.955011834831282, 63.716472886806926 ], [ 126.852650181181048, 64.224452216236031 ], [ 125.509166294456918, 64.679979966888894 ], [ 124.797220086771802, 65.018408921968373 ], [ 124.525660435078009, 65.236535142672366 ], [ 124.179635044451629, 65.856393948013405 ], [ 123.696873813980915, 66.502659410255561 ], [ 123.233542922051981, 67.359583848735568 ], [ 123.145899692884996, 67.649462795676826 ], [ 123.183416782728898, 67.888517971459024 ], [ 123.742865838720718, 68.41127676052362 ], [ 124.076333856300153, 68.975480048286286 ], [ 124.323812290545959, 69.183426011828786 ], [ 124.621571893411726, 69.336439927845035 ], [ 125.071260207215573, 69.775586249461369 ], [ 125.484775018415178, 69.97366201443613 ], [ 125.908728468937682, 70.227858384879838 ], [ 125.940664504094059, 70.427872016065535 ], [ 127.101730584827862, 70.641218166782537 ], [ 127.336238234568384, 70.749997056756925 ], [ 127.460365024933481, 70.87029979113241 ], [ 127.455507440298049, 71.004348456497539 ], [ 127.27557010305776, 71.331408596472798 ], [ 127.109895461130009, 71.83029287381855 ], [ 126.928821242379286, 72.069838975707526 ], [ 126.689662713732503, 72.29439891223187 ], [ 126.01228803925062, 72.329719753703344 ], [ 124.611650018411694, 72.6515864122333 ], [ 122.751918573091729, 72.906506252729102 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Chang (Yangtze)", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 90.794696079474306, 34.300413112926222 ], [ 91.151573520881982, 34.320902818329955 ], [ 92.99280480344143, 34.100296128875939 ], [ 93.837611118548978, 34.320902818329955 ], [ 94.155834588602346, 34.556392320284019 ], [ 94.388946974670972, 34.653828233370348 ], [ 94.681693963604431, 34.674524644503236 ], [ 95.004051548241165, 34.601712551403992 ], [ 95.374829949935332, 34.406582343069886 ], [ 96.003783807359724, 33.884081936166751 ], [ 96.409857212309277, 33.68094188082739 ], [ 97.032816603587804, 33.236860459927186 ], [ 97.450155470776991, 32.780893459599838 ], [ 98.161791619868353, 32.286582546511923 ], [ 98.375318638098378, 32.00975189872436 ], [ 98.541510044349053, 31.689797268189224 ], [ 98.774157342527076, 31.359688218708726 ], [ 98.698709751380932, 31.150941270465708 ], [ 98.909032830808854, 30.675853990190376 ], [ 98.984377069090414, 30.342773545853106 ], [ 99.096411574299196, 29.250488796499781 ], [ 99.232217238362239, 28.433381049100674 ], [ 99.275367059325959, 28.353670152290462 ], [ 99.355465529378364, 28.204997056586734 ], [ 99.398615350342055, 28.123012396755684 ], [ 99.434556309001067, 28.016571865342499 ], [ 99.51364708862377, 27.785720323186624 ], [ 99.592737868246473, 27.55550827688036 ], [ 99.628678826905485, 27.45098623301601 ], [ 99.798229201255111, 27.165008856712788 ], [ 99.98049197794856, 27.080621242780154 ], [ 100.140378859459616, 27.245546576439665 ], [ 100.246005487064195, 27.495660508732342 ], [ 100.371269158939697, 27.658518785100171 ], [ 100.470074497481761, 27.569118557235242 ], [ 100.511984084070463, 27.36037160899221 ], [ 100.440618931075392, 26.798648789979552 ], [ 100.453176304122337, 26.376116441345047 ], [ 100.504904412846486, 26.240775865172637 ], [ 100.614768507899015, 26.215144354755864 ], [ 101.002186720791201, 26.258449205016447 ], [ 101.663024936939678, 26.529853827413376 ], [ 101.823066847747583, 26.529543768819622 ], [ 101.886112095143687, 26.41048126881914 ], [ 101.912157017018785, 26.220906276956399 ], [ 101.996544630951405, 26.104272569273647 ], [ 102.442977329520915, 26.277001044209229 ], [ 102.756394891371116, 26.312554429626047 ], [ 102.897368198663344, 26.393221340433655 ], [ 102.980928989679313, 26.592175604757372 ], [ 102.957777948012563, 27.223661607364065 ], [ 103.025164015721145, 27.37352326101049 ], [ 103.147017043065404, 27.434346421818034 ], [ 103.470614862077099, 27.88530080821306 ], [ 103.543633660905527, 28.146137600206288 ], [ 103.789768507911702, 28.332224432889333 ], [ 103.845630731219217, 28.483067938749315 ], [ 103.850746698016138, 28.668043728138073 ], [ 104.32560143434614, 28.667191067005248 ], [ 104.741234979269677, 28.777210191354655 ], [ 105.112788527448259, 28.766926581328576 ], [ 105.547128940861455, 28.880485541289957 ], [ 105.820032179794822, 28.876894029245676 ], [ 105.905711704534752, 29.012027899688931 ], [ 106.614298944120918, 29.548739325472326 ], [ 107.604316033968644, 29.923677679966005 ], [ 107.889879998813541, 30.141261298130942 ], [ 108.308149041783963, 30.57952912039832 ], [ 108.401993442826011, 30.735979519161972 ], [ 108.576039666785022, 30.859744574501008 ], [ 108.863567336057002, 30.937285061154967 ], [ 109.4600167175698, 31.010019639605773 ], [ 110.255782098432377, 31.022706203733421 ], [ 110.827581821741944, 30.921704616818957 ], [ 111.215051711066423, 30.72897736258642 ], [ 111.533585239713517, 30.379748033157938 ], [ 112.032572869923854, 30.351739406855742 ], [ 112.207962681122467, 30.220326239537513 ], [ 112.44040327357132, 29.818231919874435 ], [ 112.595794305472992, 29.741234035759547 ], [ 112.781881138156024, 29.743947048454871 ], [ 112.915826450656567, 29.709995632439117 ], [ 112.956547479302543, 29.550935573844725 ], [ 113.127699823053234, 29.462775580354787 ], [ 113.6575899597741, 29.893524481723702 ], [ 113.934989048316879, 30.064005031854592 ], [ 113.922845086728302, 30.218440049758854 ], [ 114.050537550921518, 30.301768296829508 ], [ 114.303235304828775, 30.593042507442647 ], [ 114.543530714985991, 30.595445461544216 ], [ 114.78765018113279, 30.517930813106403 ], [ 115.390352410952914, 30.013155422479386 ], [ 115.679171991032206, 29.856136582960531 ], [ 115.976104770981294, 29.805442002882202 ], [ 116.263374058091813, 29.838721625278168 ], [ 116.695337355619586, 30.049535630812869 ], [ 116.954339634266461, 30.408170070918473 ], [ 117.326616652497108, 30.694767564409204 ], [ 117.598951450675287, 30.815432033810723 ], [ 117.877332391431622, 31.104975083942094 ], [ 118.273018833490482, 31.382219143187996 ], [ 118.550366245600969, 31.820848700481406 ], [ 118.738003371252773, 32.022180080690546 ], [ 119.004447056149672, 32.150699367800442 ], [ 119.331817254718686, 32.204907945274613 ], [ 119.745848830241158, 32.137030951459238 ], [ 120.577425978681987, 31.613755398071731 ], [ 120.921229282719821, 31.516190293904671 ], [ 121.858226353036088, 31.414904486612599 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Nile", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 33.206893344868945, 0.261534735511418 ], [ 33.187256300598023, 0.428191229652711 ], [ 32.893114047992697, 1.31144481038541 ], [ 32.801504652647253, 1.366544806316611 ], [ 32.624758335100978, 1.471712805584616 ], [ 32.510036655413018, 1.536754055177965 ], [ 32.36248752211165, 1.606878973798047 ], [ 32.240957472469233, 1.665841783043078 ], [ 32.172589552547095, 1.682223212079592 ], [ 32.159360385880376, 1.725269680178727 ], [ 32.294597609188202, 1.930580145674341 ], [ 32.295321079240296, 2.07914988851347 ], [ 32.188247511531529, 2.207824204920243 ], [ 31.998646681452641, 2.284201971847622 ], [ 31.766929559055882, 2.292935288904957 ], [ 31.662943658176573, 2.267000179448473 ], [ 31.469906345350267, 2.218876501876665 ], [ 31.366230503064713, 2.193096421717058 ], [ 31.42064578626804, 2.296875616867212 ], [ 31.47475101087764, 2.400577297368926 ], [ 31.457168104790327, 2.538211015224292 ], [ 31.439559360486868, 2.675728461107013 ], [ 31.461418491346336, 2.950414536954455 ], [ 31.564047885877983, 3.224661363127439 ], [ 31.71974897637341, 3.435216986500677 ], [ 32.015854933405848, 3.613655707204515 ], [ 31.729567498508857, 4.022597154146254 ], [ 31.604665561659402, 4.342680975762107 ], [ 31.603477003716705, 4.686277574070786 ], [ 31.745535516087045, 5.419281927914852 ], [ 31.6728267758524, 5.929974270039295 ], [ 31.148310988089861, 6.829660956240815 ], [ 30.789934930145733, 7.241289577661732 ], [ 30.592065870900143, 7.544190985540553 ], [ 30.458430616993354, 7.880397854031472 ], [ 30.288415154753096, 8.573094590687887 ], [ 30.264023878711328, 8.908939724152773 ], [ 30.329911329883487, 9.210988470898769 ], [ 30.519098748504035, 9.399374904818799 ], [ 30.792260369598864, 9.460818182813838 ], [ 31.124746534964771, 9.432525336134034 ], [ 31.321582065564513, 9.404077460157367 ], [ 31.538519728325809, 9.459629624871127 ], [ 31.783931105279919, 9.633934230991613 ], [ 32.158223504369943, 10.040007635941151 ], [ 32.239458855932781, 10.220410061072087 ], [ 32.175121697729395, 10.439414781125038 ], [ 32.199202915177409, 10.569742743365154 ], [ 32.58481245293936, 11.130328680867393 ], [ 32.688113641090837, 11.470721340373956 ], [ 32.749143507627537, 11.995340481001065 ], [ 32.778599074033906, 12.634267889857782 ], [ 32.748058302549396, 12.995692857307148 ], [ 32.650183139788595, 13.344948024951776 ], [ 32.317180210099764, 14.124564520723126 ], [ 32.253618198380764, 14.462838446505728 ], [ 32.490141228980661, 15.634549872291657 ], [ 32.559335971819479, 15.945512803608011 ], [ 32.702738071429422, 16.218751939351293 ], [ 32.951095005024172, 16.438583482320922 ], [ 33.3120032081506, 16.642395331280071 ], [ 33.580462273906903, 16.871864528872138 ], [ 33.772336867006629, 17.168358059146755 ], [ 33.881064080548725, 17.555569566309757 ], [ 33.912690057111348, 17.913816433173167 ], [ 33.877343377423699, 18.197313340726396 ], [ 33.595913527162168, 18.804898993398098 ], [ 33.379699334452965, 19.423129991121925 ], [ 33.159092644998964, 19.448528957593382 ], [ 32.917040236143833, 19.400418199129646 ], [ 32.644653761533363, 19.248360297110807 ], [ 32.092904493953029, 18.793685207590755 ], [ 31.494801466606873, 18.150106919827763 ], [ 31.310006544731152, 18.039493516507008 ], [ 31.144590284964863, 18.035023505113756 ], [ 30.977261997203783, 18.077656561754551 ], [ 30.821870965302111, 18.205529893460806 ], [ 30.685083449025512, 18.406887111886078 ], [ 30.494500766733097, 19.024497992422411 ], [ 30.347739699024174, 19.821761989821425 ], [ 30.558579542775021, 20.08590607348134 ], [ 30.585244581837628, 20.194581610591158 ], [ 30.36489627454506, 20.528669745358116 ], [ 30.345465936003336, 20.65062612556693 ], [ 30.61180626803565, 21.0546324732248 ], [ 31.09064008965214, 21.609198106365042 ], [ 31.433564894341004, 22.096739406822721 ], [ 31.77235558444653, 22.444780178308491 ], [ 32.004486118301628, 22.617844550053974 ], [ 32.451177199032571, 22.729620673101294 ], [ 32.589049920387311, 22.860878811122646 ], [ 32.745112745908756, 23.0691348332589 ], [ 32.859576043435254, 23.350978094978785 ], [ 32.896834751117694, 23.659796454355018 ], [ 32.879471469867639, 23.987683417246956 ], [ 32.888928256977039, 24.563048814384672 ], [ 32.841334262836227, 24.885923163344287 ], [ 32.589773390439376, 25.32723989511689 ], [ 32.523214145647444, 25.612002875261254 ], [ 32.724442172992013, 25.8766120468118 ], [ 32.749195184059829, 26.003994452411263 ], [ 32.664600864398011, 26.084661363218885 ], [ 32.121946648901059, 26.138508205667009 ], [ 31.785223016087201, 26.490476386006961 ], [ 31.303546990694656, 27.098552964785441 ], [ 31.085885857881294, 27.299419257103949 ], [ 30.927445916474397, 27.520129299422535 ], [ 30.852825148244932, 27.769002997340209 ], [ 30.83742557142196, 28.037668768825654 ], [ 30.771589796682122, 28.267887274685947 ], [ 30.798978305796794, 28.455756944283053 ], [ 31.168568149548292, 29.302526963817698 ], [ 31.227272576631862, 29.652298895785236 ], [ 31.237607863090233, 30.12069407807877 ], [ 31.175544467907685, 31.016892605100594 ], [ 31.033537631969608, 31.531796576456813 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Amazon", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ -71.668746507438613, -15.336376234603065 ], [ -71.50115983751607, -14.792326755434225 ], [ -71.557538825146509, -14.286879571187413 ], [ -71.659212205680774, -14.077951755431364 ], [ -71.857132941358643, -13.901683444883787 ], [ -72.136805792922274, -13.739212741758138 ], [ -72.750747646765859, -13.486825046444629 ], [ -73.221106533486505, -13.421867771053741 ], [ -73.562300177693601, -13.017551364802124 ], [ -73.858664516887487, -12.496136162977123 ], [ -73.980672573528608, -12.198376560111349 ], [ -74.14422848173237, -11.452788995004198 ], [ -74.145158657513633, -11.27765756596704 ], [ -73.802595587850803, -11.188774102425015 ], [ -73.735726284465116, -11.029765720262922 ], [ -73.788281216105958, -10.80207935958493 ], [ -73.995374518515632, -10.394352308802048 ], [ -74.050590786419505, -10.181703789920988 ], [ -74.006614142539121, -9.860328057497831 ], [ -74.16688859729237, -9.681475925335654 ], [ -74.475500250939433, -9.029215996947627 ], [ -74.46818803577014, -8.738846123899592 ], [ -74.337343309207114, -8.511676527544516 ], [ -74.483070848270188, -8.390133558794034 ], [ -74.660321011031314, -8.069016208532332 ], [ -74.908393724248455, -7.836368910354317 ], [ -75.021771816696827, -7.461508070509069 ], [ -75.215687628872075, -7.17806283938814 ], [ -75.208194546189759, -7.085458672721103 ], [ -75.136028408494155, -7.012336521028104 ], [ -75.160781419561971, -6.526629733916785 ], [ -75.103472256150269, -6.238481947457295 ], [ -74.938443569626173, -6.066037692899314 ], [ -74.747085740849371, -5.970126234565598 ], [ -74.306182420535109, -5.639862155788236 ], [ -74.064336717409134, -5.137877292504982 ], [ -73.974264695924404, -5.044911390811897 ], [ -73.806574673137277, -4.972357679874108 ], [ -73.488635423461517, -4.444844659038665 ], [ -73.358281623005269, -4.173388360209451 ], [ -73.215783860960443, -4.037220961120369 ], [ -73.139121873655441, -3.683702487811658 ], [ -73.035045539019606, -3.554769789243437 ], [ -72.872109748003339, -3.494773451352572 ], [ -72.475854865189248, -3.481027520362936 ], [ -72.132620001906616, -3.420101006690814 ], [ -71.865556199822223, -3.435965671404418 ], [ -71.542733527294885, -3.731296481952477 ], [ -71.265825364858884, -3.859660739765488 ], [ -70.900472988555336, -3.960068047708603 ], [ -70.628990851509982, -3.888186130390608 ], [ -70.365492723253709, -3.911182142760488 ], [ -70.113389248317816, -4.068330173360074 ], [ -69.869295620387149, -4.320356133647543 ], [ -69.664036831323827, -4.27172861086089 ], [ -69.503245612247667, -4.139178562032235 ], [ -69.262872687442012, -3.622155856952041 ], [ -68.952943284771507, -3.443303724789864 ], [ -68.068759528257559, -3.296904392106988 ], [ -67.960109829363887, -3.217012627783753 ], [ -67.9323854234393, -3.108027032080194 ], [ -67.658216111914768, -2.865406182469847 ], [ -67.378904995377184, -2.707327976089005 ], [ -66.846586066338602, -2.659217217625269 ], [ -66.541462571871236, -2.486256198744371 ], [ -65.99787818059302, -2.496539808770457 ], [ -65.760967576750929, -2.602993259291715 ], [ -65.620459357349318, -2.609246107599027 ], [ -65.439100918220987, -2.684642022312872 ], [ -64.575613572839927, -3.39819019939906 ], [ -64.011126064699653, -3.743543796405653 ], [ -63.177275153237986, -4.035153903828693 ], [ -62.736501024004454, -3.855888360208183 ], [ -62.410551927323453, -3.789432468280836 ], [ -61.810821092360129, -3.855164890156097 ], [ -61.493553636304171, -3.769588718280758 ], [ -60.596063198475051, -3.350854587419704 ], [ -59.924502122626009, -3.205953871273294 ], [ -59.829960089748027, -3.141926771663663 ], [ -59.657929246648379, -3.123219903174004 ], [ -58.689047817608056, -3.342327976091546 ], [ -58.535594651917336, -3.226262709163997 ], [ -58.315918138244584, -3.211844984554567 ], [ -57.76649431011738, -2.658493747573182 ], [ -57.475891893124029, -2.495506280124616 ], [ -56.702244025282397, -2.479279880384965 ], [ -56.119540574759228, -2.132996107597123 ], [ -55.822142706919493, -2.014502048351858 ], [ -55.514848802295873, -1.949493096528684 ], [ -55.151020880744937, -2.137595310071099 ], [ -54.806390753790438, -2.175629164237918 ], [ -54.52511593282577, -2.440315850436896 ], [ -54.185963507694197, -2.311176446139505 ], [ -53.791982387900958, -1.978535251476714 ], [ -53.496444871623737, -1.828105157075072 ], [ -52.436199510291374, -1.430765069182854 ], [ -51.788177049351276, -1.085101413582521 ], [ -51.000240647980945, -0.483174330246769 ], [ -50.554815639841138, 0.056275946448096 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Mississippi", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ -110.743699917425658, 44.726727606783044 ], [ -110.929399176866511, 44.678926906913063 ], [ -111.099673021268231, 44.7565190699993 ], [ -111.204414689969823, 44.812471727063325 ], [ -111.309195115995635, 44.868450222343498 ], [ -111.425512305530603, 44.905566819837134 ], [ -111.541790737741351, 44.942657579114638 ], [ -111.635945197377154, 45.07750722918027 ], [ -111.65405778689545, 45.309715277683807 ], [ -111.44851477745452, 46.024581203793446 ], [ -111.452803921334748, 46.222656968768192 ], [ -111.484320085478757, 46.291645005877839 ], [ -111.515797492298546, 46.36143402768802 ], [ -111.562848883900301, 46.439749660826351 ], [ -111.650450125966074, 46.58417236997407 ], [ -111.698034430775834, 46.662139187194427 ], [ -111.783623521759253, 46.738116461771554 ], [ -111.868670010203601, 46.813680324890342 ], [ -111.921974250112669, 46.941295274435134 ], [ -111.855905931427515, 47.108184312521729 ], [ -111.644497646921451, 47.292255764345384 ], [ -111.170624762804977, 47.588025824567922 ], [ -110.511543545354414, 47.913819891952045 ], [ -110.226651374129318, 47.964256089868911 ], [ -109.819079352643314, 47.806927191756301 ], [ -108.938022020283029, 47.764139105818629 ], [ -108.821286574624196, 47.738765977563318 ], [ -108.564679175636343, 47.682942511580023 ], [ -108.308606304745027, 47.627106126488655 ], [ -108.193467983821705, 47.601694240909126 ], [ -108.108087213455974, 47.586876023949429 ], [ -107.946519233006924, 47.559448757510523 ], [ -107.85922481975787, 47.544695136091192 ], [ -106.883961351329489, 47.750961615584202 ], [ -106.759957292491109, 47.820802313826661 ], [ -106.529675805978954, 47.950548916203488 ], [ -106.405721808684348, 48.020531724634751 ], [ -106.233571463835034, 48.031784267766312 ], [ -105.8229666817289, 48.058462225936992 ], [ -105.332867397872775, 48.090243231796492 ], [ -104.922236777550495, 48.116856594426807 ], [ -104.750034756268875, 48.128018703801857 ], [ -103.772316657306632, 48.027301337264987 ], [ -103.240436977942522, 48.09241364195276 ], [ -102.894024014073949, 48.058668931666162 ], [ -102.140090705151664, 47.650218410831187 ], [ -101.793626064850798, 47.553273423851635 ], [ -101.691594179067508, 47.540974432966166 ], [ -101.502064404083029, 47.518159288109317 ], [ -101.399877489002876, 47.505989488304579 ], [ -101.35539699990764, 47.427002061546446 ], [ -101.311071540109282, 47.347859605491436 ], [ -101.005276252022128, 47.171126207053234 ], [ -100.946129345487051, 47.052541714051458 ], [ -100.836291088650682, 46.832270921407343 ], [ -100.777176479885796, 46.713531399108689 ], [ -100.691451738267602, 46.604778347350447 ], [ -100.605688239325218, 46.496180324889082 ], [ -100.570419074286008, 46.14054311785641 ], [ -100.355393439519531, 45.350332953465227 ], [ -100.370508795964895, 45.084922797214162 ], [ -100.459366421290781, 44.910204779635336 ], [ -100.639872199286287, 44.747708238293541 ], [ -100.629381883531039, 44.640117906261864 ], [ -100.557189907619289, 44.533716132172898 ], [ -100.47547654905776, 44.484132595388843 ], [ -100.393918219793107, 44.434962470063127 ], [ -100.271241599309235, 44.372873236664432 ], [ -100.043196733382217, 44.256975918141833 ], [ -99.920381232486534, 44.194512030609033 ], [ -99.625515509829114, 44.166451727874545 ], [ -99.557832302634822, 44.120860195485037 ], [ -99.432181057517141, 44.036240037607101 ], [ -99.364652879619726, 43.990751858082177 ], [ -99.376961559836246, 43.914787502613123 ], [ -99.39957645851797, 43.773529974943287 ], [ -99.411730109437627, 43.697462266609648 ], [ -99.377313605531242, 43.59467784278111 ], [ -99.250183122539198, 43.510651963874523 ], [ -98.97351073382552, 43.323531602545657 ], [ -98.704370185118393, 43.13080434831312 ], [ -98.599841681699999, 43.029931952479373 ], [ -98.612037319720883, 43.003751379969501 ], [ -98.594079759499465, 43.000011298182386 ], [ -98.336111009498424, 42.873636583012612 ], [ -97.968174811580283, 42.794545803389894 ], [ -97.881823493220566, 42.83971100521299 ], [ -97.644086066461796, 42.836352037114025 ], [ -97.287389492567144, 42.846170559249472 ], [ -97.028283861055684, 42.717651272139591 ], [ -96.754140387747299, 42.633832098962174 ], [ -96.708794318411179, 42.551098130862883 ], [ -96.623037279022824, 42.502651475589246 ], [ -96.455398932667975, 42.488879706383457 ], [ -96.410362921925611, 42.389273383140875 ], [ -96.346594204477441, 42.224606431642826 ], [ -96.348919643930572, 42.141949978191974 ], [ -96.1672511462085, 41.953305162110482 ], [ -96.104567633838457, 41.787682196615037 ], [ -96.096893683643117, 41.556688544270358 ], [ -96.024856737028244, 41.524545803384811 ], [ -95.958633389046213, 41.404914862629127 ], [ -95.855952318082245, 41.116560370440467 ], [ -95.834248216519669, 40.944038601234055 ], [ -95.861869269579671, 40.764721381181246 ], [ -95.796369391649733, 40.584189764969594 ], [ -95.776422288785056, 40.501352444005718 ], [ -95.608137987026566, 40.34322256119259 ], [ -95.452359381882729, 40.215065009108741 ], [ -95.322935757207716, 40.001331285149547 ], [ -95.085172492232815, 39.867980251620367 ], [ -94.95499955928959, 39.869995632479757 ], [ -94.926551683312908, 39.725379136710956 ], [ -95.067059902714504, 39.539679877270103 ], [ -94.991302252974634, 39.444414374340028 ], [ -94.868002285526217, 39.234608059235029 ], [ -94.604788377647566, 39.139704291331 ], [ -93.181696946977809, 39.317962144521815 ], [ -92.992535366573406, 39.275535793610189 ], [ -92.844792446650928, 39.033483384755058 ], [ -92.531581590529896, 38.876877956694528 ], [ -92.292913987989877, 38.658880927071266 ], [ -92.047244228874305, 38.614465033516396 ], [ -91.451750861358903, 38.670482286120787 ], [ -90.885377163439983, 38.635058091784714 ], [ -90.432717454779308, 38.79494497329577 ], [ -90.355470877834023, 38.800274105375863 ], [ -90.214197201279092, 38.805454667713121 ], [ -90.144595506535978, 38.794299017892115 ], [ -90.182848985540033, 38.680287889148175 ], [ -90.212498338567485, 38.584828599597017 ], [ -90.305490078476709, 38.439075222317783 ], [ -90.36972388381551, 38.263401190741561 ], [ -90.22794959182275, 38.113384507798244 ], [ -90.030183885441758, 37.9721786565607 ], [ -89.917012498722556, 37.968535468084127 ], [ -89.654961310570471, 37.748600572249913 ], [ -89.553882209007554, 37.719015814762813 ], [ -89.479287278994235, 37.477376817366022 ], [ -89.516235928082935, 37.326817531883648 ], [ -89.388310919944402, 37.081457831361831 ], [ -89.280177985373655, 37.107089341778604 ], [ -89.102953660828675, 36.952215074199856 ], [ -89.134372931662142, 36.851988633769764 ], [ -89.115097622417267, 36.69455638279257 ], [ -89.273821784201758, 36.611719061828708 ], [ -89.498200853213064, 36.50640249281787 ], [ -89.524039069359006, 36.409431667622158 ], [ -89.585353156273314, 36.266882229145025 ], [ -89.66302283400799, 36.023279527321137 ], [ -89.684265077456985, 36.023279527321137 ], [ -89.687310757185173, 36.023279527321137 ], [ -89.671420254255423, 35.981718756650395 ], [ -89.673745693708554, 35.940157985979667 ], [ -89.775109015649065, 35.799417222632741 ], [ -89.950266282902376, 35.701981309546412 ], [ -89.98897193068899, 35.536461696915552 ], [ -90.147282681015156, 35.405255235326479 ], [ -90.135190395858842, 35.113877671848755 ], [ -90.249395311223878, 35.020653387994216 ], [ -90.268076341497391, 34.94148509372306 ], [ -90.446385871120512, 34.866993516574325 ], [ -90.450106574245524, 34.722041123995623 ], [ -90.584336107123661, 34.454253851859136 ], [ -90.699729580431409, 34.397538967418797 ], [ -90.876540493518064, 34.261733303355754 ], [ -90.981908738961195, 34.054872544891396 ], [ -91.200629238636537, 33.706159979785824 ], [ -91.223418545277269, 33.469068508430709 ], [ -91.108309292347116, 33.206655585252577 ], [ -91.156109992217097, 33.009923407517419 ], [ -91.084641486357441, 32.952872626267194 ], [ -91.175643683623434, 32.808540350875987 ], [ -91.031027187854619, 32.602609768192877 ], [ -91.071825731149062, 32.47889638928612 ], [ -90.94307390009385, 32.306684678673463 ], [ -91.081618415068363, 32.204675401329297 ], [ -91.128204718779486, 32.015462144492602 ], [ -91.321448737334947, 31.859606024700312 ], [ -91.411417405955092, 31.649954738892191 ], [ -91.502161221059623, 31.408625800089141 ], [ -91.624660203807508, 31.296953029906405 ], [ -91.583758307648495, 31.047355861936651 ], [ -91.528929612986815, 30.808352362586731 ], [ -91.340362311553775, 30.646863511674638 ], [ -91.121848517607589, 30.269987290969993 ], [ -90.991365526070609, 30.133768215448626 ], [ -90.783393724311964, 30.052894598911834 ], [ -90.045893520858499, 29.895720730096102 ], [ -89.952695075220106, 29.801333726514997 ], [ -89.887686123396918, 29.647699693311253 ], [ -89.403865526064251, 29.157212836212949 ] ] } },
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "River", "name": "Yangtze", "name_alt": null }, "geometry": { "type": "LineString", "coordinates": [ [ 116.197589959784267, 29.751388454704909 ], [ 116.211852655096834, 29.785159003207639 ] ] } }
]
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg{
background:#2379d5;
}
.texto{
font-size:10px;
}
.pico{
height:19;
width:20;
}
/* CSS goes here. */
.coun { fill: #27ae60;
opacity:.6;
stroke:black;
stroke-width:.8; }
.grat{
stroke:grey;
stroke-width:1px
}
.outside{
fill: grey;
opacity:.6;
stroke:black;
stroke-width:.8;
}
.city{
fill:#fad959;
r:10;
}
.outer{
fill:black
}
.city:hover{
fill:blue
}
.chams{
height:100;
width:100;
}
.rivs{
stroke:#c6dbef;
stroke-width:2.5;
fill:none;
//opacity:.5;
}
.keyer{
position:absolute;
background:#d9d9d9;
height:120px;
}
.troph{
position:absolute;
margin-top:-20px;
}
</style>
<body>
<div class='keyer'></div>
<script src="http://d3js.org/d3.v3.js"></script>
<script src="http://d3js.org/topojson.v1.js"></script>
<script>
//map data stored in gist fcb2c2306c2bf249b719
/*
our list of brazilian world cup cities
grounds: # add 12 stadiums/grounds
- maracana # Rio de Janeiro, RJ
- nacionaldebrasilia # Brasília, DF
- corinthians # São Paulo, SP
- castelao # Fortaleza, CE
- mineirao # Belo Horizonte, MG
- fontenova # Salvador, BA
- pantanal # Cuiabá, MT
- amazonia # Manaus, AM
- dasdunas # Natal, RN
- beirario # Porto Alegre, RS
- pernambuco # Recife, PE
- dabaixada # Curitiba, PR
from futbolDB
OpenFutbol Github Org
*/
var height = 475;
var width = 600;
var projection = d3.geo.albers()
.center([-54,-8.4])
.parallels( [11.5,-38])
.scale(550)
//rotating is long lat and around the origin
.rotate([55,-5,-5])
.translate([width/2 - 450,height/2 -40])
var graticule = d3.geo.graticule();
var svg = d3.select('body').append('svg').attr('width', width).attr('height', height);
var path = d3.geo.path()
.projection(projection);
svg.append('path')
.datum(graticule)
.attr('class', "grat")
.attr('d',path)
.attr('fill','none')
;
// d3.select('path') .append('g')
var somewor = 'click on an icon';
d3.json('/mpmckenna8/raw/fcb2c2306c2bf249b719/brazilWor.json', function(err, world){
if(err){console.log(err)}
svg.selectAll('path')
.data(topojson.feature(world,world.objects.countries110).features).enter().append('path')
.attr('d',path)
.on('hover',function(){
// console.log(this)
// return this.style('fill','purple');
})
.attr('class',function(d,i){
// console.log(i + 'this is for the countries class');
return 'coun'})
d3.selectAll('.coun')
.attr('class',function(d,i){
// console.log(i);
// The country data doesn't have any properties so I used the index # for brazil since it's the only thing I was going to change.
if(i===21){
return 'coun'
}
else{
return 'outside'
}
})
.on('click', function(d,i){
console.log(i);
})
d3.json('amaR.geojson',function(err,river){
svg.append('path')
// .append('g')
.datum(river)
.attr('d',path)
.attr('class', function(d){
return 'rivs'
})
var citi = topojson.feature(world,world.objects.brazilCit).features
svg.selectAll('.shadows')
.data(citi)
.enter()
.append('circle')
.attr('d',path)
.attr('class', 'shadows')
.attr('r',4)
.attr('cx',2)
.attr('cy',2)
.attr("transform", function(d) { return "translate(" + projection(d.geometry.coordinates) + ")"; })
.attr('opacity',.3)
.attr('fill', '#fad959')
//console.log(citi)
//adding stuff all at once w/ datum like w/ graticule everthing it going to be the same.
// So the anonymous function in .attr('class',funct) is worthless more or less because it's all just one big thing.
svg.selectAll('.city')
.data(citi)
.enter()
.append('image')
.attr('d',path)
.attr('class',function(d){
// console.log(d.properties.coun)
if(d.properties.coun ==="BRA"){
return 'city'
}
else{
return 'outer'
}
})
.attr('r', 1)
.attr("transform", function(d) { return "translate(" + projection(d.geometry.coordinates) + ")"; })
//this is where the river was
var bigCit = 0;
d3.selectAll('.city')
.filter(function(d,i){
console.log(d.properties)
var namer = d.properties.name;
return namer == 'Fortaleza' || namer == 'Brasilia'|| namer =='Rio de Janeiro'
|| namer == 'Sao Paulo' || namer == 'Belo Horizonte' || namer == 'Salvador'
|| namer == 'Cuiaba' || namer == 'Manaus' || (namer == 'Natal' && d.properties.pop > 1000000) || namer == 'Porto Alegre'
|| namer == 'Recife' || namer == 'Curitiba'
})
.attr('xlink:href',function(d){
console.log(d.properties.name)
if (d.properties.name =='Rio de Janeiro'){return '/mpmckenna8/raw/b87df1c44243aa1575cb/icon_51440.svg'}
else{
return ('/mpmckenna8/raw/b87df1c44243aa1575cb/icon_10684.svg')}})
.attr('height', function(d){
return '19'
})
.attr('width', '29')
// while adding an image to an svg these are the coordinates i think of the top left
.attr('x', '-14.5')
.attr('y', '-9.5')
.on('click', function(d){
console.log(d.properties.name)
d3.selectAll('.texto')
.text(d.properties.name);
})
.attr('class', function(d){
if(d.properties.name == 'Rio de Janeiro'){
return 'chams'
}
else{
return 'pico'}
})
d3.select('.chams')
.attr('height',40)
.attr('width', 40)
.attr('y',-20)
d3.selectAll('.outer')
.append('circle')
.attr('r',5)
.attr('cx',0)
.attr('cy',0)
.attr('fill','yellow')
console.log(bigCit)
})
})
// console.log(projection([-54,-8.4]))
d3.select('.keyer')
.style('margin-left', '415px')
.style('margin-top', '20px')
.append('html')
.html('<p>World Cup 2014</p><p>Brazil<img src=\'trophy.png\' class=\'troph\'/></p><p class=\'texto\'>'+somewor+'</p>')
// to add the image in the html element <img src=\'./WCtrophy\/trophy.png\' />
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment