I suspect that the cause of the problem is that the Sheboygan sample layer uses 
a 1.0.0 layer definition and your own layer uses a 1.1.0 layer definition. The 
SizeContext element was added to the StrokeType element in the later version of 
the schema, thus if you want to use the Theme code with a newer layer, you'll 
need to update the style template (arearuletemplate.xml) to include the extra 
setting.

BTW - SizeContext can be set to either DeviceUnits or MappingUnits. If set to 
DeviceUnits, the line width is interpreted in the units of your screen, and 
remains constant regardless of the map scale. If set to MappingUnits, it is 
interpreted as a real-world size, and thus will increase in width on the screen 
as you zoom in.

Chris.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Arnaud De Groof
Sent: Monday, January 12, 2009 7:30 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Theme layer application - point feature layers

Thanks for this information; I have modified the file 
(../phpviewersample/theme/classes/theme.php) according your remarks. Now, I 
have the possibility to select the point layers. I changed also the different 
reference to the <AreaRule> by <PointRule>. I do not know if these changes are 
correct because I have a problem with this function (polygon layers), see 
http://lists.osgeo.org/pipermail/mapguide-users/2009-January/016202.html

Regards,

Arnaud De Groof
________________________________
From: [email protected] 
[mailto:[email protected]] On Behalf Of Chris Claydon
Sent: vendredi 9 janvier 2009 19:53
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Theme layer application - point feature layers

The sample code generates <AreaRule> elements in a layer definition, and 
therefore applies only to polygon styles. It should be relatively easy to 
modify it to handle point layers and styles instead.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Arnaud De Groof
Sent: Friday, January 09, 2009 2:49 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Theme layer application - point feature layers

Hello,

Is it possible to use the application "Theme Layer" with point feature layers? 
The code sample (phpviewersample/theme) allows only selecting the polygon 
feature layers.

Thanks,

Arnaud De Groof

________________________________
E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information. If you are not the intended addressee and in case of a 
transmission error, please notify the sender immediately and destroy this 
E-mail. Disclosure, reproduction or distribution of this document and its 
possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, (partly) destroyed, lost and/or belated transmission of the 
current information given that unencrypted electronic transmission cannot 
currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an 
originally signed hard copy will be sent to you to confirm the information 
contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this message and/or your computer system.

________________________________
________________________________
E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information. If you are not the intended addressee and in case of a 
transmission error, please notify the sender immediately and destroy this 
E-mail. Disclosure, reproduction or distribution of this document and its 
possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, (partly) destroyed, lost and/or belated transmission of the 
current information given that unencrypted electronic transmission cannot 
currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an 
originally signed hard copy will be sent to you to confirm the information 
contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this message and/or your computer system.

________________________________
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to