<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff>if you only want, that the user can download your singleTiled WMS, 
then inform the user, that they could save the image via right click and save 
as. There is no need to download the image, because it is already 
there.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff>Otherwise you have to use serverside scripting and sending the 
image once again.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=609102319-18042009><FONT face=Arial 
color=#0000ff>Arnd</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>Von:</B> kwonghu@hotmail.com [mailto:kwonghu@hotmail.com] 
<BR><B>Gesendet:</B> Samstag, 18. April 2009 16:55<BR><B>An:</B> 
arnd.wippermann@web.de; users@openlayers.org<BR><B>Betreff:</B> RE: AW: 
[OpenLayers-Users] FW: Download image(bitmap)<BR></FONT><BR></DIV>
<DIV></DIV><BR>Hi,<BR><BR>I have only one wms layer and is a single tile. I 
would like to make it user friendly.<BR><BR>Want to have a button called 
'generate bitmap' or similar.<BR><BR>That zip up the bitmap and send it to the 
user so they can view at a later stage.<BR><BR>Thanks.<BR><BR>
<HR id=stopSpelling>
From: arnd.wippermann@web.de<BR>To: kwonghu@hotmail.com<BR>Subject: AW: 
[OpenLayers-Users] FW: Download image(bitmap)<BR>Date: Sat, 18 Apr 2009 16:33:51 
+0200<BR><BR>
<STYLE>.ExternalClass .EC_hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.EC_hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>

