[mapguide-users] Polygon fill foreground color from FDO property problem

Turcsanyi Zoltan zolinko at freemail.hu
Fri Oct 22 09:19:35 EDT 2010


Hi Zac,
Thank you, it works now,
but I have another problem:

In the legend doesn't seem to appear the right color (only black square).
Is there any workaround to solve this?

Thx
zoli...

2010.10.21. 2:48 Zac Spitzer:
> I think you need to try putting POPULATION in quotes to be evaluated
>
> 2010/10/21 Turcsanyi Zoltan <zolinko at freemail.hu>:
>> Hi All,
>>
>> I need some help about simple polygon filling with custom color.
>> I'd like to fill polygons with colors stored in database (mapped to an FDO property).
>> I'have tried to edit the layerdefinition xml, but no success.
>> Is there any option to do this?
>>
>> Relevant code from the xml:
>> ...
>>    <Geometry>SDOOBJ</Geometry>
>>    <VectorScaleRange>
>>      <AreaTypeStyle>
>>        <AreaRule>
>>          <LegendLabel>
>>          </LegendLabel>
>>          <AreaSymbolization2D>
>>            <Fill>
>>              <FillPattern>Solid</FillPattern>
>>              <ForegroundColor>POPULATION</ForegroundColor>
>>              <BackgroundColor>FF000000</BackgroundColor>
>>            </Fill>
>>          </AreaSymbolization2D>
>>        </AreaRule>
>>      </AreaTypeStyle>
>>    </VectorScaleRange>
>> ...
>>
>> where POPULATION is the FDO string property - containing int values.
>>
>> TIA
>> zolinko
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
>
>



More information about the mapguide-users mailing list