[mapguide-users] Fusion Save Map Issues
Andrew DeMerchant
andrew.demerchant at gemtec.ca
Fri Aug 15 13:32:11 EDT 2008
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
> 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