Showing with 1 addition and 3 deletions.
  1. +0 −2 index.php
  2. +1 −1 mappa/index.php
2 changes: 0 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@
ita.sicilia = R.path("m 165.385,337.5462 c -2.23526,0.1161 0.82371,-2.0957 0,0 z m -0.67358,1.5921 c -10.42722,-3.282 4.29229,2.8717 0,0 z m -6.64391,-1.8064 c -0.18882,1.8355 -0.13157,1.279 0,0 z m -1.13283,37.0773 c -6.87797,0.4703 4.8058,5.4217 0,0 z m 14.54312,41.2412 c -5.32764,-1.039 3.18889,1.4986 0,0 z m 7.25624,-11.0528 c -2.48532,-0.3247 1.40534,1.8603 0,0 z m 59.58458,-93.6698 c -3.99438,1.3307 2.91491,1.2982 0,0 z m -3.85362,5.3691 c -1.70054,0.2053 0.96115,1.2706 0,0 z m -5.1526,1.9052 c -4.90948,-0.8541 1.60608,3.8776 0,0 z m 1.55877,2.1216 c -2.59238,3.7839 3.67284,0.8191 0,0 z m 0.99588,3.5939 -0.0825,0.5176 0.0825,-0.5176 z m -45.47873,-10.2527 c 1.0954,1.6234 0.90778,1.3454 0,0 z m 45.80316,18.554 c -14.83507,3.7578 -32.8806,8.3505 -44.86946,-0.8657 -7.10005,8.2744 -18.88469,-4.394 -18.97714,10.9814 9.45124,14.3045 29.5726,16.8284 44.29698,25.7809 7.81013,7.6658 25.18168,18.8413 26.4027,0.434 -6.23878,-14.1894 -1.68653,-25.9611 7.96975,-37.458 -1.77475,-11.9279 -10.29857,5.2857 -14.88407,1.0049 m -10.22611,-13.5328 c -2.54748,-0.6223 2.0534,2.0219 0.15309,-0.031 m -5.41922,0.9185 c -1.34605,-0.7208 0.32176,1.4675 0,0 z").attr(attr);
ita.sardegna = R.path("m 91.01524,229.2878 c -3.69261,2.3548 2.23224,2.9002 0,0 z m -5.01369,0.5532 c -5.27638,9.9645 -19.51598,14.8237 -26.807211,14.3641 4.489891,14.7506 11.810411,28.4607 6.789151,44.394 -6.114257,13.0618 9.97904,28.9483 17.24925,10.6977 6.51302,-4.155 12.56184,5.7969 12.86968,-6.812 -0.36042,-18.5188 7.71551,-38.686 -1.83472,-55.5947 -1.74875,-3.8302 -6.81212,-3.9989 -8.26615,-7.0491 z m 6.20784,0.36 c -3.21683,2.9236 2.67124,2.2096 0,0 z m -29.36212,4.3727 c -4.521564,0.9755 -0.59143,9.0047 0,0 z m 33.96314,3.6351 c -1.83375,1.2834 2.31397,0.9118 0,0 z m 2.11611,2.8186 c -3.64386,0.2862 0.9682,2.4246 0,0 z m -36.43049,57.5477 c -5.250943,0.7893 3.20207,4.9481 0,0 z m 1.95806,2.3003 c -3.202553,7.299 6.39446,2.9834 0,0 z").attr(attr);
ita.molise = R.path("m 216.65203,223.6029 c 17.24042,11.7063 26.53055,-30.6406 8.46456,-16.4484 -4.77044,10.9615 -13.46232,-6.7485 -14.90188,8.8804 -2.4979,10.3907 -4.61576,13.6787 -2.69836,1.0531 -0.9795,17.9471 2.48734,-1.4213 9.13568,6.5149 z").attr(attr);
ita.sardegna = R.path("m 91.01524,229.2878 c -3.69261,2.3548 2.23224,2.9002 0,0 z m -5.01369,0.5532 c -5.27638,9.9645 -19.51598,14.8237 -26.807211,14.3641 4.489891,14.7506 11.810411,28.4607 6.789151,44.394 -6.114257,13.0618 9.97904,28.9483 17.24925,10.6977 6.51302,-4.155 12.56184,5.7969 12.86968,-6.812 -0.36042,-18.5188 7.71551,-38.686 -1.83472,-55.5947 -1.74875,-3.8302 -6.81212,-3.9989 -8.26615,-7.0491 z m 6.20784,0.36 c -3.21683,2.9236 2.67124,2.2096 0,0 z m -29.36212,4.3727 c -4.521564,0.9755 -0.59143,9.0047 0,0 z m 33.96314,3.6351 c -1.83375,1.2834 2.31397,0.9118 0,0 z m 2.11611,2.8186 c -3.64386,0.2862 0.9682,2.4246 0,0 z m -36.43049,57.5477 c -5.250943,0.7893 3.20207,4.9481 0,0 z m 1.95806,2.3003 c -3.202553,7.299 6.39446,2.9834 0,0 z").attr(attr);
ita.sardegna = R.path("m 91.01524,229.2878 c -3.69261,2.3548 2.23224,2.9002 0,0 z m -5.01369,0.5532 c -5.27638,9.9645 -19.51598,14.8237 -26.807211,14.3641 4.489891,14.7506 11.810411,28.4607 6.789151,44.394 -6.114257,13.0618 9.97904,28.9483 17.24925,10.6977 6.51302,-4.155 12.56184,5.7969 12.86968,-6.812 -0.36042,-18.5188 7.71551,-38.686 -1.83472,-55.5947 -1.74875,-3.8302 -6.81212,-3.9989 -8.26615,-7.0491 z m 6.20784,0.36 c -3.21683,2.9236 2.67124,2.2096 0,0 z m -29.36212,4.3727 c -4.521564,0.9755 -0.59143,9.0047 0,0 z m 33.96314,3.6351 c -1.83375,1.2834 2.31397,0.9118 0,0 z m 2.11611,2.8186 c -3.64386,0.2862 0.9682,2.4246 0,0 z m -36.43049,57.5477 c -5.250943,0.7893 3.20207,4.9481 0,0 z m 1.95806,2.3003 c -3.202553,7.299 6.39446,2.9834 0,0 z").attr(attr);

var current = null;
for (var state in ita) {
Expand Down
2 changes: 1 addition & 1 deletion mappa/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$contents = json_decode ($contents, true);

foreach ($contents ['features'] as $row) {
if ($row ['properties']['name']== $_GET ['zoom']) {
if ($row ['properties']['name']== str_replace('_',' ', $_GET ['zoom'])) {
$found = true;
$lat = $row ['geometry']['coordinates'][1];
$lon = $row ['geometry']['coordinates'][0];
Expand Down