<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009>if it's only one wms layer and singleTiled, then the 
easiest way should be to use right click on the map and save 
image.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009>if it's not singleTiled you can try something like 
this:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=EC_890521414-18042009>var wmsRequest=yourWMS.getFullRequestString() + 
"&amp;BBOX=" + yourWMS.getExtent().toBBOX() + "&amp;WIDTH=" + map.getSize().w + 
"&amp;HEIGHT=" + map.getSize().h;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff>window.open(<SPAN 
class=EC_890521414-18042009>wmsRequest</SPAN>);</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_890521414-18042009><FONT face=Arial 
color=#0000ff>it generates the WMS request for your layer as singleTile, opens 
it in a new window and there you could save the image via right 
click.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=EC_890521414-18042009></SPAN><FONT face=Arial><FONT 
color=#0000ff>A<SPAN 
class=EC_890521414-18042009>rnd</SPAN></FONT></FONT><BR></DIV>
<DIV class=EC_OutlookMessageHeader lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma><B>Von:</B> users-bounces@openlayers.org 
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Kwong Hu 
Kiu<BR><B>Gesendet:</B> Samstag, 18. April 2009 10:29<BR><B>An:</B> 
marco.ferretti@fermasoft.com; users@openlayers.org<BR><B>Betreff:</B> Re: 
[OpenLayers-Users] FW: Download image(bitmap)<BR></FONT><BR></DIV>
<DIV></DIV><BR>Hi<BR>
<DIV><BR></DIV>Very sorry about the lack of information.<BR><BR>Yes, it's a 
single tile map (using the SingleTile option = true).<BR>I am expecting exactly 
what the browser can see. <BR>In this case i am displaying a single tile jpeg 
image on the browser requested through the wms service.<BR><BR>I do not want 
download the base layer. Just those layers i have IsBaseLayer=false.<BR>In my 
case. I only have 1 baselayer and 1 non-baselayer.<BR><BR>Thanks.<BR><BR>&gt; 
From: marco.ferretti@fermasoft.com<BR>&gt; To: users@openlayers.org<BR>&gt; 
Date: Sat, 18 Apr 2009 10:13:27 +0200<BR>&gt; Subject: Re: [OpenLayers-Users] 
FW: Download image(bitmap)<BR>&gt; <BR>&gt; Hi<BR>&gt; <BR>&gt; first of all you 
have to tell us a little bit more on how<BR>&gt; you create your map : is it a 
single layer map or a<BR>&gt; multilayer map ? then we need to know if you are 
getting the<BR>&gt; map in single tile mode or in multi tile mode. Then we 
need<BR>&gt; to know what you expect in the image(s) you download : do<BR>&gt; 
you expect your users to be able to download exactly what<BR>&gt; their browser 
show ( this would mean as many images as many<BR>&gt; tiles * number of layers ) 
or do you expect to have one<BR>&gt; single image that contains the layers 
merged together ? <BR>&gt; <BR>&gt; Regards, <BR>&gt; <BR>&gt; Marco<BR>&gt; 
----- Original Message -----<BR>&gt; Da : Kwong Hu Kiu 
&lt;kwonghu@hotmail.com&gt;<BR>&gt; A : &lt;marco.ferretti@fermasoft.com&gt;, 
&lt;users@openlayers.org&gt;<BR>&gt; Oggetto : RE: [OpenLayers-Users] FW: 
Download image(bitmap)<BR>&gt; Data : Sat, 18 Apr 2009 16:07:30 +0800<BR>&gt; 
<BR>&gt; &gt; Thanks for the reply.<BR>&gt; &gt; <BR>&gt; &gt; So how can i do 
that with javascript ? Yes, i have my own<BR>&gt; &gt; custom wms 
service.<BR>&gt; &gt; <BR>&gt; &gt; I want to be able to download the map using 
javascript<BR>&gt; &gt; like you said.<BR>&gt; &gt; <BR>&gt; &gt; 
Cheers.<BR>&gt; &gt; <BR>&gt; &gt; &gt; From: 
marco.ferretti@fermasoft.com<BR>&gt; &gt; &gt; To: kwonghu@hotmail.com<BR>&gt; 
&gt; &gt; Subject: re: [OpenLayers-Users] FW: Download<BR>&gt; &gt; &gt; 
image(bitmap) Date: Sat, 18 Apr 2009 09:52:43 +0200<BR>&gt; &gt; &gt; <BR>&gt; 
&gt; &gt; Hi<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; I don't think i understood 
your question .... if you<BR>&gt; &gt; &gt; want to be able to download stuff 
that you see you have<BR>&gt; &gt; &gt; several options ( depending on how you 
created the map<BR>&gt; &gt; &gt; ... aka how many layers you have ) ; I think 
what you<BR>&gt; &gt; &gt; are looking for is a link that has to contain the 
same<BR>&gt; &gt; &gt; stuff you send to the WMS server . That shall be 
quite<BR>&gt; &gt; &gt; easy using Javascript . As of C# : i don't think 
you<BR>&gt; &gt; &gt; have to deal with it since what you see ( the maps ) 
is<BR>&gt; &gt; &gt; the result of an http request made client side 
thus,<BR>&gt; &gt; &gt; unless you create a wrapper that submits your 
server<BR>&gt; &gt; &gt; side code all the infos you need, you can do very 
little<BR>&gt; &gt; &gt; with that. <BR>&gt; &gt; &gt; hope it helps <BR>&gt; 
&gt; &gt; <BR>&gt; &gt; &gt; Marco<BR>&gt; &gt; &gt; ----- Original Message 
-----<BR>&gt; &gt; &gt; Da : Kwong Hu Kiu &lt;kwonghu@hotmail.com&gt;<BR>&gt; 
&gt; &gt; A : &lt;users@openlayers.org&gt;, &lt;dev@openlayers.org&gt;<BR>&gt; 
&gt; &gt; Oggetto : [OpenLayers-Users] FW: Download image(bitmap)<BR>&gt; &gt; 
&gt; Data : Sat, 18 Apr 2009 13:22:52 +0800<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; 
&gt; Hi,<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; Any solution to my 
question below?<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; Sorry i have to 
send it to dev@openlayers.org.<BR>&gt; &gt; &gt; &gt; Hopefully, i can get some 
replies.<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; Regards.<BR>&gt; &gt; 
&gt; &gt; <BR>&gt; &gt; &gt; &gt; From: kwonghu@hotmail.com<BR>&gt; &gt; &gt; 
&gt; To: users@openlayers.org<BR>&gt; &gt; &gt; &gt; Date: Thu, 16 Apr 2009 
21:20:53 +0800<BR>&gt; &gt; &gt; &gt; Subject: [OpenLayers-Users] Download 
image(bitmap)<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; 
&gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; 
<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; 
&gt; &gt; &gt; Hi,<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; Currently, I 
am using WMS service to display maps on<BR>&gt; &gt; &gt; &gt; openlayers. I am 
wondering if it's possible to allow<BR>&gt; &gt; &gt; &gt; users to download the 
bitmap(Map) they are seeing.<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; Is 
it supported with openlayers ? or is it possible to<BR>&gt; &gt; &gt; &gt; use 
c# code and interact with openlayers javascript?<BR>&gt; &gt; &gt; &gt; <BR>&gt; 
&gt; &gt; &gt; Interacting c# and javascript is something I have no<BR>&gt; &gt; 
&gt; &gt; idea. <BR>&gt; &gt; &gt; &gt; Please shed lights.<BR>&gt; &gt; &gt; 
&gt; <BR>&gt; &gt; &gt; &gt; Cheers. <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; 
&gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; 
<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; 
_______________________________________________<BR>&gt; &gt; &gt; &gt; Users 
mailing list<BR>&gt; &gt; &gt; &gt; Users@openlayers.org<BR>&gt; &gt; &gt; &gt; 
http://openlayers.org/mailman/listinfo/users<BR>&gt; &gt; &gt; &gt; <BR>&gt; 
&gt; &gt; &gt; [Allegato : ATT00000]<BR>&gt; &gt; <BR>&gt; 
_______________________________________________<BR>&gt; Users mailing 
list<BR>&gt; Users@openlayers.org<BR>&gt; 
http://openlayers.org/mailman/listinfo/users<BR></BODY></HTML>