MapGuide Open Source Resources

Pass Data From Map To External Report

This PHP file extracts the data from a (key) field for selected features on the specified map layer and passes the values to another report.
Pass Data

Theming Tools

We had some users who wanted to specify theme colors, fill styles, line styles, and line weights for layers in the map, but they didn't want to learn how to use WebStudio or Maestro. We developed these resources so they could see the available options, and so we could easily verify that the LayerDefinition matched the theme specifications they had given us.
Theming Tools Files (ZIP, 10KB)

Area Fill - Place this file in your WebServerExtensions/www/webstudio/images/areas directory, then users can connect to http://YourServer/webstudio/images/areas/AreaFill.html to see the fill styles available.

Line Styles - Place this file in your WebServerExtensions/www/webstudio/images/lines directory, then users can connect to http://YourServer/webstudio/images/lines/LineStyles.html to see the line styles available.

Layer Definition Viewer - This XSLT file takes a polygon LayerDefinition XML and displays the theming details to verify that they match what the user requested. Add this line just after the XML declaration in your LayerDefinition.xml file: <?xml-stylesheet type='text/xsl' href='LayerDefinition.xslt'?>; the MapGuide server won't complain if you leave that line in the file when you want to load the modified file back into the repository. The file was designed to be placed in a subdirectory of WebServerExtensions/www/. We also print this page and add it to the project's documentation.