Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<gisMappingDef>
    <mainDimension>
        <dimensionName>Location</dimensionName>
        <levels>
            <levelName>Country</levelName>
            <layerName>o3:countries</layerName>
            <levelAttributeName>label</levelAttributeName>
            <layerAttributeName>CNTRY_NAME</layerAttributeName>
            <visibility>ALWAYS</visibility>
        </levels>
        <levels>
            <levelName>City</levelName>
            <layerName>o3:worldcities</layerName>
            <levelAttributeName>label</levelAttributeName>
            <layerAttributeName>NAME</layerAttributeName>
            <parentLayerAttributeName>COUNTRY</parentLayerAttributeName>
            <visibility>ONLY_SELECTED_LEVEL</visibility>
        </levels>
    </mainDimension>
    <mapDef>
        <layers>
            <name>o3:countries</name>
            <label>Countries</label>
            <type>shp</type>
            <uri>file:/IdeaSoft/O3v5.2.000/files/gis/country.shp</uri>
            <symbolDef>
                <labelAttributeName>CNTRY_NAME</labelAttributeName>
                <defaultFillColor>#c0c0c0</defaultFillColor>
                <strokeColor>#404040</strokeColor>
                <selectedColor>#00b2b2</selectedColor>
                <labelFontFamily>dialog</labelFontFamily>
                <labelFontSize>10</labelFontSize>
                <labelFontStyle>0</labelFontStyle>
                <strokeWidth>1</strokeWidth>
            </symbolDef>
        </layers>
        <layers>
            <name>o3:worldcities</name>
            <label>World Cities</label>
            <type>shp</type>
            <uri>file:/IdeaSoft/O3v5.2.000/files/gis/worldcities.shp</uri>
            <symbolDef>
                <labelAttributeName>NAME</labelAttributeName>
                <defaultFillColor>#3c3c3c</defaultFillColor>
                <strokeColor>#3c3c3c</strokeColor>
                <selectedColor>#00b2b2</selectedColor>
                <labelFontFamily>dialog</labelFontFamily>
                <labelFontSize>10</labelFontSize>
                <labelFontStyle>0</labelFontStyle>
                <strokeWidth>1</strokeWidth>
            </symbolDef>
        </layers>
    </mapDef>
 <maxExtent>-180,-90,180,83624</maxExtent>
</gisMappingDef>

En este ejemplo se declara (bajo el elemento mainDimension) que la dimensión Location tiene dos niveles: Country y City, a su vez cada uno de estos niveles está asociado a un layer del mapa:

...