[mapguide-users] RE: capturing map image

Andy Morsell amorsell at spatialgis.com
Thu Nov 16 11:31:58 EST 2006


In Autodesk MapGuide Studio, in your web layout definition, uncheck the
options for Layers pane, Properties pane, Toolbar, Context menu, Status bar,
Zoom control, Task pane and Task bar.  If you are 

In the web layout XML, look for the InformationPane and TaskPane nodes.


Andy 

-----Original Message-----
From: Kencana [mailto:bluesky_dyx at hotmail.com] 
Sent: Wednesday, November 15, 2006 11:53 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: capturing map image


hi,

is that possible to load only the map into one web page without the
toolbar,statusbar,etc.
thanx a lot...

regards,
Kencana


Andy Morsell wrote:
> 
> The pushpin you are talking about is created as part of a users 
> session, right?  If so, then, yes, you would need to use the session 
> to retrieve the map if you want to view it.  If you need to do this 
> with no user interaction, then you should be able to perform all of 
> the steps programmatically, but you will need to establish a session 
> as part of that programming.
> 
> 
> Andy
> 
> -----Original Message-----
> From: Kencana [mailto:bluesky_dyx at hotmail.com]
> Sent: Wednesday, November 15, 2006 10:18 PM
> To: users at mapguide.osgeo.org
> Subject: Re: [mapguide-users] capturing map image
> 
> 
> Hi andy,
> 
> i got one question, is that possible to set the push pin image 
> location at the same time while you get the map image?because if i 
> didn't use the session parameter, i can't view the push pin on the
specific area.
> pardon me if my explanation/english is bad.
> I hope you can help me out..thank you
> 
> regards,
> Kencana
> 
> 
> Andy Morsell wrote:
>> 
>> I just responded to this same question that you posted at the 
>> autodesk MapGuide Enterprise discussion group.  More information on 
>> this can also be found by searching the archives here.
>> 
>> -------------------------------------
>> The easiest way to do this would be to use the GETMAPIMAGE mapagent 
>> operation.  Here is an example URL:
>> 
>> http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAG
>> E 
>> &VERSION=1.0.0&MAPNAME=Sheboygan&LOCALE=en&MAPDEFINITION=Library://Sa
>> m
>> ples/Sheboygan/Maps/Sheboygan.MapDefinition&FORMAT=PNG&SETDISPLAYDPI=
>> 3 
>> 00&SETDISPLAYWIDTH=800&SETDISPLAYHEIGHT=600&SESSION=6137915c-0000-100
>> 0
>> -8000-005056c00001_en
>> 
>> In this case, the one thing you do need to determine or 
>> programatically create is a session.  That is required.  The above 
>> URL will return a map representation of how that map looked when the 
>> user last zoomed or panned, including any selected objects.  So, it's 
>> a good way to take an existing user map session and produce an image 
>> of what
> they were looking at.
>> 
>> There are some other optional override parameters so that you can set 
>> the map center, height and width without an existing session.  They are:
>> 
>> SETVIEWCENTERX=
>> SETVIEWCENTERY=
>> SETVIEWSCALE=
>> 
>> In this case, you don't need a SESSION parameter, but you will need 
>> to supply credentials.  You can use the below undocumented parameters 
>> so the user is not presented with the challenge/response dialog:
>> 
>> USERNAME=
>> PASSWORD=
>> 
>> Here is a full example:
>> 
>> 
>> http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAG
>> E 
>> &VERSION=1.0.0&MAPNAME=Sheboygan&LOCALE=en&MAPDEFINITION=Library%3A%2
>> F 
>> %2FSamples%2FSheboygan%2FMaps%2FSheboygan.MapDefinition&FORMAT=PNG&SE
>> T 
>> VIEWCENTERX=-87.73&SETVIEWCENTERY=43.74&SETVIEWSCALE=5000&SETDISPLAYD
>> P 
>> I=300&SETDISPLAYWIDTH=3000&SETDISPLAYHEIGHT=2100&USERNAME=Anonymous&P
>> A
>> SSWORD=
>> 
>> Andy Morsell, P.E.
>> Spatial Integrators, Inc.
>> www.SpatialGIS.com
>> 
>> 
>> Kencana wrote:
>>> 
>>> hi all,
>>> 
>>> I got one question about exporting the map image into jpg or png or 
>>> any image format file.Can I know how to do it?I hope somebody can 
>>> help me out...thank you
>>> 
>>> regards,
>>> kencana
>>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/capturing-map-image-tf2627292.html#a7372263
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 

--
View this message in context:
http://www.nabble.com/capturing-map-image-tf2627292.html#a7373070
Sent from the MapGuide Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org







More information about the Mapguide-users mailing list