I didn&#39;t see this message. That looks exactly like what i&#39;m looking for.<div><br></div><div>What the heck is window.plugins.fileDownload? I&#39;ve never seen that before.</div><div><br></div><div>Also, I did a search through OpenLayers.js and it found 17 getURL:function(bounds) can you point me in the right direction with which one you modified? If not, I&#39;ll just use trial and error to figure it out. Thanks Tue!</div>
<div><br></div><div>Steve<br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 9:56 AM, Tue Topholm <span dir="ltr">&lt;<a href="mailto:tt@sugee.dk">tt@sugee.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have used this_<br>
<br>
getURL:function(bounds)<br>
{<br>
var url = this.getFullRequestString({bbox:bounds.toBBOX(),height:this.tileSize.h,width:this.tileSize.w},&#39;&#39;);<br>
<br>
if(typeof(localStorage[filename]) != &#39;undefined&#39;)<br>
{<br>
     return localStorage[filename];<br>
}<br>
else<br>
{<br>
    window.plugins.fileDownload.downloadFile(url,&#39;/&#39; + sha1(url) +<br>
&#39;.png&#39;,function(fp){localStorage[filename] = fp},function(){});<br>
    return url;<br>
}<br>
}<br>
<br>
<br>
<br>
it was using another download plugin, so it just needs to be changed to PG&#39;s<br>
<br>
md5 and sha1 is js functions for doing md5 and sha1<br>
<div class="im">--<br>
<br>
Med venlig hilsen / Kind regards<br>
<br>
Tue Topholm<br>
Sugee<br>
Tlf: <a href="tel:%2B45%2032%2013%2032%2032" value="+4532133232">+45 32 13 32 32</a><br>
W: <a href="http://www.sugee.dk" target="_blank">http://www.sugee.dk</a><br>
<br>
<br>
<br>
</div>23. mar. 2012 14.49 skrev Diego Guidi &lt;<a href="mailto:diegoguidi@gmail.com">diegoguidi@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt;&gt; Phonegap (a tool for creating native iphone/android apps with HTML/js) is<br>
&gt;&gt; able to do it and HTML5 is able to do it also.<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://docs.phonegap.com/en/1.5.0/phonegap_file_file.md.html#FileTransfer" target="_blank">http://docs.phonegap.com/en/1.5.0/phonegap_file_file.md.html#FileTransfer</a><br>
&gt; HTML5 uses localstorage, i.e 10mb space maximum available.<br>
&gt; PhoneGap file API doesn&#39;t suffer of this limit.<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br></div>