JS novice. This statement appears not to be working:
if (kcdfp_parcel[i].InActive == 0)
The data is a geoJSON file with the variable "kcdfp_parcel".
This is a little of the file:
kcdfp_parcel = [{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "MAJOR": "000440", "MINOR": "0018", "PIN": "0004400018", "FarmID": 3101.000000, "LastName": "Codiga", "Acres": 62.940000, "Cooperativ": null, "InActive": 0, "ParcelNumb": "0004400018", "Shape_Leng": 0.024319, "Shape_Area": 0.000030 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -122.254601971999989,
Am I referencing the LastName field properly (e.g. do I need to use kcdfp_parcel.features.InActive)?
Or, is my IF statement wrong?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire