Commit 1ff111f6 authored by Tania Gómez's avatar Tania Gómez

changes on riesgo and centropais

parent f6c75cb7
{"type":"Topology","arcs":[[[44920,79579],[76,-47],[75,-48],[74,-50],[72,-52],[71,-53],[35,-26],[35,-28],[69,-56],[67,-57],[66,-58],[64,-60],[63,-61],[62,-62],[29,-32],[31,-32],[29,-32],[30,-33],[28,-32],[29,-34],[55,-67],[54,-68],[53,-69],[50,-70],[49,-72],[47,-72],[23,-35],[23,-38],[44,-74],[42,-75],[40,-76],[39,-76],[36,-78],[35,-78],[33,-79],[16,-38],[15,-41],[29,-80],[28,-81],[25,-81],[24,-81],[21,-82],[20,-83],[18,-83],[8,-40],[8,-43],[13,-83],[12,-84],[10,-84],[8,-84],[6,-84],[4,-85],[1,-84],[1,-41],[-1,-44],[-2,-84],[-4,-84],[-6,-85],[-8,-84],[-10,-84],[-12,-84],[-14,-83],[-7,-41],[-9,-42],[-18,-83],[-20,-82],[-21,-82],[-24,-82],[-26,-81],[-27,-81],[-30,-79],[-14,-39],[-2,-4],[-2,-6],[-64,-161],[-16,-39],[-33,-78],[-35,-76],[-36,-77],[-38,-75],[-40,-74],[-31,-55],[-33,-55],[-91,-146],[-35,-54],[-37,-53],[-50,-70],[-53,-69],[-54,-68],[-55,-67],[-57,-66],[-29,-32],[-30,-33],[-60,-63],[-62,-62],[-63,-61],[-64,-60],[-66,-58],[-68,-57],[-68,-56],[-34,-27],[-36,-27],[-71,-53],[-72,-51],[-74,-50],[-60,-39],[-6,-33],[-8,-43],[-18,-82],[-20,-83],[-22,-82],[-23,-81],[-26,-82],[-28,-80],[-29,-80],[-15,-39],[-22,-54],[-2,-5],[24,0],[45,0],[91,-2],[91,-4],[91,-5],[91,-8],[91,-9],[90,-11],[90,-13],[45,-7],[49,-8],[97,-18],[97,-21],[96,-22],[48,-12],[239,-61],[40,-11],[80,-22],[79,-23],[78,-25],[39,-13],[43,-15],[85,-30],[84,-33],[83,-34],[83,-36],[82,-37],[80,-39],[16,-8],[27,-5],[89,-18],[89,-20],[88,-22],[87,-24],[87,-25],[86,-27],[43,-14],[43,-15],[85,-31],[84,-32],[83,-34],[83,-36],[82,-38],[80,-39],[80,-40],[40,-21],[30,-17],[61,-33],[60,-35],[60,-36],[29,-18],[131,-81],[45,-30],[91,-59],[89,-63],[87,-64],[43,-32],[35,-28],[68,-56],[67,-57],[66,-58],[65,-60],[46,-45],[37,-19],[39,-21],[46,-25],[89,-51],[88,-52],[87,-55],[43,-28],[152,-102],[31,-21],[62,-43],[61,-44],[60,-45],[29,-23],[35,-27],[69,-56],[67,-57],[65,-59],[65,-60],[63,-61],[61,-62],[60,-63],[29,-32],[28,-31],[53,-62],[35,-42],[38,-38],[57,-60],[27,-30],[30,-34],[57,-66],[55,-67],[54,-68],[52,-69],[50,-70],[6,-9],[27,-17],[88,-62],[86,-63],[42,-32],[35,-28],[68,-56],[67,-57],[66,-59],[64,-59],[63,-61],[62,-63],[60,-63],[29,-32],[29,-33],[40,-46],[50,-25],[50,-26],[31,-17],[62,-35],[61,-35],[60,-37],[30,-18],[130,-81],[46,-30],[89,-59],[88,-61],[86,-64],[42,-32],[35,-28],[68,-55],[68,-57],[65,-59],[65,-60],[62,-61],[62,-62],[60,-64],[29,-31],[29,-33],[57,-66],[55,-67],[54,-68],[52,-70],[51,-70],[49,-71],[47,-72],[22,-36],[23,-38],[44,-74],[42,-75],[40,-75],[38,-77],[37,-77],[35,-78],[32,-79],[16,-39],[15,-41],[30,-80],[27,-80],[25,-81],[24,-82],[21,-82],[20,-82],[18,-83],[8,-41],[4,-26],[9,-51],[5,-26],[41,-263],[6,-35],[10,-71],[8,-71],[7,-71],[6,-72],[4,-71],[3,-72],[1,-71],[0,-35],[-1,-60],[-4,-117],[-8,-118],[-1,-14],[1,-6],[5,-78],[3,-77],[1,-78],[1,-38],[-1,-43],[-2,-84],[-4,-85],[-6,-84],[-8,-84],[-10,-84],[-12,-84],[-14,-83],[-7,-41],[-10,-47],[-20,-91],[-22,-91],[-24,-91],[-13,-45],[-22,-70],[-35,-169],[-8,-38],[-17,-75],[-19,-75],[-21,-75],[-22,-74],[-24,-74],[-38,-109],[-2,-4],[-60,-152],[-8,-20],[20,-26],[2,-3],[4,-4],[8,-9],[3,-4],[30,-33],[57,-66],[55,-67],[53,-68],[53,-69],[50,-71],[49,-71],[47,-72],[22,-36],[23,-37],[44,-74],[42,-75],[40,-76],[38,-77],[37,-77],[34,-78],[33,-79],[16,-39],[15,-40],[29,-80],[27,-81],[26,-81],[23,-82],[7,-27],[10,-22],[14,-33],[28,-67],[13,-33],[17,-45],[32,-88],[15,-44],[128,-385],[18,-58],[35,-118],[31,-119],[27,-120],[12,-59],[8,-43],[13,-83],[12,-84],[10,-84],[8,-84],[5,-84],[4,-85],[2,-84],[1,-42],[0,-5],[0,-8],[0,-4],[-2,-222],[0,-41],[-3,-83],[-4,-82],[-6,-82],[-8,-82],[-10,-82],[-18,-118],[-29,-154],[-1,-3],[-24,-110],[-18,-71],[-20,-72],[-21,-71],[-23,-70],[-20,-59],[36,-23],[73,-50],[72,-52],[71,-53],[34,-26],[35,-28],[69,-56],[66,-57],[66,-58],[64,-60],[63,-61],[61,-62],[60,-64],[29,-31],[29,-34],[57,-66],[55,-67],[28,-35],[34,-24],[60,-43],[58,-44],[29,-22],[35,-28],[68,-56],[67,-57],[65,-58],[64,-60],[63,-61],[61,-63],[60,-63],[29,-32],[27,-31],[53,-61],[52,-63],[50,-63],[49,-64],[48,-66],[46,-66],[45,-67],[21,-34],[66,-103],[13,-21],[7,-10],[13,-21],[6,-9],[23,-38],[43,-74],[42,-75],[40,-76],[38,-76],[37,-78],[34,-78],[33,-78],[16,-39],[15,-41],[29,-80],[27,-80],[26,-82],[23,-81],[21,-82],[20,-83],[18,-83],[8,-40],[7,-43],[14,-83],[12,-84],[9,-84],[8,-84],[6,-84],[1,-26],[22,-17],[35,-28],[33,-27],[14,-4],[97,-30],[48,-16],[42,-15],[85,-30],[84,-33],[83,-34],[82,-36],[81,-37],[80,-39],[80,-41],[39,-20],[39,-22],[78,-44],[76,-45],[75,-47],[75,-49],[73,-50],[72,-51],[70,-53],[13,-10],[31,-15],[79,-40],[39,-21],[40,-22],[77,-43],[76,-46],[76,-47],[74,-48],[34,-24],[11,-5],[39,-21],[39,-21],[78,-44],[76,-46],[75,-47],[75,-48],[73,-50],[72,-51],[70,-53],[35,-27],[35,-28],[68,-55],[66,-58],[66,-58],[64,-60],[63,-61],[61,-62],[59,-64],[29,-31],[8,-8],[13,-15],[6,-8],[52,-58],[27,-31],[53,-63],[51,-64],[50,-64],[49,-66],[47,-66],[46,-67],[44,-68],[21,-34],[23,-38],[43,-74],[42,-75],[40,-75],[38,-77],[37,-77],[34,-78],[33,-79],[15,-39],[16,-41],[30,-82],[27,-83],[26,-83],[8,-27],[3,-6],[30,-72],[14,-36],[15,-40],[29,-80],[27,-81],[26,-81],[23,-82],[21,-82],[20,-82],[17,-83],[9,-41],[7,-42],[6,-35],[4,-3],[58,-44],[28,-21],[35,-28],[68,-56],[66,-57],[66,-59],[64,-59],[62,-61],[61,-63],[60,-63],[29,-32],[29,-33],[57,-66],[55,-67],[53,-68],[52,-69],[51,-71],[48,-71],[47,-72],[23,-36],[22,-37],[44,-74],[41,-75],[40,-76],[39,-77],[36,-77],[35,-78],[32,-79],[16,-39],[15,-40],[29,-80],[27,-81],[26,-81],[23,-82],[21,-82],[20,-82],[17,-83],[8,-41],[8,-44],[15,-87],[6,-44],[15,-109],[8,-43],[13,-84],[12,-84],[10,-84],[8,-84],[6,-84],[3,-84],[2,-85],[1,-41],[-1,-43],[-2,-85],[-4,-84],[-6,-84],[-8,-85],[-10,-84],[-12,-83],[-14,-84],[-7,-40],[-8,-43],[-18,-83],[-20,-82],[-21,-82],[-24,-82],[-25,-81],[-27,-80],[-30,-80],[-14,-39],[-17,-41],[-32,-78],[-35,-78],[-37,-78],[-38,-76],[-40,-76],[-42,-75],[-43,-74],[-22,-36],[-24,-37],[-47,-72],[-48,-71],[-51,-71],[-52,-69],[-53,-68],[-55,-67],[-57,-66],[-28,-32],[-30,-32],[-60,-64],[-61,-62],[-62,-61],[-64,-60],[-66,-58],[-66,-57],[-68,-56],[-34,-27],[-36,-27],[-70,-53],[-72,-51],[-73,-50],[-74,-48],[-75,-47],[-48,-29],[6,-47],[10,-84],[8,-84],[6,-84],[3,-85],[2,-84],[1,-42],[-1,-43],[-2,-84],[-4,-85],[-6,-84],[-8,-84],[-10,-84],[-12,-84],[-13,-83],[-8,-41],[-11,-53],[-23,-105],[-26,-104],[-29,-104],[-16,-51],[-22,-71],[-9,-30],[-20,-59],[-21,-59],[-22,-58],[-10,-29],[-17,-40],[-32,-79],[-35,-78],[-37,-77],[-38,-76],[-40,-76],[-42,-75],[-43,-74],[-22,-36],[-23,-37],[-47,-72],[-49,-72],[-50,-70],[-52,-69],[-54,-68],[-55,-67],[-56,-66],[-28,-32],[-30,-33],[-60,-63],[-61,-62],[-63,-61],[-63,-60],[-66,-58],[-66,-57],[-68,-56],[-34,-27],[-36,-27],[-70,-53],[-72,-51],[-73,-50],[-74,-49],[-75,-47],[-76,-45],[-77,-44],[-39,-21],[-50,-27],[-102,-51],[-103,-48],[-104,-46],[-53,-23],[-195,-79],[-60,-24],[-122,-45],[-61,-22],[-42,-14],[-86,-27],[-86,-26],[-87,-23],[-87,-22],[-88,-20],[-88,-18],[-89,-17],[-44,-8],[-16,-2],[-31,-5],[-16,-3],[-130,-19],[-41,-6],[-81,-11],[-82,-9],[-82,-7],[-82,-6],[-82,-5],[-82,-3],[-8,0],[-80,-8],[-90,-8],[-90,-5],[-90,-4],[-90,-2],[-45,0],[-7,0],[-12,0],[-6,0],[-232,1],[-257,1],[-54,1],[-109,4],[-44,2],[-17,-3],[-45,-7],[-89,-13],[-90,-11],[-89,-9],[-90,-7],[-90,-6],[-91,-3],[-90,-2],[-45,-1],[-45,1],[-91,2],[-58,2],[-7,-4],[-39,-21],[-39,-21],[-80,-41],[-80,-39],[-81,-37],[-82,-36],[-82,-34],[-84,-32],[-84,-31],[-42,-14],[-43,-15],[-85,-27],[-86,-25],[-87,-24],[-87,-21],[-88,-21],[-88,-18],[-89,-16],[-44,-8],[-45,-7],[-89,-13],[-89,-11],[-90,-9],[-15,-1],[-67,-28],[-83,-32],[-85,-31],[-42,-14],[-60,-20],[-121,-37],[-121,-34],[-123,-30],[-62,-14],[-259,-56],[-49,-10],[-79,-168],[-23,-47],[-48,-93],[-50,-92],[-53,-91],[-26,-45],[-24,-37],[-47,-72],[-48,-71],[-51,-70],[-51,-69],[-54,-69],[-55,-67],[-56,-65],[-29,-32],[-32,-36],[-57,-60],[-34,-44],[-66,-82],[-68,-80],[-34,-39],[-30,-33],[-59,-63],[-61,-63],[-63,-61],[-64,-59],[-65,-59],[-66,-57],[-68,-55],[-34,-28],[-35,-27],[-71,-53],[-71,-51],[-73,-50],[-74,-48],[-75,-47],[-76,-45],[-78,-44],[-38,-22],[-10,-5],[13,-10],[65,-58],[64,-60],[62,-61],[61,-63],[59,-63],[29,-32],[27,-30],[53,-62],[51,-62],[50,-63],[24,-32],[4,-4],[7,-8],[29,-31],[29,-33],[56,-66],[55,-67],[53,-69],[52,-69],[20,-27],[68,-41],[75,-47],[56,-37],[77,-32],[82,-36],[81,-37],[80,-39],[79,-41],[39,-20],[39,-22],[77,-44],[76,-45],[75,-47],[74,-49],[73,-50],[72,-51],[70,-53],[34,-26],[35,-28],[68,-56],[66,-57],[65,-59],[64,-59],[62,-61],[61,-63],[60,-63],[28,-32],[30,-33],[56,-66],[55,-67],[53,-68],[52,-69],[50,-71],[48,-71],[47,-72],[23,-37],[2,-4],[68,-110],[23,-37],[43,-75],[42,-75],[39,-75],[38,-77],[37,-77],[34,-78],[33,-79],[15,-39],[15,-40],[29,-80],[27,-81],[26,-81],[23,-82],[21,-82],[20,-82],[8,-39],[4,-8],[38,-77],[36,-77],[35,-78],[32,-79],[16,-39],[15,-40],[29,-80],[27,-81],[25,-81],[14,-47],[14,-34],[33,-78],[15,-39],[16,-41],[29,-80],[27,-80],[25,-82],[23,-81],[21,-82],[20,-83],[17,-83],[8,-40],[9,-50],[16,-98],[12,-98],[11,-98],[4,-49],[19,-246],[2,-35],[4,-70],[3,-70],[1,-70],[0,-35],[0,-43],[-2,-84],[-4,-85],[-6,-84],[-8,-84],[-10,-84],[-12,-84],[-14,-83],[-7,-41],[-8,-42],[-18,-83],[-6,-25],[41,-39],[29,-29],[59,-58],[58,-59],[56,-61],[28,-30],[29,-33],[54,-64],[69,-43],[74,-48],[72,-50],[72,-52],[31,4],[89,13],[89,11],[90,9],[89,7],[90,6],[90,4],[90,1],[45,1],[63,-1],[127,-4],[126,-7],[126,-11],[63,-6],[175,-20],[53,-7],[107,-15],[52,-8],[45,-8],[88,-17],[88,-18],[88,-20],[87,-22],[86,-24],[86,-25],[85,-27],[42,-14],[43,-15],[84,-31],[83,-32],[82,-34],[82,-36],[81,-37],[80,-39],[73,-38],[33,-10],[88,-28],[43,-14],[43,-15],[84,-31],[83,-32],[82,-34],[82,-36],[81,-37],[79,-39],[79,-41],[39,-20],[21,-12],[33,-18],[13,-4],[43,-14],[5,-2],[10,-4],[6,-2],[226,-78],[56,-20],[110,-42],[108,-45],[108,-47],[53,-25],[247,-117],[49,-25],[33,-16],[26,-1],[90,-6],[90,-7],[89,-10],[90,-11],[89,-12],[44,-7],[39,-7],[77,-14],[77,-16],[77,-17],[77,-18],[76,-20],[75,-21],[75,-23],[38,-11],[57,-19],[91,-29],[10,-3],[20,-7],[40,-13],[20,-6],[42,-15],[84,-31],[83,-32],[83,-34],[81,-36],[81,-38],[80,-39],[79,-40],[39,-21],[39,-22],[77,-43],[76,-46],[74,-47],[74,-48],[73,-50],[71,-52],[70,-53],[35,-26],[13,-11],[26,-20],[13,-11],[51,-42],[31,-25],[60,-52],[60,-52],[58,-54],[57,-54],[56,-56],[55,-56],[54,-58],[26,-29],[29,-33],[56,-66],[55,-67],[53,-68],[51,-69],[50,-71],[49,-71],[46,-72],[23,-36],[22,-37],[43,-74],[42,-75],[40,-76],[38,-77],[36,-77],[34,-78],[33,-79],[15,-39],[15,-40],[29,-80],[27,-81],[25,-81],[24,-82],[21,-82],[19,-82],[18,-83],[8,-41],[7,-42],[14,-84],[12,-84],[9,-84],[8,-84],[6,-84],[4,-84],[2,-85],[0,-41],[-1,-43],[-2,-85],[-4,-84],[-6,-84],[-7,-85],[-10,-84],[-12,-83],[-14,-84],[-7,-41],[-9,-42],[-17,-83],[-20,-82],[-21,-82],[-24,-82],[-25,-81],[-27,-81],[-29,-79],[-15,-40],[-16,-40],[-32,-79],[-35,-78],[-36,-77],[-38,-76],[-40,-76],[-42,-75],[-43,-74],[-22,-36],[-23,-37],[-47,-72],[-48,-72],[-50,-70],[-52,-69],[-53,-68],[-55,-67],[-56,-66],[-28,-32],[-30,-33],[-59,-63],[-61,-62],[-62,-61],[-64,-60],[-65,-58],[-66,-57],[-68,-56],[-33,-27],[-36,-27],[-70,-53],[-71,-52],[-73,-49],[-73,-49],[-45,-28],[-166,-270],[-3,-6],[-2,-2],[-339,-551],[-747,-1212],[-1494,-2429],[-95,-154],[-584,-950],[-771,-1255],[-929,-1542],[-61,-106],[-6,-10],[-12,-20],[-6,-10],[-70,-118],[-3,-5],[-16,-27],[-209,-354],[-98,-165],[-6,-10],[-12,-21],[-7,-11],[-110,-181],[-123,-201],[-521,-856],[-63,-104],[-389,-640],[-403,-663],[-313,-517],[-3,-5],[-14,-23],[-490,-809],[-1613,-2663],[-120,-199],[-3,-5],[-6,-9],[-2,-4],[-24,-37],[-46,-72],[-48,-72],[-50,-70],[-52,-69],[-53,-68],[-54,-67],[-56,-66],[-28,-32],[-30,-33],[-59,-63],[-61,-62],[-62,-61],[-63,-60],[-65,-58],[-66,-57],[-67,-56],[-34,-27],[-35,-27],[-69,-53],[-72,-52],[-72,-50],[-73,-48],[-75,-47],[-75,-45],[-77,-44],[-38,-21],[-39,-21],[-79,-41],[-79,-39],[-81,-37],[-81,-36],[-82,-34],[-82,-32],[-84,-31],[-41,-15],[-43,-14],[-85,-27],[-85,-25],[-86,-24],[-87,-22],[-87,-20],[-87,-18],[-88,-16],[-44,-8],[-44,-7],[-88,-13],[-89,-11],[-89,-9],[-89,-7],[-90,-6],[-89,-4],[-90,-2],[-44,0],[-45,0],[-90,2],[-89,4],[-89,6],[-90,7],[-89,9],[-88,11],[-89,13],[-44,7],[-44,8],[-88,16],[-87,18],[-87,20],[-87,22],[-86,24],[-85,25],[-85,27],[-42,14],[-42,15],[-83,31],[-83,32],[-82,34],[-81,36],[-81,37],[-79,39],[-79,41],[-39,21],[-24,13],[-49,27],[-24,14],[-57,33],[-193,112],[-28,17],[-57,34],[-56,35],[-55,35],[-55,37],[-55,38],[-53,38],[-53,39],[-26,20],[-151,115],[-13,10],[-25,20],[-13,10],[-34,27],[-67,56],[-66,57],[-65,58],[-63,60],[-62,61],[-61,62],[-59,64],[-30,32],[-29,34],[-60,70],[-29,36],[-118,145],[-19,25],[-40,50],[-38,50],[-37,51],[-37,52],[-36,52],[-34,53],[-27,41],[-28,25],[-65,58],[-63,60],[-62,61],[-61,62],[-59,64],[-29,32],[-35,40],[-6,7],[-55,27],[-78,41],[-40,21],[-38,21],[-76,44],[-76,45],[-75,47],[-73,48],[-72,50],[-71,52],[-70,53],[-35,27],[-10,7],[-20,16],[-10,9],[-147,119],[-31,26],[-62,52],[-61,53],[-59,55],[-59,55],[-57,57],[-84,89],[-65,74],[-48,12],[-67,18],[-67,20],[-66,20],[-67,21],[-33,12],[-41,14],[-84,31],[-83,32],[-82,34],[-81,36],[-31,14],[-67,17],[-86,24],[-85,25],[-85,27],[-43,14],[-41,15],[-84,31],[-83,32],[-82,34],[-81,36],[-80,37],[-80,39],[-79,41],[-39,21],[-38,21],[-77,44],[-75,45],[-75,47],[-73,48],[-73,50],[-71,52],[-70,52],[-51,-1],[-79,-2],[-39,0],[-45,0],[-89,2],[-90,4],[-89,5],[-90,8],[-89,9],[-88,11],[-89,13],[-44,7],[-44,7],[-88,17],[-88,18],[-87,20],[-86,22],[-86,24],[-86,25],[-85,27],[-42,14],[-42,15],[-83,31],[-83,32],[-82,34],[-82,36],[-80,37],[-80,39],[-78,40],[-40,21],[-35,20],[-36,11],[-34,10],[-89,27],[-38,6],[-44,7],[-44,7],[-88,17],[-46,10],[-42,-2],[-89,-2],[-45,0],[-65,1],[-128,3],[-129,8],[-129,11],[-64,7],[-41,5],[-49,6],[-100,15],[-50,7],[-44,8],[-88,17],[-87,18],[-87,20],[-87,22],[-86,23],[-85,26],[-85,27],[-43,14],[-44,16],[-88,32],[-44,17],[-123,48],[-31,12],[-60,25],[-60,26],[-60,27],[-24,11],[-52,21],[-81,36],[-81,37],[-79,39],[-79,41],[-39,21],[-38,21],[-77,44],[-76,45],[-74,47],[-74,49],[-72,50],[-71,51],[-70,53],[-35,27],[-34,27],[-67,56],[-66,57],[-65,58],[-64,60],[-62,61],[-60,62],[-60,64],[-29,32],[-28,32],[-56,66],[-55,67],[-53,68],[-52,69],[-49,71],[-49,71],[-46,72],[-23,37],[-7,10],[-13,22],[-6,11],[-13,22],[-20,34],[-40,69],[-37,70],[-36,70],[-35,71],[-33,72],[-32,72],[-30,73],[-15,37],[-12,32],[-23,65],[-23,65],[-21,66],[-11,33],[-10,34],[-14,48],[-27,97],[-24,98],[-16,74],[-3,1],[-101,21],[-57,14],[-8,1],[-56,8],[-44,8],[-88,17],[-87,18],[-88,20],[-86,22],[-86,23],[-86,26],[-17,5],[-16,2],[-91,11],[-91,13],[-45,7],[-44,8],[-88,16],[-88,19],[-87,20],[-87,22],[-23,6],[-62,9],[-139,23],[-104,20],[-69,15],[-69,16],[-68,17],[-68,18],[-31,9],[-12,2],[-87,18],[-88,20],[-86,22],[-86,24],[-86,25],[-85,27],[-43,15],[-41,14],[-84,31],[-83,32],[-82,34],[-81,36],[-81,37],[-79,39],[-79,41],[-39,21],[-39,21],[-76,44],[-76,45],[-31,19],[-30,14],[-45,19],[-86,40],[-86,42],[-84,43],[-42,22],[-39,22],[-76,43],[-76,46],[-75,47],[-73,48],[-73,50],[-71,51],[-70,53],[-35,27],[-34,28],[-67,55],[-66,57],[-65,59],[-64,59],[-52,52],[-43,12],[-86,25],[-85,27],[-42,14],[-42,15],[-84,31],[-83,32],[-82,34],[-81,36],[-81,37],[-79,39],[-79,41],[-39,21],[-23,12],[-45,25],[-22,13],[-72,41],[-46,27],[-33,19],[-64,39],[-64,39],[-63,41],[-63,43],[-61,43],[-60,44],[-60,45],[-30,24],[-34,27],[-67,55],[-66,57],[-65,59],[-64,59],[-62,61],[-61,63],[-59,63],[-30,33],[-28,32],[-56,66],[-55,67],[-53,68],[-51,69],[-50,70],[-48,71],[-47,73],[-23,37],[-25,40],[-48,84],[-47,85],[-7,15],[-5,0],[-90,5],[-89,8],[-90,9],[-89,11],[-88,13],[-45,7],[-29,5],[-58,10],[-29,5],[-89,18],[-37,7],[-73,16],[-73,16],[-72,18],[-72,20],[-72,20],[-72,22],[-71,23],[-35,12],[-42,14],[-84,31],[-83,32],[-82,34],[-81,36],[-67,31],[-12,0],[-45,-1],[-45,1],[-89,2],[-90,3],[-90,6],[-89,7],[-89,9],[-89,11],[-89,13],[-45,7],[-43,8],[-89,16],[-87,19],[-87,20],[-87,22],[-86,23],[-86,26],[-85,27],[-43,14],[-44,16],[-89,32],[-88,35],[-87,36],[-30,13],[-198,86],[-41,19],[-82,38],[-81,39],[-80,42],[-41,21],[-38,21],[-77,44],[-75,45],[-75,47],[-74,49],[-72,50],[-71,51],[-70,53],[-36,27],[-33,27],[-68,56],[-66,57],[-65,58],[-64,60],[-62,61],[-60,62],[-60,64],[-69,41],[-74,47],[-74,48],[-72,50],[-72,51],[-70,53],[-35,27],[-34,28],[-67,55],[-67,57],[-64,59],[-64,59],[-62,61],[-41,42],[-28,6],[-87,22],[-86,24],[-85,25],[-86,27],[-42,14],[-42,15],[-84,31],[-83,32],[-82,34],[-81,36],[-81,37],[-80,39],[-78,41],[-40,21],[-38,21],[-77,44],[-76,45],[-75,47],[-73,48],[-73,50],[-71,52],[-70,52],[-35,28],[-34,27],[-68,55],[-66,57],[-65,59],[-63,60],[-63,60],[-60,63],[-60,63],[-27,31],[-31,13],[-81,37],[-79,39],[-79,41],[-40,21],[-28,15],[-57,33],[-57,33],[-56,34],[-28,17],[-94,59],[-47,30],[-92,61],[-91,64],[-88,66],[-44,34],[-34,27],[-68,56],[-66,57],[-65,58],[-64,60],[-62,61],[-61,62],[-59,64],[-30,32],[-28,32],[-56,66],[-55,67],[-53,68],[-52,69],[-50,71],[-48,71],[-47,72],[-23,37],[-22,36],[-43,74],[-41,75],[-5,8],[-41,42],[-59,64],[-30,32],[-28,32],[-29,34],[-27,32],[-15,17],[-34,42],[-6,8],[-40,52],[-13,16],[-52,69],[-50,71],[-48,71],[-47,72],[-23,37],[-22,36],[-43,74],[-42,75],[-40,76],[-38,76],[-16,35],[-38,65],[-42,75],[-39,75],[-5,10],[-48,65],[-23,31],[-52,72],[-49,73],[-48,73],[-23,38],[-22,36],[-43,74],[-42,75],[-40,75],[-38,77],[-31,66],[-44,14],[-42,15],[-83,30],[-84,33],[-82,34],[-81,35],[-81,38],[-80,39],[-79,40],[-39,21],[-39,21],[-77,44],[-75,46],[-75,47],[-74,48],[-73,50],[-71,51],[-70,53],[-35,27],[-34,27],[-68,56],[-66,57],[-65,58],[-64,60],[-62,61],[-61,62],[-59,64],[-30,32],[-28,32],[-56,66],[-55,67],[-53,68],[-52,70],[-50,70],[-49,71],[-46,72],[-24,37],[-21,36],[-44,74],[-25,45],[-55,68],[-53,68],[-52,69],[-50,70],[-48,71],[-47,73],[-24,37],[-27,46],[-55,95],[-52,97],[-50,98],[-23,49],[-63,134],[-3,0],[-193,14],[-51,4],[-102,9],[-101,12],[-101,15],[-51,7],[-44,8],[-88,17],[-88,18],[-87,20],[-87,22],[-87,23],[-85,26],[-86,27],[-42,14],[-29,10],[-57,20],[-29,11],[-182,68],[-35,13],[-69,27],[-68,29],[-68,29],[-67,31],[-67,31],[-66,33],[-66,34],[-32,18],[-31,16],[-62,35],[-61,36],[-15,9],[-4,1],[-51,13],[-103,27],[-102,29],[-101,32],[-51,16],[-42,15],[-84,31],[-83,32],[-82,34],[-82,35],[-81,38],[-79,39],[-79,40],[-40,21],[-52,29],[-103,60],[-51,31],[-161,99],[-49,31],[-98,65],[-96,66],[-93,70],[-47,36],[-13,10],[-34,15],[-112,52],[-111,56],[-55,29],[-38,21],[-77,44],[-76,45],[-75,47],[-74,48],[-72,50],[-72,52],[-70,53],[-35,27],[-48,38],[-95,80],[-92,82],[-89,84],[-44,43],[-77,77],[-77,72],[-15,13],[-29,28],[-14,13],[-3,3],[-13,3],[-52,14],[-184,49],[-33,10],[-68,19],[-67,21],[-66,21],[-34,11],[-42,15],[-84,31],[-83,32],[-82,34],[-82,36],[-81,37],[-80,39],[-79,41],[-39,21],[-39,21],[-77,44],[-76,45],[-75,47],[-73,48],[-17,12],[-146,79],[-38,21],[-75,43],[-74,45],[-74,46],[-72,48],[-71,49],[-70,50],[-69,52],[-35,27],[-30,24],[-61,49],[-59,51],[-59,52],[-29,26],[-140,129],[-35,33],[-69,67],[-68,68],[-66,71],[-33,36],[-30,34],[-60,70],[-59,72],[-56,73],[-28,37],[-111,150],[-24,33],[-46,65],[-45,67],[-44,67],[-22,35],[-19,32],[-38,65],[-43,31],[-71,53],[-35,27],[-34,27],[-67,55],[-67,57],[-65,59],[-64,60],[-62,61],[-61,62],[-60,63],[-29,33],[-24,27],[-48,56],[-47,56],[-46,57],[-45,58],[-43,59],[-43,60],[-41,60],[-20,30],[-103,157],[-8,13],[-17,27],[-9,13],[-100,158],[-5,9],[-11,17],[-6,10],[-22,36],[-43,74],[-42,75],[-40,76],[-38,76],[-36,77],[-35,78],[-33,79],[-16,40],[-13,35],[-26,70],[-24,70],[-23,71],[-21,72],[-20,71],[-18,72],[-17,73],[-3,11],[-14,31],[-33,79],[-16,40],[-14,39],[-29,80],[-28,81],[-25,81],[-23,81],[-22,83],[-20,82],[-17,83],[-9,42],[-1,9],[-19,55],[-25,81],[-24,81],[-21,82],[-20,83],[-17,83],[-9,42],[-6,35],[-12,72],[-11,73],[-9,72],[-8,73],[-3,33],[-28,98],[-14,52],[-77,310],[-13,53],[-23,104],[-11,54],[-7,41],[-14,83],[-12,84],[-9,84],[-8,84],[-6,84],[-4,85],[-2,84],[-1,43],[0,42],[2,84],[4,84],[6,85],[8,84],[2,20],[0,36],[0,41],[2,84],[4,85],[6,84],[7,84],[10,84],[12,84],[14,83],[7,43],[12,58],[26,118],[30,118],[34,116],[18,58],[15,44],[15,46],[33,92],[18,46],[15,39],[33,79],[24,55],[-9,33],[-19,83],[-18,82],[-8,43],[-11,59],[-18,121],[-9,60],[-4,34],[-4,36],[-7,73],[-6,73],[-4,73],[-2,36],[-3,62],[-1,35],[-1,70],[0,36],[0,41],[1,49],[-5,29],[-12,84],[-9,84],[-8,84],[-6,84],[-4,85],[-2,84],[-1,43],[1,52],[3,105],[2,52],[2,34],[4,58],[1,12],[-4,20],[-13,83],[-12,84],[-10,84],[-8,84],[-6,85],[-4,84],[-1,19],[-4,59],[-4,85],[-2,84],[0,43],[0,42],[2,84],[4,84],[6,85],[7,84],[10,84],[12,84],[13,83],[8,43],[10,48],[17,82],[18,82],[18,75],[21,82],[24,82],[25,81],[27,80],[29,80],[15,41],[20,49],[20,48],[13,35],[16,39],[33,78],[34,78],[36,78],[38,76],[40,76],[42,75],[43,74],[23,38],[23,35],[46,73],[49,71],[50,70],[52,69],[53,69],[55,67],[57,66],[29,33],[23,25],[48,52],[49,50],[49,50],[20,19],[24,83],[12,44],[14,45],[10,32],[21,63],[22,63],[23,62],[12,32],[16,39],[32,78],[35,79],[36,77],[38,76],[40,76],[42,75],[43,74],[23,38],[22,36],[47,72],[49,71],[50,70],[52,70],[53,68],[55,67],[57,66],[29,33],[29,31],[59,64],[61,62],[63,61],[64,60],[65,59],[67,57],[68,55],[35,28],[26,21],[54,41],[28,20],[31,23],[29,21],[58,41],[59,40],[60,40],[61,38],[61,37],[93,54],[8,3],[141,76],[112,56],[82,37],[81,36],[83,34],[84,32],[84,31],[43,15],[42,14],[86,27],[96,28],[34,9],[19,7],[64,19],[71,20],[71,19],[72,18],[72,16],[72,16],[36,7],[58,11],[32,6],[64,12],[32,5],[45,7],[89,13],[90,11],[90,9],[90,8],[89,5],[57,9],[5,16],[16,39],[33,78],[34,78],[37,78],[38,76],[40,76],[41,75],[44,74],[22,38],[19,29],[39,61],[40,59],[41,59],[21,30],[41,56],[30,41],[61,80],[64,78],[43,51],[11,34],[27,80],[29,80],[15,41],[16,39],[33,78],[34,78],[37,78],[38,76],[40,76],[41,75],[44,74],[22,38],[23,35],[47,73],[49,71],[50,70],[52,69],[53,69],[55,67],[57,66],[29,33],[29,31],[60,64],[61,62],[62,61],[64,60],[66,58],[66,58],[68,55],[35,28],[35,27],[70,53],[72,51],[73,50],[74,48],[75,47],[77,46],[77,44],[39,21],[39,21],[80,41],[80,39],[81,37],[82,36],[83,34],[84,32],[84,31],[43,15],[45,15],[91,28],[46,14],[103,30],[31,9],[29,8],[51,21],[83,32],[85,31],[42,15],[43,14],[85,27],[87,25],[87,24],[87,22],[88,20],[89,18],[88,17],[45,8],[34,5],[68,10],[35,5],[190,25],[36,5],[73,8],[73,7],[73,6],[73,5],[73,4],[73,2],[73,1],[37,1],[58,-1],[13,1],[90,10],[90,7],[90,5],[91,4],[90,2],[46,0],[58,0],[83,-3],[47,31],[75,47],[77,46],[77,43],[40,22],[52,28],[107,53],[109,51],[110,48],[56,23],[71,29],[55,21],[111,41],[56,20],[42,14],[86,27],[86,26],[87,23],[88,22],[88,20],[88,19],[49,9],[12,19],[49,71],[50,70],[52,70],[53,68],[56,67],[17,20],[4,11],[27,81],[29,80],[15,40],[16,39],[32,79],[35,78],[36,77],[39,77],[40,76],[41,75],[44,74],[23,37],[22,36],[47,72],[49,71],[50,71],[52,69],[53,68],[56,67],[56,66],[29,33],[29,32],[60,63],[61,63],[63,61],[64,59],[58,52],[4,61],[8,84],[10,84],[12,83],[13,84],[8,43],[8,40],[18,83],[19,82],[22,82],[23,82],[25,81],[27,81],[29,80],[16,41],[11,27],[23,58],[25,57],[25,56],[13,28],[135,290],[94,217],[14,32],[29,63],[29,63],[31,63],[33,62],[32,59],[3,68],[6,84],[8,84],[9,84],[12,84],[14,83],[7,43],[8,40],[18,83],[20,83],[21,82],[24,81],[25,82],[27,80],[29,80],[15,41],[16,40],[34,80],[18,41],[104,235],[13,28],[27,58],[28,57],[29,57],[30,56],[30,56],[49,84],[69,110],[53,82],[38,55],[39,54],[40,53],[40,52],[42,52],[21,26],[9,11],[0,12],[4,85],[6,84],[8,84],[10,84],[11,84],[14,83],[8,43],[8,41],[17,83],[20,82],[21,82],[24,82],[25,81],[27,80],[29,80],[16,41],[15,39],[33,79],[35,78],[36,77],[39,77],[40,75],[42,75],[43,74],[23,38],[5,7],[32,78],[35,79],[36,77],[39,76],[40,76],[42,75],[43,74],[23,38],[23,35],[47,73],[48,71],[51,70],[52,69],[53,69],[56,67],[56,66],[30,33],[22,24],[46,49],[46,49],[48,48],[49,47],[49,46],[50,45],[51,45],[27,23],[54,45],[22,34],[51,70],[52,69],[34,43],[24,58],[34,78],[37,77],[38,77],[40,76],[20,35],[25,78],[35,98],[19,49],[2,6],[6,14],[2,7],[42,103],[67,189],[10,27],[2,5],[-5,17],[-22,82],[-20,82],[-18,83],[-8,43],[-8,45],[-15,92],[-7,46],[-24,171],[-7,60],[-12,120],[-9,121],[-4,120],[-2,61],[0,88],[-3,31],[-8,84],[-6,84],[-4,85],[-3,84],[0,43],[0,42],[2,84],[4,84],[6,85],[8,84],[10,84],[11,84],[14,83],[8,43],[8,40],[17,83],[10,40],[-3,47],[-2,32],[-25,493],[-2,43],[-2,88],[0,45],[0,41],[2,85],[4,84],[6,85],[8,84],[9,84],[12,83],[14,84],[7,42],[9,41],[17,83],[20,82],[21,82],[24,82],[25,81],[27,81],[30,80],[15,40],[16,39],[32,79],[35,78],[37,77],[38,77],[40,76],[42,75],[44,74],[23,37],[22,36],[47,72],[49,71],[51,71],[52,69],[54,68],[55,67],[57,66],[29,33],[25,28],[52,55],[53,54],[54,54],[56,53],[56,51],[57,51],[30,25],[8,11],[36,46],[19,23],[16,24],[45,64],[47,64],[48,63],[49,62],[51,61],[52,60],[27,30],[29,32],[60,63],[61,62],[63,62],[65,59],[65,59],[67,57],[69,56],[35,27],[34,27],[71,53],[73,51],[73,50],[74,49],[76,47],[77,45],[78,44],[39,22],[32,16],[64,33],[16,8],[23,21],[42,38],[-14,59],[-18,83],[-9,42],[-3,15],[-5,32],[-3,15],[-70,407],[-6,31],[-9,63],[-9,63],[-7,63],[-4,31],[-14,138],[-8,54],[-5,34],[-10,69],[-8,68],[-6,69],[-6,69],[-4,69],[-3,69],[-1,70],[0,35],[0,41],[2,85],[4,84],[6,85],[8,84],[9,84],[12,83],[14,84],[8,43],[8,40],[17,83],[20,82],[22,82],[23,82],[25,81],[28,81],[29,80],[15,40],[6,15],[12,30],[6,15],[115,279],[15,35],[31,71],[32,70],[34,70],[36,69],[37,68],[59,102],[1,2],[87,140],[34,52],[36,52],[51,70],[52,69],[54,68],[55,67],[57,66],[29,34],[30,31],[48,52],[5,15],[25,81],[27,80],[24,66],[15,42],[29,80],[15,41],[16,38],[33,79],[35,78],[36,77],[39,77],[40,76],[42,75],[44,74],[23,37],[4,7],[9,14],[4,8],[21,32],[22,35],[46,68],[47,68],[48,66],[50,66],[52,64],[81,96],[115,127],[44,47],[45,45],[63,61],[65,60],[66,59],[67,57],[68,55],[35,28],[35,27],[71,53],[73,51],[73,50],[75,49],[76,47],[76,45],[78,44],[40,22],[39,20],[80,41],[81,39],[82,37],[83,36],[83,34],[84,32],[85,31],[43,15],[15,5],[30,13],[84,34],[84,32],[85,31],[43,15],[43,14],[86,27],[87,25],[87,24],[89,22],[88,20],[89,18],[90,17],[45,7],[44,7],[91,13],[90,11],[91,9],[91,8],[91,5],[91,4],[91,2],[45,0],[46,0],[91,-2],[91,-4],[91,-5],[91,-8],[91,-9],[90,-11],[91,-13],[44,-7],[37,-6],[72,-13],[72,-14],[72,-16],[72,-16],[71,-18],[71,-19],[71,-20],[35,-10],[7,-3],[33,-10],[46,-14],[12,-1],[7,0],[21,0],[59,0],[20,-1],[3,0],[8,0],[31,-1],[16,0],[6,0],[7,0],[28,-1],[3,0],[349,0],[13,0],[13,0],[14,0],[41,-1],[11,1],[32,1],[14,1],[44,1],[89,2],[44,0],[13,0],[27,0],[13,0],[14,0],[49,-1],[99,-4],[99,-5],[98,-8],[50,-4],[13,-2],[35,-3],[70,-8],[70,-10],[69,-10],[34,-5],[68,-12],[11,-2],[16,-3],[50,-7],[54,-10],[106,-20],[106,-22],[105,-25],[52,-14],[13,-3],[29,-8],[58,-16],[28,-8],[14,-4],[17,-5],[35,-11],[17,-5],[13,-4],[23,-7],[31,-10],[126,-2],[246,7],[145,6],[320,22],[235,18],[5,0],[9,1],[4,0],[279,20],[128,14],[146,17],[34,5],[14,3],[31,8],[98,30],[8,2],[16,5],[9,2],[40,12],[54,19],[6,2],[10,4],[5,2],[157,54],[8,3],[17,6],[10,3],[7,2],[24,8],[165,69],[151,71],[58,31],[127,85],[40,30],[125,107],[105,96],[15,14],[19,36],[20,37],[6,11],[5,9],[11,19],[5,9],[6,11],[13,21],[25,42],[12,21],[7,10],[4,7],[7,12],[5,8],[14,22],[30,46],[15,23],[7,11],[11,16],[12,19],[11,23],[37,78],[38,76],[40,76],[42,75],[44,74],[23,38],[23,35],[8,13],[19,30],[16,24],[23,36],[57,83],[25,36],[18,30],[19,34],[8,12],[8,14],[17,27],[9,14],[22,35],[46,71],[47,69],[50,69],[25,34],[9,12],[28,36],[57,72],[28,36],[10,11],[28,33],[57,66],[29,33],[27,29],[57,60],[28,30],[10,10],[24,24],[48,47],[48,46],[50,46],[50,44],[51,44],[62,52],[73,58],[18,13],[19,15],[12,9],[50,37],[101,72],[104,69],[106,66],[54,33],[12,7],[36,20],[70,40],[36,20],[21,11],[43,22],[21,11],[14,7],[56,27],[114,54],[57,26],[14,6],[5,2],[11,4],[5,2],[26,12],[38,16],[77,31],[38,15],[13,5],[43,16],[87,31],[44,16],[61,19],[122,37],[61,18],[13,4],[57,15],[115,28],[115,25],[116,22],[58,10],[38,6],[76,11],[38,5],[13,2],[36,4],[72,8],[71,7],[72,6],[72,5],[72,3],[72,2],[72,2],[36,0],[59,-1],[117,-3],[118,-6],[117,-9],[58,-6],[14,-1],[64,-8],[129,-17],[64,-9],[45,-8],[89,-17],[90,-17],[6,2],[39,6],[56,9],[112,15],[56,7],[243,27],[253,56],[142,37],[11,3],[21,6],[10,2],[436,111],[59,15],[20,5],[9,2],[7,2],[7,2],[8,2],[14,3],[19,4],[4,1],[5,1],[10,3],[16,5],[39,12],[4,1],[7,2],[4,1],[81,23],[7,2],[21,6],[185,54],[40,11],[28,8],[48,14],[13,5],[66,18],[87,24],[88,22],[89,20],[66,14],[67,12],[180,29],[68,10],[67,8],[91,9],[91,7],[91,6],[91,4],[92,2],[45,0],[46,0],[91,-2],[92,-4],[91,-6],[91,-7],[90,-9],[91,-11],[90,-13],[45,-7],[45,-8],[90,-16],[89,-18],[89,-21],[88,-21],[87,-24],[87,-26],[87,-27],[43,-14],[43,-15],[85,-30],[84,-33],[84,-34],[82,-35],[82,-38],[81,-39],[80,-40],[40,-21],[39,-22],[78,-44],[77,-45]]],"transform":{"scale":[0.000045330551514864405,0.000046672275404801527],"translate":[-94.42312748996653,15.081341048246031]},"objects":{"CONAGUA_GRIJALVA19ABR2010_BUFF20KM_GW":{"type":"GeometryCollection","geometries":[{"arcs":[[0]],"type":"Polygon","properties":{"nom_rha":"Frontera Sur","BUFF_DIST":20,"ORIG_FID":0}}]}}}
\ No newline at end of file
......@@ -151,7 +151,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script>
<script type="text/javascript" src="../js/jszip.min.js"></script>
<script src="../js/grijalva_functions.js"></script>
<script src="../js/riesgos_basemap.js"></script>
<script src="../js/centropais_basemap.js"></script>
<script src="../js/grijalva_charts.js"></script>
</body>
......
......@@ -72,8 +72,8 @@
</div>
<div class="card-body">
<div class="hovereffect zoom">
<img class="card-img" src="img/sumidero.jpg" alt="Ca&ntilde;&oacute;n del Sumidero">
<span class="photo-credit">Foto: Gabriela L&oacute;pez</span>
<img class="card-img" src="img/inundacion.jpg" alt="Ca&ntilde;&oacute;n del Sumidero">
<span class="photo-credit">Foto: Felinto C&oacute;rdoda</span>
<div class="overlay">
<a class="info" href="riesgos/">
<img class="hoverimg mx-auto d-block" src="img/cuenca.png" width="325px">
......
/*
* Copyright 2019 - All rights reserved.
* Rodrigo Tapia-McClung
*
* August 2019
*/
/* global baseFileSize, formatBytes, Promise, omnivore, JSZip, map, layerControl, updateCharts */
/* exported makeBaseMap, baseLayerPromises, drawnItems */
/* Lines related to displaying loading bar are commented */
let baseLayerPromises = [];
/* baseSize = 0,
baseDisplaySize,
baseLoadedSize = 0,
baseLoadedDisplaySize,
baseLayerCounter = 0,
currentBaseLayer = 1;*/
let drawnItems;
/*Object.keys(baseFileSize).forEach((name) => {
if (name.split(".")[1] == "zip") {
baseSize += parseFloat(baseFileSize[name].size); // file size to load for zipped base layers
baseDisplaySize = formatBytes(baseSize, 2); // size in pretty units
baseLayerCounter++;
}
});*/
// function to read compressed json and create a leaflet layer
const zip2Lyr = (zipFile, layerName, layerTemplate) => {
baseLayerPromises.push(
new Promise((resolve, reject) => {
fetch(zipFile) // 1) fetch the url
.then(response => { // 2) filter on 200 OK
if (response.status === 200 || response.status === 0) {
return Promise.resolve(response.blob());
} else {
return Promise.reject(new Error(response.statusText));
}
})
.then(JSZip.loadAsync) // 3) chain with the zip promise
.then(zip => {
let filename = Object.keys(zip.files)[0];
let filetype = filename.split(".").pop();
return [zip.file(filename), filetype]; // 4) chain with the text content promise
})
.then(([file, type]) => {
file.async("string").then(
function success(text) { // 5) display the result
/*let baseFile = zipFile.split("/")[3];
¬baseLoadedSize += parseFloat(baseFileSize[baseFile].size); // cumulative loaded size
baseLoadedDisplaySize = formatBytes(baseLoadedSize); // in pretty units
let baseBarWidth = (baseLoadedSize/baseSize*100);*/
/*currentBaseLayer++;
let baseFiles = currentBaseLayer <= baseLayerCounter ? currentBaseLayer : baseLayerCounter;
$("#basemap-fileLoad").html("Cargando capa " + baseFiles + " de " + baseLayerCounter + "<br>" +
"<span class=\"progress\"><span id=\"baseBar\" class=\"progress-bar progress-bar-striped progress-bar-animated\" role=\"progressbar\" style=\"width: " + baseBarWidth + "%;\" aria-valuenow=\"" + baseBarWidth + "\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>" +
"<span class=\"justify-content-center d-flex position-absolute w-100\">" + baseLoadedDisplaySize + "/" + baseDisplaySize + "</span></span>");
*/
if (type == "json") {
layerTemplate.addData(JSON.parse(text));
} else if (type == "topojson") {
layerName = omnivore.topojson.parse(text, null, layerTemplate);
}
resolve("done");
},
function error(e) {
console.log(e);
reject("error");
}
);
});
})
);
}
const createPane = (layerPane, zIndex) => {
map.createPane(layerPane);
map.getPane(layerPane).style.zIndex = zIndex;
map.getPane(layerPane).style["mix-blend-mode"] = "normal";
}
const getSchoolColor = s => {
return s == "Básico" ? "#409400" :
s == "Medio superior" ? "#df6400" :
"#c0d1e5";
}
const getCommerceColor = s => {
return s == "Comercio al por menor en supermercados" ? "#9e4244" :
s == "Comercio al por menor en tiendas departamentales" ? "#fc464e" :
"#c0d1e5";
}
const getCultivoColor = s => {
return s == "Sorgo grano" ? "#ff5500" :
s == "Frijol" ? "#8e1973" :
"#d1ff73";
}
const getCultivoBorder = s => {
return s == "Sorgo grano" ? "#e60000" : // :
s == "Frijol" ? "#a80084" :
"#aaff00"; //;
}
const getPoblacionColor = s => {
return s > 6000 ? "#6b0601" :
s > 4000 ? "#9e4410" :
s > 2500 ? "#d68522" :
s > 1000 ? "#f7ba3e" :
s > 0 ? "#fcdd5d" :
"#ffffff";
}
const getDensidadColor = s => {
return s > 16000 ? "#633096" :
s > 11500 ? "#8c6fbd" :
s > 7000 ? "#a6a2eb" :
s > 2400 ? "#d2d3fa" :
s > 0 ? "#f1f0fc" :
"#ffffff";
}
const getCuencasColor = s => {
return s == "Bajo Grijalva o Grijalva-Villahermosa" ? "rgba(255,255,190,0.3)" :
s == "Medio Grijalva o Grijalva-Tuxtla Gutiérrez" ? "rgba(255,170,0,0.3)" :
"rgba(168,56,0,0.3)";
}
let munis_contexto, zms, pistasaereas, autobuses, supermercados, bancos, agebsbypop, agebsbydens, agricolaoi, agricolapv, escuelas, hospitales, hoteles, subcuencas, tuxtlaVH;
// *** WMS INEGI ***
// // AEROPUERTOS
// let layer_aeropuertos = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
// layers: "c201",
// format: "image/svg+xml",
// transparent: true,
// //pane: "pane_aeropuertosypistas",
// attribution: "INEGI 2019",
// minZoom: 9
// });
// // VIAS FERREAS
// let layer_vferreas = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
// layers: "c202",
// format: "image/svg+xml",
// transparent: true,
// pane: "pane_vferreas",
// attribution: "INEGI 2019"
// });
//Límite geoestadístico estatal
let layer_limiteEstatal = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
layers: "c100", //Límite geoestadístico estatal
format: "image/svg+xml",
transparent: true,
pane: "pane_estatal",
attribution: "INEGI 2019"
});
// // NOMBRES DE CUERPOS DE AGUA
// let layer_nombresWB = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
// layers: "t311",
// format: "image/svg+xml",
// transparent: true,
// attribution: "INEGI 2019",
// minZoom: 9,
// pane: "pane_wbnames"
// });
//RED NACIONAL DE CAMINOS
let layer_RedNacionalCaminos = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
layers: "RNC", //Red nacional de caminos
format: "image/svg+xml",
transparent: true,
pane: "pane_carreteras",
attribution: "INEGI 2019"
});
//MANZANAS
let layer_manzanaswms = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
layers: "c104",
format: "image/svg+xml",
transparent: true,
pane: "pane_manzanas",
attribution: "INEGI 2019",
minZoom: 13,
maxZoom: 18
});
//LOCALIDAD URBANA
let layer_locUrban = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
layers: "c102",
format: "image/svg+xml",
transparent: true,
pane: "pane_locs",
attribution: "INEGI 2019"
});
//Límite geoestadístico municipal
let layer_limiteMunicipal = new L.tileLayer.wms("http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?", {
layers: "c101", //Límite geoestadístico municipal
format: "image/svg+xml",
transparent: true,
pane: "pane_munis",
attribution: "INEGI 2019",
minZoom: 9
});
// *** FIN WMS INEGI ***
let layer_pistasaereas = new L.geoJson(null, {
attribution: "",
//pane: "pane_aeropuertosypistas",
minZoom: 9,
//onEachFeature: pop_escuelas,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let avionMarker = L.BeautifyIcon.icon({
icon: "plane",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "", //"circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 15px;",
html: "<span class=\"fa-stack\"><i class=\"fas fa-plane fa-stack-1x\" style=\"color:#fada5e;\"></i></span>",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent" //,
// textColor: "#C0C0C0"
});
return new L.Marker(latlng, {
icon: avionMarker
});
}
});
// let aeropuertosypistasaereas = new L.layerGroup([layer_aeropuertos, layer_pistasaereas], {
// pane: "pane_aeropuertosypistas",
// minZoom: 9
// });
let layer_autobuses = new L.geoJson(null, {
attribution: "",
pane: "pane_autobuses",
//onEachFeature: pop_escuelas,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let busMarker = L.BeautifyIcon.icon({
icon: "bus1",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "", //"circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 8px;",
html: "<span class=\"fa-stack\"><i class=\"fas fa-bus1 fa-stack-1x\" style=\"color:#fda50f;\"></i></span>",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent" //,
// textColor: "#C0C0C0"
});
return new L.Marker(latlng, {
icon: busMarker
});
}
});
let layer_supermercados = new L.geoJson(null, {
attribution: "",
pane: "pane_supermercados",
//onEachFeature: pop_escuelas,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let shoppingMarker = L.BeautifyIcon.icon({
icon: "shopping-cart",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 15px;",
// html: "<span class=\"fa-stack\"><i class=\"fas fa-shopping-cart fa-stack-1x\" style=\"color:#808080;\"></i></span>",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent",
textColor: getCommerceColor(feature.properties["nombre_act"]) //textColor: "#C0C0C0"
});
return new L.Marker(latlng, {
icon: shoppingMarker
});
}
});
let layer_bancos = new L.geoJson(null, {
attribution: "",
pane: "pane_bancos",
//onEachFeature: pop_escuelas,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let bancosMarker = L.BeautifyIcon.icon({
icon: "desechos",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "", //"circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 12px;",
html: "<span class=\"fa-stack\"><i class=\"fas fa-desechos fa-stack-1x\" style=\"color:#c0ca33;\"></i><i class =\"fas fa-dollar fa-stack-1x fa-inverse\"></i></span>",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent",
textColor: "#C0C0C0"
});
return new L.Marker(latlng, {
icon: bancosMarker
});
}
});
let layer_escuelas = new L.geoJson(null, {
attribution: "",
pane: "pane_escuelas",
//onEachFeature: pop_escuelas,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let escuelaMarker = L.BeautifyIcon.icon({
icon: "escuela",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 15px;",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent",
textColor: getSchoolColor(feature.properties["Nivel"])
});
return new L.Marker(latlng, {
icon: escuelaMarker
});
}
});
let layer_hospitales = new L.geoJson(null, {
attribution: "",
pane: "pane_hospitales",
//onEachFeature: pop_hospitales,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let hospitalMarker = L.BeautifyIcon.icon({
icon: "desechos",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 13px;",
html: "<span class=\"fa-stack\"><i class=\"fas fa-desechos fa-stack-1x\" style=\"color:#ff0000;\"></i><i class =\"fas fa-plus-circle fa-stack-1x fa-inverse\"></i></span>",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent",
textColor: "#C0C0C0"
});
return new L.Marker(latlng, {
icon: hospitalMarker
});
}
});
let layer_hoteles = new L.geoJson(null, {
attribution: "",
pane: "pane_hoteles",
//onEachFeature: pop_hoteles,
pointToLayer: function(feature, latlng) {
// let context = {
// feature: feature,
// variables: {}
// };
let hotelMarker = L.BeautifyIcon.icon({
icon: "bed",
iconSize: [0, 0],
iconAnchor: [7, 10],
iconShape: "circle",
popupAnchor: [0, 0],
innerIconStyle: "font-size: 12px;",
borderWidth: 0,
borderColor: "transparent",
backgroundColor: "transparent",
textColor: "#808080"
});
return new L.Marker(latlng, {
icon: hotelMarker
});
}
});
const style_munis_contexto = () => {
return {
pane: "pane_munis_contexto",
opacity: 1,
color: "rgba(110,110,110,0.4)",
//dashArray: "3 2",
lineCap: "butt",
lineJoin: "miter",
weight: 1.0,
fill: true,
fillOpacity: 1,
fillColor: "rgba(255,255,212,0.4)"
}
}
let layer_munis_contexto = new L.geoJson(null, {
attribution: "",
pane: "pane_munis_contexto",
//onEachFeature: pop_cuencas,
style: style_munis_contexto
});
const style_limZMs = () => {
return {
pane: "pane_limZMs",
opacity: 1,
color: "rgba(101,43,0,0.6)",
dashArray: "",
lineCap: "butt",
lineJoin: "miter",
weight: 1.0,
fillOpacity: 0
}
}
let layer_limZMs = new L.geoJson(null, {
attribution: "",
pane: "pane_limZMs",
//onEachFeature: pop_limZMs,
style: style_limZMs
});
const style_ZMs = () => {
return {
pane: "pane_limZMs",
opacity: 1,
color: "rgba(110,110,100,1)",
dashArray: "",
lineCap: "butt",
lineJoin: "miter",
weight: 1.0,
fillOpacity: "rgba(255,170,0,1)"
}
// switch (String(feature.properties["ZM_NOMBRE"])) {
// case "Tuxtla Gutiérrez":
// return {
// pane: "pane_ZMs",
// opacity: 1,
// color: "rgba(139,47,0,0.6)",
// dashArray: "",
// lineCap: "butt",
// lineJoin: "miter",
// weight: 1.0,
// fill: true,
// fillOpacity: 1,
// fillColor: "rgba(139,60,0,0.6)"
// }
// //break;
// case "Villahermosa":
// return {
// pane: "pane_ZMs",
// opacity: 1,
// color: "rgba(139,47,0,0.6)",
// dashArray: "",
// lineCap: "butt",
// lineJoin: "miter",
// weight: 1.0,
// fill: true,
// fillOpacity: 1,
// fillColor: "rgba(207,152,62,0.6)"
// }
// //break;
// }
}
let layer_ZMs = new L.geoJson(null, {
attribution: "",
pane: "pane_ZMs",
//onEachFeature: pop_ZMs,
style: style_ZMs
});
const style_agebsbypop = feature => {
return {
pane: "pane_agebsbypop",
opacity: .6,
color: "#4d4d4d",
//dashArray: "3 2",
lineCap: "butt",
lineJoin: "miter",
weight: 0.5, //1.0,
fill: true,
fillOpacity: 0.7, //1,
fillColor: getPoblacionColor(feature.properties['POBTOT'])
}
}
let layer_agebsbypop = new L.geoJson(null, {
attribution: "",
pane: "pane_agebsbypop",
//onEachFeature: pop_ANPs,
style: style_agebsbypop
});
const style_agebsbydens = feature => {
return {
pane: "pane_agebsbydens",
opacity: .6,
color: "#4d4d4d",
//dashArray: "3 2",
lineCap: "butt",
lineJoin: "miter",
weight: 0.5, //1.0,
fill: true,
fillOpacity: 0.5, //1,
fillColor: getDensidadColor(feature.properties['DENPOB_KM2']) //"rgba(0,240,2,0.05)"
}
}
let layer_agebsbydens = new L.geoJson(null, {
attribution: "",
pane: "pane_agebsbydens",
//onEachFeature: pop_ANPs,
style: style_agebsbydens
});
const style_agricolaoi = feature => {
return {
pane: "pane_agricolaoi",
opacity: 1,
color: getCultivoBorder(feature.properties['CULTIVO']),
//dashArray: "3 2",
lineCap: "butt",
lineJoin: "miter",
weight: 0.5, //1.0,
fill: true,
fillOpacity: 1,
fillColor: getCultivoColor(feature.properties['CULTIVO'])
}
}
let layer_agricolaoi = new L.geoJson(null, {
attribution: "",
pane: "pane_agricolaoi",
//onEachFeature: pop_ANPs,
style: style_agricolaoi
});
const style_agricolapv = feature => {
return {
pane: "pane_agricolapv",
opacity: 1,
color: getCultivoBorder(feature.properties['CULTIVO']),
//dashArray: "3 2",
lineCap: "butt",
lineJoin: "miter",
weight: 0.5, //1.0,
fill: true,
fillOpacity: 1,
fillColor: getCultivoColor(feature.properties['CULTIVO'])
}
}
let layer_agricolapv = new L.geoJson(null, {
attribution: "",
pane: "pane_agricolapv",
//onEachFeature: pop_ANPs,
style: style_agricolaoi
});
const styleDrawnItems = () => {
let currentId = 0;
drawnItems.eachLayer(l => {
l.feature.properties.id = currentId;
l.feature.properties.color = d3.schemeCategory10[currentId];
l.setStyle({
fillColor: d3.schemeCategory10[currentId],
opacity: 0.5,
fillOpacity: 0.2,
color: d3.schemeCategory10[currentId],
weight: 4
});
currentId++;
});
}
const toggleButtons = () => {
let buttons = [];
buttons.push(document.getElementsByClassName("leaflet-draw-draw-polyline")[0]);
buttons.push(document.getElementsByClassName("leaflet-draw-draw-polygon")[0]);
buttons.push(document.getElementsByClassName("leaflet-draw-draw-rectangle")[0]);
buttons.forEach(b => {
// disable buttons if there are 10 drawn items
if (drawnItems.getLayers().length >= 10) {
b.onClick = "preventEventDefault(); return false";
b.classList.add("draw-control-disabled");
// enable buttons if there are less than 10 drawn items
} else if (drawnItems.getLayers().length < 10) {
b.onClick = null;
b.classList.remove("draw-control-disabled");
}
})
}
const makeBaseMap = () => {
createPane("pane_munis", 402);
createPane("pane_munis", 402);
createPane("pane_ZMs", 403);
createPane("pane_limZMs", 404);
createPane("pane_locs", 405);
createPane("pane_cuencas", 406);
createPane("pane_buffer", 407);
createPane("pane_manzanas", 408);
createPane("pane_estatal", 409);
createPane("pane_carreteras", 410);
createPane("pane_wbnames", 421);
createPane("pane_aeropuertosypistas", 411);
createPane("pane_autobuses", 412);
createPane("pane_escuelas", 413);
createPane("pane_hoteles", 414);
createPane("pane_hospitales", 415);
createPane("pane_supermercados", 416);
createPane("pane_bancos", 417);
createPane("pane_vferreas", 418);
createPane("pane_agricolaoi", 419);
createPane("pane_agricolapv", 420);
createPane("pane_agebsbypop", 421);
createPane("pane_agebsbydens", 422);
/*$("#basemap-fileLoad").html("Cargando capa 1 de " + baseLayerCounter + "<br>" +
"<span class=\"progress\"><span id=\"baseBar\" class=\"progress-bar progress-bar-striped progress-bar-animated\" role=\"progressbar\" style=\"width: 0%;\" aria-valuenow=\"0\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>" +
"<span class=\"justify-content-center d-flex position-absolute w-100\">0/" + baseDisplaySize + "</span></span>");*/
// layerControl.addOverlay(layer_nombresWB, "Nombres cuerpos de agua");
layerControl.addOverlay(layer_RedNacionalCaminos, "Red Nacional de Caminos <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/mdm6wms?map=/opt/map/mdm60/mdm61leyendaprueba.map&Request=GetLegendGraphic&format=image/png&Version=1.1.1&Service=WMS&LAYER=c200\" alt=\"Red Nacional de Caminos\"/>");
zip2Lyr("../centropais/data/munis_contexto.zip", munis_contexto, layer_munis_contexto);
layerControl.addOverlay(layer_munis_contexto, "&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"rgba(255,255,212,0.4)\" stroke=\"rgba(110,100,100,0.4)\" stroke-dasharray=\" \"></rect></svg>&nbsp; Municipios para dar contexto a la región");
// zip2Lyr("../riesgos/data/Central de autobuses.zip", autobuses, layer_autobuses);
// layerControl.addOverlay(layer_autobuses, "<i class=\"fa fa-bus1\" style=\"color:#fda50f;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Central de Autobuses");
// zip2Lyr("../grijalva/data/escuelas.zip", escuelas, layer_escuelas);
// layerControl.addOverlay(layer_escuelas, "Escuelas con 50 personas ocupadas o más<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-escuela\" style=\"color:#409400;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Básico<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-escuela\" style=\"color:#df6400;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Medio superior<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-escuela\" style=\"color:#c0d1e5;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Otras escuelas");
// zip2Lyr("../grijalva/data/hospitales.zip", hospitales, layer_hospitales);
// layerControl.addOverlay(layer_hospitales, "<span class=\"fa fa-stack\" style=\"padding-top: 6px;\"><i class=\"fas fa-desechos fa-stack-1x\" style=\"color:#ff0000;\"></i><i class=\"fas fa-plus-circle fa-stack-1x fa-inverse\"></i></span>Hospitales con 50 personas ocupadas o más");
// zip2Lyr("../grijalva/data/hoteles.zip", hoteles, layer_hoteles);
// layerControl.addOverlay(layer_hoteles, "&nbsp; <i class=\"fas fa-bed style=\"color:#808080;\"></i> Hoteles principales");
// zip2Lyr("../riesgos/data/Supermercados y tiendas departamentales.zip", supermercados, layer_supermercados);
// layerControl.addOverlay(layer_supermercados, "Supermercados y tiendas departamentales<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-shopping-cart\" style=\"color:#9e4244 ;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Supermercados<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class=\"fa fa-shopping-cart\" style=\"color:#fc464e;margin-top:3px; margin-left:0px;font-size: 13px;\"></i> Tiendas Departamentales");
// zip2Lyr("../riesgos/data/Bancos.zip", bancos, layer_bancos);
// layerControl.addOverlay(layer_bancos, "<span class = \"fa fa-stack\" style=\"padding-top: 6px;\"><i class=\"fas fa-desechos fa-stack-1x\" style=\"color:#c0ca33;\"></i><i class=\"fas fa-dollar fa-stack-1x fa-inverse\"></i></span>Bancos");
// layerControl.addOverlay(layer_vferreas, "<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/mdm6wms?map=/opt/map/mdm60/mdm61leyendaprueba.map&Request=GetLegendGraphic&format=image/png&Version=1.1.1&Service=WMS&LAYER=c202\" alt=\"Vías Férreas\"/>");
// zip2Lyr("../riesgos/data/agricola_oi.zip", agricolaoi, layer_agricolaoi);
// layerControl.addOverlay(layer_agricolaoi, "Ciclo agrícola (Otoño-Invierno), SIAP-SADER 2017-2018 <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d1ff73\" stroke=\"#aaff00\" stroke-dasharray=\" \"></rect></svg> Maíz grano<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#8e1973\" stroke = \"#a80084\" stroke-dasharray=\" \"></rect></svg> Frijol<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ff5500\" stroke = \"#e60000\" stroke-dasharray=\" \"></rect></svg> Sorgo grano");
// zip2Lyr("../riesgos/data/agricola_pv.zip", agricolapv, layer_agricolapv);
// layerControl.addOverlay(layer_agricolapv, "Ciclo agrícola (Primavera-Verano), SIAP-SADER 2017 <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d1ff73\" stroke=\"#aaff00\" stroke-dasharray=\" \"></rect></svg> Maíz grano<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#8e1973\" stroke = \"#a80084\" stroke-dasharray=\" \"></rect></svg> Frijol<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ff5500\" stroke = \"#e60000\" stroke-dasharray=\" \"></rect></svg> Sorgo grano");
// zip2Lyr("../riesgos/data/poblacionAGEB.zip", agebsbydens, layer_agebsbydens);
// layerControl.addOverlay(layer_agebsbydens, "Densidad de población total por AGEB <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ffffff\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> Sin Población<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#f1f0fc\" stroke = \"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 1 - 2400 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d2d3fa\" stroke = \"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 2401 - 7000 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#a6a2eb\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 7001 - 11500 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#8c6fbd\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 11501 - 16000 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#633096\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 16001 - 67000");
// zip2Lyr("../riesgos/data/poblacionAGEB.zip", agebsbypop, layer_agebsbypop);
// layerControl.addOverlay(layer_agebsbypop, "Población total por AGEB <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ffffff\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> Sin Población<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#fcdd5d\" stroke = \"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 0 - 1000 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#f7ba3e\" stroke = \"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 1001 - 2500 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d68522\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 2501 - 4000 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#9e4410\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 4001 - 6000 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height =\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#6b0601\" stroke=\"rgba(0,0,0,0.6)\" stroke-dasharray=\" \"></rect></svg> 6001 - 18600");
// layerControl.addOverlay(layer_manzanaswms, "<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/mdm6wms?map=/opt/map/mdm60/mdm61leyendaprueba.map&Request=GetLegendGraphic&format=image/png&Version=1.1.1&Service=WMS&LAYER=c102m\" alt=\"Manzanas\"/>");
layerControl.addOverlay(layer_locUrban, "<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/mdm6wms?map=/opt/map/mdm60/mdm61leyendaprueba.map&Request=GetLegendGraphic&format=image/png&Version=1.1.1&Service=WMS&LAYER=c102\" alt=\"Localidades urbanas\"/>");
// zip2Lyr("../grijalva/data/limites_TG_V.zip", tuxtlaVH, layer_limZMs);
// layerControl.addOverlay(layer_limZMs, "&nbsp; <svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"none\" stroke=\"rgba(101,43,0,0.6)\" stroke-dasharray=\" \"></rect></svg> Límites de zonas metropolitanas");
zip2Lyr("../centropais/data/ZMs.zip", zms, layer_ZMs);
layerControl.addOverlay(layer_ZMs, "&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"rgba(255,170,0,1)\" stroke=\"rgba(110,100,100,1)\" stroke-dasharray=\" \"></rect></svg>&nbsp;Zonas metropolitanas");
// zip2Lyr("../grijalva/data/cuencas.zip", subcuencas, layer_cuencas);
// layerControl.addOverlay(layer_cuencas, "Cuenca y subcuencas del Grijalva, CONAGUA 2017<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"rgba(255,255,190,0.3)\" stroke=\"rgba(168, 0,00,0.3)\" stroke-dasharray=\" \"></rect></svg> Bajo Grijalva o Grijalva-Villahermosa<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"rgba(255,170,0,0.3)\" stroke=\"rgba(168,0,0,0.3)\" stroke-dasharray=\" \"></rect></svg> Medio Grijalva o Grijalva-Tuxtla-Gutiérrez<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"rgba(168,56,0,0.3)\" stroke=\"rgba(168,0,0,0.3)\" stroke-dasharray=\" \"></rect></svg> Alto Grijalva o Grijalva-La Concordia");
layerControl.addOverlay(layer_limiteMunicipal, "<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=c101&format=image/png&STYLE=default\" alt=\"Límite municipal\"/>");
layerControl.addOverlay(layer_limiteEstatal, "Límite estatal <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/wms61?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=c100&format=image/png&STYLE=default\" alt=\"Límite Estatal\"/>");
// Localize Leaflet.Draw texts
L.drawLocal = {
draw: {
toolbar: {
actions: {
title: "Cancelar dibujo",
text: "Cancelar"
},
finish: {
title: "Terminar dibujo",
text: "Terminar"
},
undo: {
title: "Eliminar último punto dibujado",
text: "Eliminar último punto"
},
buttons: {
polyline: "Dibujar una polilínea",
polygon: "Dibujar un polígono",
rectangle: "Dibujar un rectángulo",
circle: "Dibujar un círculo",
marker: "Dibujar un marcador",
circlemarker: "Dibujar un marcador circular"
}
},
handlers: {
circle: {
tooltip: {
start: "Haz click y arrastra para dibujar un círculo"
},
radius: "Radio"
},
circlemarker: {
tooltip: {
start: "Haz click en el mapa para ubicar el marcador circular"
}
},
marker: {
tooltip: {
start: "Haz click en el mapa para ubicar el marcador"
}
},
polygon: {
error: "<strong>Error:</strong>",
tooltip: {
start: "Haz click para empezar a dibujar la figura",
cont: "Haz click para continuar dibujando la figura",
end: "Haz click en el primer punto para cerrar la figura"
}
},
polyline: {
error: "<strong>Error:</strong> las líneas no deben cruzarse",
tooltip: {
start: "Haz click para empezar a dibujar la línea",
cont: "Haz click para continuar dibujando la línea",
end: "Haz click en el último punto para terminar la línea"
}
},
rectangle: {
tooltip: {
start: "Haz click y arrastra para dibujar un rectángulo"
}
},
simpleshape: {
tooltip: {
end: "Suelta el ratón para terminar de dibujar"
}
}
}
},
edit: {
toolbar: {
actions: {
save: {
title: "Guardar los cambios",
text: "Guardar"
},
cancel: {
title: "Cancelar la edición, descarta todos los cambios",
text: "Cancelar"
},
clearAll: {
title: "Limpiar todas las capas",
text: "Limpiar todo"
}
},
buttons: {
edit: "Editar capas",
editDisabled: "No hay capas que editar",
remove: "Eliminar capas",
removeDisabled: "No hay capas que eliminar"
}
},
handlers: {
edit: {
tooltip: {
text: "Arrastra el marcador para editar la figura",
subtext: "Haz click en cancelar para deshacer los cambios"
}
},
remove: {
tooltip: {
text: "Haz click en una figura para eliminarla"
}
}
}
}
}
// leaflet draw control
drawnItems = L.featureGroup().addTo(map);
let drawControl = new L.Control.Draw({
draw: {
polygon: {
showArea: true,
//allowIntersection: false, // Restricts shapes to simple polygons
//drawError: {
//color: "#f9a800",
//message: "<strong>you can't draw that!" // Message that will show when intersect
//},
shapeOptions: {
color: "#42ffc3"
}
},
// disable toolbar item by setting it to false
polyline: {
//allowIntersection:false,
shapeOptions: {
color: "#42ffc3"
}
},
rectangle: {
shapeOptions: {
color: "#42ffc3"
}
},
marker: false,
circlemarker: false,
circle: false // Turns off this drawing tool
},
edit: {
featureGroup: drawnItems,
//remove: false
}
});
map.addControl(drawControl);
// set z-index of panes so actions can be done on drawnItems when editing/deleting
map.on(L.Draw.Event.CREATED, event => {
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "400");
let layer = event.layer,
feature = layer.feature = layer.feature || {}; // Initialize feature
feature.type = feature.type || "Feature"; // Initialize feature.type
feature.properties = feature.properties || {}; // Initialize feature.properties
drawnItems.addLayer(layer); // whatever you want to do with the created layer
// give each drawn item an id and color from an array
styleDrawnItems();
// disable buttons if there are 10 drawn items
toggleButtons();
// after drawing shape, update chart with data for polygons contained inside it
updateCharts();
});
map.on(L.Draw.Event.DELETESTART, () => {
// before deleting shape, bring pane up
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "451");
});
map.on(L.Draw.Event.DELETED, () => {
// after deleting a drawn item, refresh the list of ids and colors
styleDrawnItems();
// enable buttons if there are less than 10 drawn items
toggleButtons();
// after deleting shape, send pane down
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "400");
// and update chart with data:
// if there are drawnItems, use them. If not, use original data
updateCharts();
});
map.on(L.Draw.Event.EDITSTART, () => {
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "451");
// before editing shape, bring pane up
});
map.on(L.Draw.Event.EDITSTOP, () => {
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "400");
// before editing shape, bring pane up
});
map.on(L.Draw.Event.EDITED, () => {
// before editing shape, send pane down
$("#mexmap .leaflet-pane.leaflet-overlay-pane").css("z-index", "400");
// after editing shape, update chart with data for polygons contained inside it
updateCharts();
});
}
\ No newline at end of file
......@@ -22,8 +22,8 @@
<body>
<div id="initial-backdrop">
<img class="img_bg" src="../img/inundacion.jpg" alt="Afectaci&oacute;n por inundaci&oacute;n">
<span class="photo-credit">Foto: Felinto C&oacute;rdoda </span>
<img class="img_bg" src="../img/DSC_0716.jpg" alt="Afectaci&oacute;n por inundaci&oacute;n">
<span class="photo-credit">Foto: Gabriela L&oacute;pez </span>
</div>
<div class="container" id="startHeader">
<div class="jumbotron mt-5" style="background-color: rgba(233,236,239,0.75); opacity: 0.99;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment