[mapguide-internals] Quotes around halfline and center

Ben Trumbore ben.trumbore at autodesk.com
Tue Dec 16 10:00:28 EST 2008


OK, I see that the apostrophes are missing.  That isn't correct, but the layer still renders as expected, right?  I created a default polygon layer with Studio 2010, and it includes the apostrophes.

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Monday, December 15, 2008 5:56 PM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] Quotes around halfline and center

I just created a quick sample layer as a test using studio 2009 and
2.0.2 which is attached

On Tue, Dec 16, 2008 at 9:52 AM, Ben Trumbore <ben.trumbore at autodesk.com> wrote:
> Zac,
>
> Are you sure it does that?  I checked the style editor code history and the apostrophes have been included since at least mid-2005.  The UI dropdown doesn't show the apostrophes, but it adds them to the layer when you make a selection.
>
> I think the stylization engine is also a bit tolerant of missing apostrophes.  If it fails to obtain a value for what it thinks is a property name, it treats it as a constant string, which in this case has a meaningful value.  Traian can correct me if I'm mistaken.
>
>        Ben
>
> -----Original Message-----
> From: mapguide-internals-bounces at lists.osgeo.org
> [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Zac
> Spitzer
> Sent: Monday, December 15, 2008 5:31 PM
> To: MapGuide Internals Mail List
> Subject: Re: [mapguide-internals] Quotes around halfline and center
>
> Thanks Ben!
>
> So why does studio 2009 insert them without quotes?
>
> z
>
> On Tue, Dec 16, 2008 at 1:59 AM, Ben Trumbore <ben.trumbore at autodesk.com> wrote:
>> Zac,
>>
>> Most of the stylization elements are defined as FDO expressions.  So,
>>        <VerticalAlignment>Halfline</VerticalAlignment>
>> says to take the vertical alignment value from a feature property named Halfline, where
>>        <VerticalAlignment>'Halfline'</VerticalAlignment>
>> declares a constant value for the vertical alignment.
>>
>>        Ben
>>
>> -----Original Message-----
>> From: mapguide-internals-bounces at lists.osgeo.org
>> [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Zac
>> Spitzer
>> Sent: Monday, December 15, 2008 3:29 AM
>> To: MapGuide Internals Mail List
>> Subject: [mapguide-internals] Quotes around halfline and center
>>
>> Out of interest, what is the reason for having quotes around some of
>> the stylisation stuff?
>>
>> ie
>>
>> <VerticalAlignment>'Halfline'</VerticalAlignment>
>>
>> z
>>
>> --
>> Zac Spitzer -
>> http://zacster.blogspot.com
>> +61 405 847 168
>> _______________________________________________
>> mapguide-internals mailing list
>> mapguide-internals at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>> _______________________________________________
>> mapguide-internals mailing list
>> mapguide-internals at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>



--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-internals mailing list