[mapguide-users] Fusion Save Map Issues

Andrew DeMerchant andrew.demerchant at gemtec.ca
Fri Aug 15 14:58:59 EDT 2008


Ah. That works....I had to edit the layout xml, rather than the widget 
xml (so I had to use Maestro, since Studio doesn't allow that). Works now!

Andrew

Rock Beans wrote:
> I put the SaveDWF in a flyout named "File" replacing the "Maps" int he 
> slate template. I was having issue with it on tool bars as well. It 
> kept showing two buttons both enabled or if disabled was set to true 
> in XML then one was disabled. Very strange but it seems to work in 
> flyouts nicely.
>
> *Layout XML:*
> <?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">
> <Title>Title Here</Title>
> <TemplateUrl>fusion/templates/mapguide/slate/index.html</TemplateUrl>
> <MapSet>
> <MapGroup id="MgMainMapId">
> <Map>
> <Type>MapGuide</Type>
> <SingleTile>true</SingleTile>
> <Extension>
> <ResourceId />
> </Extension>
> </Map>
> <Extension />
> </MapGroup>
> <MapGroup id="Default">
> <Map>
> <Type>MapGuide</Type>
> <SingleTile>true</SingleTile>
> <Extension>
> <ResourceId>Library://MySite/Maps/Default.MapDefinition</ResourceId>
> </Extension>
> </Map>
> <Extension />
> </MapGroup>
> </MapSet>
> <WidgetSet>
> <Container xsi:type="UiItemContainerType">
> <Name>Toolbar</Name>
> <Type>Toolbar</Type>
> <Position>top</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>RefreshMap</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectRadius</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectPolygon</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ClearSelection</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>BufferPanel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Measure</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Print</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>ToolbarSecondary</Name>
> <Type>Toolbar</Type>
> <Position>top</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Select</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Pan</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Zoom</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomIn</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomOut</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>InitialMapView</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomToSelection</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>PreviousView</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>NextView</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>ToolbarVertical</Name>
> <Type>Toolbar</Type>
> <Position>left</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>PanNoLabel</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomInNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomOutNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>InitialMapViewNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomToSelectionNoLabel</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>PreviousViewNoLabel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>NextViewNoLabel</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>Statusbar</Name>
> <Type>Splitterbar</Type>
> <Position>bottom</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>StatusCoords</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>StatusSelection</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>StatusScale</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>StatusViewSize</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>MapRightClickMenu</Name>
> <Type>ContextMenu</Type>
> <Position>top</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>RefreshMap</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Pan</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Zoom</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomIn</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomOut</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>Zoom</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>InitialMapView</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>PreviousView</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>NextView</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ZoomToSelection</Widget>
> </Item>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Select</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ClearSelection</Widget>
> </Item>
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>Select More</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectRadius</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectPolygon</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SelectWithin</Widget>
> </Item>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>BufferPanel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Measure</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ViewOptions</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Help</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>About</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>TaskMenu</Name>
> <Type>ContextMenu</Type>
> <Position>top</Position>
> <Extension />
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>BufferPanel</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Measure</Widget>
> </Item>
> </Container>
> <Container xsi:type="UiItemContainerType">
> <Name>FileMenu</Name>
> <Type>Toolbar</Type>
> <Position>top</Position>
> <Extension />
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>File</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SaveMap</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>SaveDWF</Widget>
> </Item>
> </Item>
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>View</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ShowLegendWindow</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ShowOverviewMap</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ShowSelectionWindow</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ShowTaskWindow</Widget>
> </Item>
> <Item xsi:type="SeparatorItemType">
> <Function>Separator</Function>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>RefreshMap</Widget>
> </Item>
> </Item>
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>Options</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>ViewOptions</Widget>
> </Item>
> </Item>
> <Item xsi:type="FlyoutItemType">
> <Function>Flyout</Function>
> <Label>Help</Label>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>Help</Widget>
> </Item>
> <Item xsi:type="WidgetItemType">
> <Function>Widget</Function>
> <Widget>About</Widget>
> </Item>
> </Item>
> </Container>
> <MapWidget>
> <Name>Map</Name>
> <Type>Map</Type>
> <Extension>
> <MenuContainer>MapRightClickMenu</MenuContainer>
> </Extension>
> <MapId>Default</MapId>
> </MapWidget>
> <Widget xsi:type="UiWidgetType">
> <Name>About</Name>
> <Type>About</Type>
> <Location />
> <Extension>
> <AboutURL>/mapguide2009/mapadmin/about.php</AboutURL>
> </Extension>
> <ImageUrl>images/icons/about.png</ImageUrl>
> <ImageClass />
> <Label>About</Label>
> <Tooltip>Click to show information about this application</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>ActivityIndicator</Name>
> <Type>ActivityIndicator</Type>
> <Location />
> <Extension>
> <ElementId />
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>BufferPanel</Name>
> <Type>BufferPanel</Type>
> <Extension>
> <Target>TaskPane</Target>
> </Extension>
> <ImageUrl>images/icons/buffer.png</ImageUrl>
> <ImageClass />
> <Label>Buffer</Label>
> <Tooltip>Click to create a buffer</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ClearSelection</Name>
> <Type>ClearSelection</Type>
> <Extension />
> <ImageUrl>images/icons/select-clear.png</ImageUrl>
> <ImageClass />
> <Label>Clear Selection</Label>
> <Tooltip>Click to clear the current selection</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>PreviousView</Name>
> <Type>ExtentHistory</Type>
> <Extension>
> <Direction>Previous</Direction>
> </Extension>
> <ImageUrl>images/icons/view-back.png</ImageUrl>
> <ImageClass />
> <Label>Previous</Label>
> <Tooltip>Zoom to previous extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>NextView</Name>
> <Type>ExtentHistory</Type>
> <Extension>
> <Direction>Next</Direction>
> </Extension>
> <ImageUrl>images/icons/view-forward.png</ImageUrl>
> <ImageClass />
> <Label>Next</Label>
> <Tooltip>Zoom to next extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Help</Name>
> <Type>Help</Type>
> <Location />
> <Extension>
> <Target>HelpWindow</Target>
> <Url>../../../../localized/help/en/index.htm</Url>
> </Extension>
> <ImageUrl>images/icons/help.png</ImageUrl>
> <ImageClass />
> <Label>Help</Label>
> <Tooltip>Click to get help</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>InitialMapView</Name>
> <Type>InitialMapView</Type>
> <Location />
> <Extension />
> <ImageUrl>images/icons/zoom-full.png</ImageUrl>
> <ImageClass />
> <Label>Zoom Extents</Label>
> <Tooltip>Click to zoom to the full map extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>Legend</Name>
> <Type>Legend</Type>
> <Location />
> <Extension>
> <HideInvisibleLayers>false</HideInvisibleLayers>
> <ShowRootFolder>false</ShowRootFolder>
> <DisabledLayerIcon>images/icons/legend-layer.png</DisabledLayerIcon>
> <RootFolderIcon>images/icons/legend-map.png</RootFolderIcon>
> <ShowMapFolder>false</ShowMapFolder>
> <LayerThemeIcon>images/icons/legend-theme.png</LayerThemeIcon>
> <LayerRasterIcon>images/icons/legend-raster.png</LayerRasterIcon>
> <LayerInfoIcon>images/icons/tree_layer_info.png</LayerInfoIcon>
> <LayerDWFIcon>images/icons/legend-DWF.png</LayerDWFIcon>
> <GroupInfoIcon>images/icons/tree_group_info.png</GroupInfoIcon>
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>MapMenu</Name>
> <Type>MapMenu</Type>
> <Location />
> <Extension />
> <ImageUrl />
> <ImageClass />
> <Label>Maps</Label>
> <Tooltip>Choose a map theme</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>Maptip</Name>
> <Type>Maptip</Type>
> <Location />
> <Extension>
> <Tolerance>2</Tolerance>
> <Target>MaptipWindow</Target>
> <Layer />
> <Delay>350</Delay>
> <WinFeatures>menubar=no,location=no,resizable=no,status=no</WinFeatures>
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Measure</Name>
> <Type>Measure</Type>
> <Location />
> <Extension>
> <DistancePrecision>4</DistancePrecision>
> <MeasureTooltipContainer>MeasureContainerBox</MeasureTooltipContainer>
> <MeasureTooltipType>static</MeasureTooltipType>
> <MeasureTipPositionLeft>15</MeasureTipPositionLeft>
> <Units>none</Units>
> <LineStyleWidth>2</LineStyleWidth>
> <MeasureTipPositionTop>100</MeasureTipPositionTop>
> <FillStyle>rgba(0,0,255, 0.3)</FillStyle>
> <Target>TaskPane</Target>
> <LineStyleColor>rgba(0,0,255,0.3)</LineStyleColor>
> <AreaPrecision>4</AreaPrecision>
> <Type>Both</Type>
> </Extension>
> <ImageUrl>images/icons/measure.png</ImageUrl>
> <ImageClass />
> <Label>Measure</Label>
> <Tooltip>Measure distances on the map</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>Navigator</Name>
> <Type>Navigator</Type>
> <Location />
> <Extension />
> </Widget>
> <Widget>
> <Name>OverviewMap</Name>
> <Type>OverviewMap</Type>
> <Location />
> <Extension>
> <MinRatio>32</MinRatio>
> <MapId />
> <MaxRatio>128</MaxRatio>
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Pan</Name>
> <Type>Pan</Type>
> <Location />
> <Extension />
> <ImageUrl>images/icons/pan.png</ImageUrl>
> <ImageClass />
> <Label>Pan</Label>
> <Tooltip>Click and drag to pan the map</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Print</Name>
> <Type>Print</Type>
> <Extension>
> <ShowPrintUI>true</ShowPrintUI>
> <ShowNorthArrow>false</ShowNorthArrow>
> <PageTitle />
> <ShowLegend>false</ShowLegend>
> <ImageBaseUrl />
> <ShowTitle>false</ShowTitle>
> </Extension>
> <ImageUrl>images/icons/file-print.png</ImageUrl>
> <ImageClass />
> <Label>Print</Label>
> <Tooltip>Print the current map view</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>RefreshMap</Name>
> <Type>RefreshMap</Type>
> <Location />
> <Extension />
> <ImageUrl>images/icons/view-refresh.png</ImageUrl>
> <ImageClass />
> <Label>Refresh</Label>
> <Tooltip>Click to redraw the map</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Select</Name>
> <Type>Select</Type>
> <Location />
> <Extension>
> <Tolerance>3</Tolerance>
> <SelectionType>INTERSECTS</SelectionType>
> <QueryActiveLayer>false</QueryActiveLayer>
> </Extension>
> <ImageUrl>images/icons/select.png</ImageUrl>
> <ImageClass />
> <Label>Select</Label>
> <Tooltip>Click to select features</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>SelectionPanel</Name>
> <Type>SelectionPanel</Type>
> <Location />
> <Extension />
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SelectPolygon</Name>
> <Type>SelectPolygon</Type>
> <Location />
> <Extension>
> <Tolerance>3</Tolerance>
> <SelectionType>INTERSECTS</SelectionType>
> </Extension>
> <ImageUrl>images/icons/select-polygon.png</ImageUrl>
> <ImageClass />
> <Label>Select Polygon</Label>
> <Tooltip>Draw a polygon to perform a selection</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SelectRadius</Name>
> <Type>SelectRadius</Type>
> <Extension>
> <Tolerance>3</Tolerance>
> <RadiusTooltipType>dynamic</RadiusTooltipType>
> <RadiusTooltipContainer />
> <SelectionType>INTERSECTS</SelectionType>
> <DefaultRadius>20</DefaultRadius>
> </Extension>
> <ImageUrl>images/icons/select-radius.png</ImageUrl>
> <ImageClass />
> <Label>Select Radius</Label>
> <Tooltip>Click to select within a radius</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SelectWithin</Name>
> <Type>SelectWithin</Type>
> <Location />
> <Extension>
> <Target>TaskPane</Target>
> <DisableIfSelectionEmpty>true</DisableIfSelectionEmpty>
> </Extension>
> <ImageUrl>images/icons/select-features.png</ImageUrl>
> <ImageClass />
> <Label>Select within</Label>
> <Tooltip>Click to select features within this selection</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>TaskPane</Name>
> <Type>TaskPane</Type>
> <Location />
> <Extension>
> <MenuContainer>TaskMenu</MenuContainer>
> <InitialTask>/MySite/page.html</InitialTask>
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ViewOptions</Name>
> <Type>ViewOptions</Type>
> <Location />
> <Extension>
> <DisplayUnits />
> </Extension>
> <ImageUrl>images/icons/options.png</ImageUrl>
> <ImageClass />
> <Label>Options</Label>
> <Tooltip>Click to change the units displayed</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>Zoom</Name>
> <Type>Zoom</Type>
> <Extension>
> <Tolerance>5</Tolerance>
> <Factor>2</Factor>
> <Direction>in</Direction>
> </Extension>
> <ImageUrl>images/icons/zoom-in.png</ImageUrl>
> <ImageClass />
> <Label>Zoom Rectangle</Label>
> <Tooltip>Click or click and drag on the map to zoom in</Tooltip>
> <StatusText>Click or click and drag on the map to zoom in</StatusText>
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomOut</Name>
> <Type>ZoomOnClick</Type>
> <Location />
> <Extension>
> <Factor>0.5</Factor>
> </Extension>
> <ImageUrl>images/icons/zoom-out-fixed.png</ImageUrl>
> <ImageClass />
> <Label>Zoom Out</Label>
> <Tooltip>Zoom out to display a larger area</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomIn</Name>
> <Type>ZoomOnClick</Type>
> <Location />
> <Extension>
> <Factor>2.0</Factor>
> </Extension>
> <ImageUrl>images/icons/zoom-in-fixed.png</ImageUrl>
> <ImageClass />
> <Label>Zoom In</Label>
> <Tooltip>Zoom in to display more detail</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomToSelection</Name>
> <Type>ZoomToSelection</Type>
> <Location />
> <Extension>
> <MaximumZoomDimension>-1</MaximumZoomDimension>
> <ZoomFactor>2</ZoomFactor>
> </Extension>
> <ImageUrl>images/icons/select-zoom.png</ImageUrl>
> <ImageClass />
> <Label>Zoom Selection</Label>
> <Tooltip>Click to zoom to the selection</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>InitialMapViewNoLabel</Name>
> <Type>InitialMapView</Type>
> <Location />
> <Extension />
> <ImageUrl>images/icons/zoom-full.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Click to zoom to the full map extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>NextViewNoLabel</Name>
> <Type>ExtentHistory</Type>
> <Extension>
> <Direction>Next</Direction>
> </Extension>
> <ImageUrl>images/icons/view-forward.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Zoom to next extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>PanNoLabel</Name>
> <Type>Pan</Type>
> <Location />
> <Extension />
> <ImageUrl>images/icons/pan.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Click and drag to pan the map</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>PreviousViewNoLabel</Name>
> <Type>ExtentHistory</Type>
> <Extension>
> <Direction>Previous</Direction>
> </Extension>
> <ImageUrl>images/icons/view-back.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Zoom to previous extents</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SelectNoLabel</Name>
> <Type>Select</Type>
> <Location />
> <Extension>
> <Tolerance>3</Tolerance>
> <SelectionType>INTERSECTS</SelectionType>
> <QueryActiveLayer>false</QueryActiveLayer>
> </Extension>
> <ImageUrl>images/icons/select.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Click to select features</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomNoLabel</Name>
> <Type>Zoom</Type>
> <Extension>
> <Tolerance>5</Tolerance>
> <Factor>2</Factor>
> <Direction>in</Direction>
> </Extension>
> <ImageUrl>images/icons/zoom-in.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Click or click and drag on the map to zoom in</Tooltip>
> <StatusText>Click or click and drag on the map to zoom in</StatusText>
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomInNoLabel</Name>
> <Type>ZoomOnClick</Type>
> <Location />
> <Extension>
> <Factor>2.0</Factor>
> </Extension>
> <ImageUrl>images/icons/zoom-in-fixed.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Zoom in to display more detail</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomOutNoLabel</Name>
> <Type>ZoomOnClick</Type>
> <Location />
> <Extension>
> <Factor>0.5</Factor>
> </Extension>
> <ImageUrl>images/icons/zoom-out-fixed.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Zoom out to display a larger area</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ZoomToSelectionNoLabel</Name>
> <Type>ZoomToSelection</Type>
> <Location />
> <Extension>
> <MaximumZoomDimension>-1</MaximumZoomDimension>
> <ZoomFactor>2</ZoomFactor>
> </Extension>
> <ImageUrl>images/icons/select-zoom.png</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Click to zoom to the selection</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ShowOverviewMap</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showOverviewMap()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/icons/options.png</ImageUrl>
> <ImageClass />
> <Label>Show Overview Map</Label>
> <Tooltip>Display the overview map window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ShowTaskWindow</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showTaskPane()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/icons/options.png</ImageUrl>
> <ImageClass />
> <Label>Show Task Pane</Label>
> <Tooltip>Display the task pane window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ShowLegendWindow</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showLegend()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/icons/options.png</ImageUrl>
> <ImageClass />
> <Label>Show Legend</Label>
> <Tooltip>Display the legend window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>ShowSelectionWindow</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showSelectionPanel()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/icons/options.png</ImageUrl>
> <ImageClass />
> <Label>Show Selection Panel</Label>
> <Tooltip>Display the selection window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget>
> <Name>StatusCoords</Name>
> <Type>CursorPosition</Type>
> <Extension>
> <Precision>4</Precision>
> <Template>x: {x}, y: {y}</Template>
> <Units>dd</Units>
> </Extension>
> </Widget>
> <Widget>
> <Name>StatusSelection</Name>
> <Type>SelectionInfo</Type>
> <Location />
> <Extension>
> <EmptyText>No features selected</EmptyText>
> <Template>{0} features selected on {1} layers</Template>
> </Extension>
> </Widget>
> <Widget>
> <Name>StatusScale</Name>
> <Type>EditableScale</Type>
> <Extension>
> <Precision>4</Precision>
> </Extension>
> </Widget>
> <Widget>
> <Name>StatusViewSize</Name>
> <Type>ViewSize</Type>
> <Location />
> <Extension>
> <Precision>2</Precision>
> <Template>{w} x {h} {units}</Template>
> <Units>Meters</Units>
> </Extension>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>StatusOverviewMap</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showOverviewMap()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/iconNavigator.gif</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Display the overview map window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>StatusNavigator</Name>
> <Type>InvokeScript</Type>
> <Location />
> <Extension>
> <Script>showOverviewMap()</Script>
> <Target />
> </Extension>
> <ImageUrl>images/iconNavigator.gif</ImageUrl>
> <ImageClass />
> <Label />
> <Tooltip>Display the overview map window</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SaveMap</Name>
> <Type>SaveMap</Type>
> <Extension>
> <Format>PNG</Format>
> </Extension>
> <ImageUrl>images/icons/file-save.png</ImageUrl>
> <ImageClass />
> <Label>Export Map as Image</Label>
> <Tooltip>Click to save the current map as an image</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> <Widget xsi:type="UiWidgetType">
> <Name>SaveDWF</Name>
> <Type>SaveMap</Type>
> <Extension>
> <Format>DWF</Format>
> <PrintLayout>
> <Name>Default</Name>
> <Scale>10000</Scale>
> <Scale>25000</Scale>
> <Scale>50000</Scale>
> <ResourceId>Library://MySite/Layouts/default.PrintLayout</ResourceId>
> <PageHeight>8.5</PageHeight>
> <PageWidth>11</PageWidth>
> <Margins>
> <Top>1.5</Top>
> <Left>0.5</Left>
> <Bottom>0.5</Bottom>
> <Right>1.5</Right>
> </Margins>
> </PrintLayout>
> </Extension>
> <ImageUrl>images/icons/file-save.png</ImageUrl>
> <ImageClass />
> <Label>Export Map as DWF</Label>
> <Tooltip>Click to save the current map as a DWF document</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </Widget>
> </WidgetSet>
> <Extension />
> </ApplicationDefinition>
>
> *Widget XML:*
> <?xml version="1.0" encoding="utf-8"?>
> <UiWidgetType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <Name>SaveDWF</Name>
> <Type>SaveMap</Type>
> <Extension>
> <Format>DWF</Format>
> <PrintLayout>
> <Name>Default</Name>
> <Scale>10000</Scale>
> <Scale>25000</Scale>
> <Scale>50000</Scale>
> <ResourceId>Library://MySite/Layouts/default.PrintLayout</ResourceId>
> <PageHeight>8.5</PageHeight>
> <PageWidth>11</PageWidth>
> <Margins>
> <Top>1.5</Top>
> <Left>0.5</Left>
> <Bottom>0.5</Bottom>
> <Right>1.5</Right>
> </Margins>
> </PrintLayout>
> </Extension>
> <ImageUrl>images/icons/file-save.png</ImageUrl>
> <ImageClass />
> <Label>Export Map as DWF</Label>
> <Tooltip>Click to save the current map as a DWF document</Tooltip>
> <StatusText />
> <Disabled>false</Disabled>
> </UiWidgetType>
>
> On Fri, Aug 15, 2008 at 12:32 PM, Andrew DeMerchant 
> <andrew.demerchant at gemtec.ca <mailto:andrew.demerchant at gemtec.ca>> wrote:
>
>     Exactly what did you do to fix this? When I edit the XML for that
>     widget (using the Edit XML button in Studio) I end up with a
>     messed up Fusion layout - all of my toolbars vanish except for 2
>     SaveMap widgets that show up (neither work, of course).
>
>     Andrew
>
>     Rock Beans wrote:
>>     I am getting a DWF now after fitting it with the proper XML tags.
>>     I wonder why our code is different. I had to use UiWidgetType
>>     where you used Widget. Right now I click on the button and a
>>     flyout with the name of the print layout comes up with another
>>     flyout for scales. I think the problem is MapGuide Studio 2009
>>     does not handle this properly. Any information on this?
>>
>>     <?xml version="1.0" encoding="utf-8"?>
>>     <UiWidgetType
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>     <Name>SaveDWF</Name>
>>     <Type>SaveMap</Type>
>>     <Extension>
>>     <Format>DWF</Format>
>>     <PrintLayout>
>>     <ResourceId>Library://Samples/Sheboygan/Layouts/SheboyganMap.PrintLayout</ResourceId>
>>     <Scale>10000</Scale>
>>     <PageHeight>8.5</PageHeight>
>>     <PageWidth>11</PageWidth>
>>     <Margins>
>>     <Top>1.5</Top>
>>     <Left>0.5</Left>
>>     <Bottom>0.5</Bottom>
>>     <Right>1.5</Right>
>>     </Margins>
>>     </PrintLayout>
>>     </Extension>
>>     <ImageUrl>images/icons/file-save.png</ImageUrl>
>>     <ImageClass />
>>     <Label>Save as DWF</Label>
>>     <Tooltip>Click to save the current map as a DWF document</Tooltip>
>>     <StatusText />
>>     </UiWidgetType>
>>
>>
>>     On Thu, Aug 14, 2008 at 12:07 PM, Jason Birch
>>     <Jason.Birch at nanaimo.ca <mailto:Jason.Birch at nanaimo.ca>> wrote:
>>
>>         What does your AppDef look like for that widget?  This is
>>         working in my map (credit to DM Solutions):
>>
>>         <Widget xsi:type="WidgetType">
>>
>>         <Name>SaveDWF</Name>
>>
>>         <Type>SaveMap</Type>
>>
>>         <Extension>
>>
>>         <Format>DWF</Format>
>>
>>         <PrintLayout>
>>
>>         <Name>First</Name>
>>
>>         <ResourceId>Library://Nanaimo/Apps/NanaimoMap/PrintLayouts/NanaimoMapDefault.PrintLayout</ResourceId>
>>
>>         <Scale>10000</Scale>
>>
>>         <PageHeight>8.5</PageHeight>
>>
>>         <PageWidth>11</PageWidth>
>>
>>         <Margins>
>>
>>         <Top>1.5</Top>
>>
>>         <Left>0.5</Left>
>>
>>         <Bottom>0.5</Bottom>
>>
>>         <Right>1.5</Right>
>>
>>         </Margins>
>>
>>         </PrintLayout>
>>
>>         </Extension>
>>
>>         <Label>Save as DWF</Label>
>>
>>         <Tooltip>Click to save the current map as a DWF
>>         document</Tooltip>
>>
>>         <StatusText/>
>>
>>         </Widget>
>>
>>         If this doesn't work, all I can suggest is adding a bunch of
>>         echo statements to the code to see what state the variables
>>         have at different points in execution.
>>
>>         Jason
>>
>>         *From:* mapguide-users-bounces at lists.osgeo.org
>>         <mailto:mapguide-users-bounces at lists.osgeo.org>
>>         [mailto:mapguide-users-bounces at lists.osgeo.org
>>         <mailto:mapguide-users-bounces at lists.osgeo.org>] *On Behalf
>>         Of *Andrew DeMerchant
>>         *Sent:* Thursday, August 14, 2008 09:27
>>
>>         *To:* MapGuide Users Mail List
>>         *Subject:* Re: [mapguide-users] Fusion Save Map Issues
>>
>>         No idea on the fix, but I can say I have the exact same
>>         problem here....I've yet to really look into what might be
>>         the problem - in hopes that I might be able to sort it out
>>         myself.
>>
>>         Andrew
>>
>>
>>         Rock Beans wrote:
>>
>>         I changed the mime type to text and got this output:
>>
>>         <br />
>>         <b>Fatal error</b>:  Call to a member function Read() on a
>>         non-object in <b>C:\Program
>>         Files\MapGuideOpenSource2.0\WebServerExtensions\www\fusion\MapGuide\php\SaveMap.php</b>
>>         on line <b>104</b><br />
>>
>>         Any ideas?
>>
>>         The Rock
>>
>>         ---------- Forwarded message ----------
>>         From: *Rock Beans* <rockbeans at gmail.com
>>         <mailto:rockbeans at gmail.com>>
>>         Date: Thu, Aug 14, 2008 at 10:30 AM
>>         Subject: Fusion Save Map Issues
>>         To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org
>>         <mailto:mapguide-users at lists.osgeo.org>>
>>
>>         I am on the latest SVN release of Fusion and when I click
>>         save map I get a Save/Open dialog now. The problem is the
>>         image is only 207 bytes and not readable by any image
>>         program. I tried DWF and the DWF viewer said it could not
>>         open the DWF files as well. What am I missing please? IS the
>>         output buffer or the MIME type not working correctly?
>>
>>         Fusion r1461
>>
>>         The Rock
>>
>>           
>>
>>         ------------------------------------------------------------------------
>>
>>
>>              
>>
>>           
>>
>>         _______________________________________________
>>
>>         mapguide-users mailing list
>>
>>         mapguide-users at lists.osgeo.org  <mailto:mapguide-users at lists.osgeo.org>
>>
>>         http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>            
>>
>>         -- 
>>
>>         	
>>
>>         *Andrew DeMerchant*
>>         *Computer Technologist*
>>         ph.1-877-2GEMTEC x.163
>>         fax 506-453-9470
>>
>>         /GEMTEC Limited <http://www.gemtec.ca>
>>         /191 Doak Road
>>         Fredericton, NB, Canada
>>         E3C 2E6
>>
>>
>>         _______________________________________________
>>         mapguide-users mailing list
>>         mapguide-users at lists.osgeo.org
>>         <mailto:mapguide-users at lists.osgeo.org>
>>         http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     mapguide-users mailing list
>>     mapguide-users at lists.osgeo.org  <mailto:mapguide-users at lists.osgeo.org>
>>     http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>        
>
>     -- 
>     	*Andrew DeMerchant*
>     *Computer Technologist*
>     ph.1-877-2GEMTEC x.163
>     fax 506-453-9470
>
>     /GEMTEC Limited <http://www.gemtec.ca>
>     /191 Doak Road
>     Fredericton, NB, Canada
>     E3C 2E6
>
>
>     _______________________________________________
>     mapguide-users mailing list
>     mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>    

-- 
	*Andrew DeMerchant*
*Computer Technologist*
ph.1-877-2GEMTEC x.163
fax 506-453-9470

/GEMTEC Limited <http://www.gemtec.ca>
/191 Doak Road
Fredericton, NB, Canada
E3C 2E6

-------------- next part --------------
Skipped content of type multipart/related


More information about the mapguide-users mailing list