« Questionnaire carto avec Limesurvey » : différence entre les versions

Aller à la navigation Aller à la recherche
(Mise à jour du code)
 
Ligne 188 : Ligne 188 :


     function updateDrawnItems(){
     function updateDrawnItems(){
 
         var JSONoutput = JSON.stringify(paintControl.getData());
         if (paintControl.getData().features.length == 0) {
            var JSONoutput = "";
        } else {
            var JSONoutput = JSON.stringify(paintControl.getData());
        }
 
         $('#answer{SGQ}').val(JSONoutput);
         $('#answer{SGQ}').val(JSONoutput);
     }
     }

Menu de navigation