[mapguide-users] Re: Problem with Studio 2010 +Flexible layouts Error

Jason Birch jason at jasonbirch.com
Wed Feb 24 02:47:52 EST 2010

The ApplicationDefinition may also be stored as a resource (flexible
web layout) in the MapGuide repository by MG Studio and accessed from
there by Fusion.

When this is the case, I believe you may need to use either Maestro's
XML edit mode or the mapagent's getresourcecontent/setresourcecontent
calls to modify the appdef with custom projection info.


On 2010-02-23, Mark Pendergraft <markp at meadgilman.com> wrote:
> You have to set the projection in the applicationdefinition.xml.
> MapGuide uses WKT in order to deal with projections.  Fusion is now
> based around OpenLayers which uses Proj4js to handle projections.  So
> you need to set the projection in both the MapDefinition (which you have
> already done in MapGuide Studio) as well as in the Map element in the
> ApplicationDefinition.xml file.  The ApplicationDefinition.xml file
> resides in the same folder as the index.html file that you are browsing
> to in your web browser.
> Change your applicationdefinition.xml file in the folder you just
> created to reflect the markups below:
> <?xml version="1.0"?>
> <ApplicationDefinition
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xsi:noNamespaceSchemaLocation="ApplicationDefinition-1.0.0.xsd">
> <TemplateUrl>fusion/templates/mapguide/padmini/index.html</TemplateUrl>
>   <MapSet>
>     <MapGroup id="map">
>       <Map>
>         <Type>MapGuide</Type>
>         <SingleTile>true</SingleTile>
>         <Extension>
>             <ProjectionCode>EPSG:26911</ProjectionCode>
>            <ProjectionDef>+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
> +units=m +no_defs</ProjectionDef>
> <ResourceId>Library://flexisample/map.MapDefinition</ResourceId>
>           <SelectionAsOverlay>true</SelectionAsOverlay>
>           <SelectionColor>0x0000FFA0</SelectionColor>
>         </Extension>
>       </Map>
>       <Extension />
>     </MapGroup>
>   </MapSet>
> --
> View this message in context:
> http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4623862.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list