To fix Edit Area page, open editarea.php and replace "resetStreet();" with "resetArea();"
To fix the display of areas/polygons on the index.php page, replace the addAreas() function with the following:
function addAreas() {
for(i=0; i < areas.length; i++) {
var AreaName = areas[i]['name'];
var polygon = L.polygon( stringToGeoPoints(areas[i]['geolocations']), { color: 'blue'}).addTo(map);
polygon.bindPopup( "<b>" + AreaName );
}
}
Here is my version of the app, complete with basic navigation:
roadracing.rocks/Map/