Steve Breese - 2015-05-28 18:36:07
To fix the Edit Area page, you need to replace "resetStreet()" with "resetArea()".
Also, the areas are not being displayed in the index.php map. There is an error ("Uncaught TypeError: Cannot read property '0' of undefined") within this function:
function addAreas() {
for(var i=0; i < areas.length; i++) {
var polygon = L.polygon( stringToGeoPoints(polygon[i]['geolocations']), { color: 'blue'}).addTo(map);
polygon.bindPopup( "<b>" + polygon[i]['name']);
}
}
Does anyone have a fix?