operationalLineLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW, function(features) { if (features[0].attributes["STATUS2013"] == 'Not Complete') { //store the current feature updateFeature = features[0]; updateFeature.attributes["STATUS2013"] = 'Complete'; updateFeature.getLayer().applyEdits(null, [updateFeature], null); } else (features[0].attributes["STATUS2013"] == 'Complete') { //store the current feature updateFeature = features[0]; updateFeature.attributes["STATUS2013"] = 'Not Complete'; updateFeature.getLayer().applyEdits(null, [updateFeature], null); } else { map.infoWindow.hide(); } });
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.