PHP Classes

Error in editarea.php

Recommend this page to a friend!

      PHP Classes blog  >  Using PHP MySQL with ...  >  All threads  >  Error in editarea.php  >  (Un) Subscribe thread alerts  
Subject:Error in editarea.php
Summary:Required fix to editarea.php
Messages:1
Author:Steve Breese
Date:2015-05-28 14:58:53
Update:2015-05-28 18:36:07
 

  1. Error in editarea.php   Reply   Report abuse  
Picture of Steve Breese 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?