site.xml parser does nothing with the sublayers of a grouplayer
Hi, I´m experiencing the following: The purpose is to set display name and custom proprties on sublayers, but all stated within the SubLayers tag gets ignored by the Site.xml parser. Although the Site.xml gets parsed and REST is working (viewing it in the browser), a grouplayer just shows the sublayers it has found on the ArcGis end point without taking the SubLayers tag in mind. Btw.:I can type any (xsd valid) xml, like a non-existing layer, within the SubLayers tag. Does anyone have any idea where to look for an answer/fix? (Log isn't showing any error's/warnings) Thnx, Martijn ps. Working with version 2.2.1.
0
-
Hi Martijn, It is important to note that the configuration of a map service's layers in an Essentials REST site is merely a reflection of the layers and group layers as they are defined in the ArcGIS Server map service. In other words, you cannot add arbitrary Layer definitions to a GroupLayer's SubLayers element; you can only add those layers that are defined as the group layer's sublayers in the map document (i.e. MXD). If you wish to move layers into a group layer, you must do it in the map document. Also, it is not possible to break up group layers by omitting any of its sublayers. When you include a group layer in your site configuration, it and all its sublayers come along for the ride. However, configuring a sublayer does have a purpose: it allows you to set up template reports, data links, a display name, etc. for that layer. Joel Andrews Software Developer Latitude Geographics Group Ltd. 0 -
Hi Joel, Thank for answering. I just figured out what was wrong. Our sublayers have numbers in the name like 250000 and our site admin wanted to change the displayname to 250.000. But instead of adding a displayname he changed the name attribute. Greets, Martijn 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare