[mapguide-users] RE: Theme layer application - point feature layers

Chris Claydon chris.claydon at autodesk.com
Mon Jan 12 11:05:25 EST 2009


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: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] 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: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] 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: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] 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.

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090112/a1cc7245/attachment.html


More information about the mapguide-users mailing list