I have a problem with thematicwidget when I configure my xml file and I specifie my layer with fields and aliases, nameand index of layer. it works correctly for some fields, and for other it generates classes null. here is a picture that illustrates the problem and the script of my; [ATTACH=CONFIG]23795[/ATTACH] My XML file: <configuration> <layers> <layer> <url> http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/BaseTest/MapServer</url> <classificationLayerName> Communes</classificationLayerName> <classificationLayerID> 2</classificationLayerID> <!-- classification methods: Descs are labels --> <classificationMethodTypeDescs>Natural Breaks,Quantile,Equal Interval</classificationMethodTypeDescs> <!-- esriClassifyEqualInterval,esriClassifyGeometricalInterval,esriClassifyNaturalBreaks,esriClassifyQuantile --> <classificationMethodTypes>esriClassifyNaturalBreaks,esriClassifyQuantile,esriClassifyEqualInterval</classificationMethodTypes> <!-- classification fields: Descs are labels --> <classificationFieldTypeDescs> Population_2004,Densite_2000,Surface</classificationFieldTypeDescs> <!-- classification fields: Types are fields --> <classificationFieldTypes> Population_2004,Densite_2000,Surface</classificationFieldTypes> <classificationBreaksMin>4</classificationBreaksMin> <classificationBreaksMax>12</classificationBreaksMax> <classificationBreaksDefault>6</classificationBreaksDefault> <dynamicLabelingPlacement>esriServerPolygonPlacementAlwaysHorizontal</dynamicLabelingPlacement> <!-- don't show labels when zoomed out beyond this scale --> <dynamicLabelingMinScale>18489298</dynamicLabelingMinScale> <dynamicLabelingFontColor>0x191919</dynamicLabelingFontColor> <dynamicLabelingFontFamily>Verdana</dynamicLabelingFontFamily> <dynamicLabelingFontWeight>bold</dynamicLabelingFontWeight> <useproxy>false</useproxy> </layer> </layers> <ui> <widget_dimensions> <width>300</width> <height>350</height> </widget_dimensions> <icons> <!-- Path to programmatically find the assets for Application Builder --> <base_url>widgets/Thematic/assets/images/</base_url> <!-- Title/label for mainState icon across the top widget panel --> <main_icon>i_thematic_icon.png</main_icon> <main_label>Main Panel</main_label> <!-- Title/label for settingsState icon across the top widget panel --> <settings_icon>i_options.png</settings_icon> <settings_label>Settings Panel</settings_label> </icons> <transparency> <comp_label>Transparency</comp_label> <defaulttransparency>0.9</defaulttransparency> </transparency> <color_ramp> <classificationFromColorRampDisplay>Lower values</classificationFromColorRampDisplay> <classificationFromColorRamp>0xCECECE</classificationFromColorRamp> <classificationToColorRampDisplay>Higher values</classificationToColorRampDisplay> <classificationToColorRamp>0x0D538A</classificationToColorRamp> </color_ramp> <classification> <methodsLabel>Classification</methodsLabel> <fieldsLabel>based on</fieldsLabel> <breaksLabel>Number of classes</breaksLabel> </classification> <dynamicLabels> <dynamicLabelsEnabledLabel>Labels</dynamicLabelsEnabledLabel> <dynamicLabelsOnLabel>Hide / Remove</dynamicLabelsOnLabel> <dynamicLabelsOffLabel>Show / Display</dynamicLabelsOffLabel> </dynamicLabels> </ui> </configuration> Need a help please 🙂
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.