<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>How to override the default "all" geometry type stylization for database data sources</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">This has been discussed on the forum recently, so I thought it would be useful to share how I have got around this:-</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">3. In a browser, go to the mapagent/index.html (if you are on the web server itself - </FONT><A HREF="http://localhost/mapguide/mapagent/index.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://localhost/mapguide/mapagent/index.html</FONT></U></A><FONT SIZE=2 FACE="Arial">). 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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">You will be prompted for a username and password and you'll need to log in as an Administrator.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Keith</FONT>
</P>
<br><br>
<CENTER><FONT face="Arial, Helvetica, sans-serif" size=2><B>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.</B></FONT>
<P><FONT face="Arial, Helvetica, sans-serif" size=2>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.</FONT>
<P><FONT face=Webdings color=green size=5>P</FONT> <FONT face="Arial, Helvetica, sans-serif" color=green size=2><B>Consider the environment. Please don't print this e-mail unless you really need to.</B></FONT> </CENTER></P>
</body>
</HTML>