[OpenLayers-Dev] Loading img with Ajax to be able to cancel
loading?
Tom Payne
tom.payne at camptocamp.com
Mon Mar 19 05:23:31 EDT 2012
On 19 March 2012 08:27, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> loading raw image data with Ajax requires client-side Base64 encoding
> to create a data URI, which would be very expensive.
Note that modern browsers have the window.atob and window.btoa
functions that offer base64 encoding and decoding at native speeds:
https://developer.mozilla.org/en/DOM/window.atob
https://developer.mozilla.org/en/DOM/window.btoa
Regards,
Tom
--
Camptocamp SA
Tom PAYNE
PSE A
CH-1015 Lausanne
+41 21 619 10 13 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)
More information about the Dev
mailing list