Hi there,
I'm a developer in a web map project.
I'm working on an offline Import-geotiff task, everything works great besides compressed files..
I am using a library that parses the file but can handle only uncompressed files and with Packbits compression.
That's how I did it: The library provides me the image location and creates a canvas element with the image, then I create a graphic where the image should be and with a symbol of the image and it's size. The symbol is made using jsonUtils when the url is canvas.toDataURL() (In that way the canvas gives us a dataURL of a .png so the browser can handle this). The size of the symbol is changes as the user zoom in/out.
My questions are:
If the above doesn't make sense - has anyone ever managed to import a tiff to a js client without using server side tools?
Thanks in advance, Ophir.
Alex,
I take it you have not seen the MapImageLayer class in the JS API.
The solution has to be offline and MapImage requires a href.
Alex,
Hmm. Did not realize that was requirement. Ignore last then.