[mapguide-users] How to override the default "all" geometry type stylization for database data sources

Campbell, Keith A keith.campbell at atkinsglobal.com
Tue Oct 23 04:55:22 EDT 2007


This has been discussed on the forum recently, so I thought it would be
useful to share how I have got around this:-

1. In MapGuide Studio (not sure whether you can do this with Web
Studio), open the layer definition, and from the file menu, Save As XML
file.

2. Open the XML file just created in an editor. Find the
VectorScaleRange tag. Within this tag, you'll find tags for
PointTypeStyle, LineTypeStyle and AreaTypeStyle. Delete the tags you
don't need (i.e. if you have point features, you don't need the
LineTypeStyle and AreaTypeStyle). Save the file.

3. In a browser, go to the mapagent/index.html (if you are on the web
server itself -  http://localhost/mapguide/mapagent/index.html). Within
the Resource API (the default), click SetResource. When the page loads
in the right-hand frame, enter the full name of the layer resource
(you'll see the format from the default entry, except the suffix is
.LayerDefinition). Enter the full path to your amended XML file in the
Content text box (or Click Browse to find it). Click Submit.

You will be prompted for a username and password and you'll need to log
in as an Administrator.

That should be it. You can check the result by reopening the layer
definition in Studio, or use GetResourceContent in the mapagent to view
the XML.

Keith



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071023/939835de/attachment.html


More information about the mapguide-users mailing list