MapGuide Open Source includes a symbolization engine that allows users to define custom libraries of dynamic, expression-driven symbols for everything from highway shields to utility network symbology. This slideshow provides an overview of the new XML Symbol formats and shows participants how to define symbols in XML and use them to stylize feature data in MapGuide. In the class, participants will see how to create a small symbol library and use the symbols for styling points, lines, and labels in MapGuide.
7. MapGuide Cartographic Examples Custom line styles and patterns Repeating line labels and directional arrows Ability to offset symbology from the geometry
8. MapGuide Cartographic Examples A more consistent and accurate way to define cased-lines Use of symbols on lines for labeling, e.g. highway shields, utility symbology, etc.
10. The New Cartographic Model Simple Symbol Definition Graphics Resize Box Point Usage Line Usage Area Usage
11. The New Cartographic Model Simple Symbol Definition Graphics Resize Box Point Usage Line Usage Area Usage Parameter Definition
12. The New Cartographic Model Simple Symbol Definition Graphics Resize Box Point Usage Line Usage Area Usage Parameter Definition Compound Symbol Definition Simple Symbol Simple Symbol . . . Simple Symbol
13. The New Cartographic Model Layer Definition Simple Symbol Definition Vector Layer Definition Graphics Resize Box Vector Scale Range Point Usage Composite Type Style Line Usage Composite Rule Area Usage Composite Symbolization Parameter Definition Symbol Instance Compound Symbol Definition Simple Symbol Simple Symbol . . . Simple Symbol
20. Lab SetupLoad, Unpack, and Check Use the MapGuide Administrator application to load the MapsWithStyle.mgp file.http://localhost:8008/mapguide/mapadmin/login.php Unzip the Lab Application files MapsWithStyleApp.zip to:C:rogram FilesapGuideOpenSourceebServerExtensionswwbr />Unzip the lab exercise files MapsWithStyleEx.zip to: C:br />Test: http://localhost:8008/mapguide/maplab/index.php
23. Defining Graphics as a Path ‘None’ ‘Round’ ‘Square’ ‘Triangle’ ‘None’ ‘Bevel’ ‘Round’ ‘Miter’
24. Specifying Geometry Syntax of the Geometry element is a subset of that defined in the Microsoft XPS Abbreviated Geometry Syntax. All coordinates are specified in millimeters and defined in the Cartesian Plane.
25. Geometry Example To draw a 5 mm square box Would look like: M -2.5,2.5 H 2.5 V -2.5 H -2.5 Z
34. Lab Exercise #1Define an International Hospital Symbol Navigate to C:apsWithStyleab1br />Complete Missing Geometry in Hospital.SymbolDefinition.xml Add Symbol Reference: Library://MapsWithStyle/CartoSymbols/Hospital.SymbolDefinitionin Hospital.LayerDefinition.xml In the Lab1 directory run “loadall.bat”
40. Line Usage ‘FromAngle’ or ‘FromGeometry’ ‘OverlapNone’ ‘OverlapDirect’ ‘OverlapNoWrap’ ‘OverlapWrap’ ‘None’ ‘Bevel’ ‘Round’ ‘Miter’
41. Lab Exercise #2Replace the Railroad Line Pattern Navigate to C:apsWithStyleab2br />Complete Missing Geometry in Railroad.SymbolDefinition.xml Specify the Repeat value in theLineUsage element In the Lab2 directory run “loadall.bat”
58. Parameter Overrides Example <ParameterOverrides> <Override> <SymbolName>MySymbol</SymbolName> <ParameterIdentifier> MY_PARAMETER </ParameterIdentifier> <ParameterValue>“MY_VALUE_FIELD"</ParameterValue> </Override> </ParameterOverrides> Any FDO Expression!!!
59. Lab Exercise #4Replace the ‘#’ in the Shield with the Route Number Navigate to C:apsWithStyleab4br />Review the Parameter Definition of the Shield symbol provided in Freeway.SymbolDefinition.xml Specify the Parameter Identifier: ROUTE_NUMBER. Replace the constant ‘#’ with the Parameter Identifier: %ROUTE_NUMBER%. Review the Parameter Overrides elements provided in Roads.LayerDefinition.xml Set the Parameter Identifier elements to: ROUTE_NUMBER. In the Lab4 directory run “loadall.bat”