Closed klokan closed 9 years ago
I just did offline tiles using mbtiles extracted to z/x/y folders using mb-util. Works great!
Link directly to the folder using the standard format: maptiles/{z}/{x}/{y}.png
is this project still mantained?
WebGL Earth 2 is maintained.
Hi, I have a question about the access of these offline tiles because I get the alert "Tiles for WebGL must be accessed over http protocol." but I want to access them with an widget for mobile devices. What I have to change in the html-code? Thanks a lot
Releases marked on GitHub: https://github.com/webglearth/webglearth2/releases
Hi i try to change your offline file in order to use my own tiles via localhost but it show nothing. i georefenced my jpeg texture with gdal2tiles and i have something like: see the picture. I just chage the code like this:
function initialize() { var earth = new WebGLEarth('earth_div', { zoom:2 }); var customTMS = earth.initMap(WebGLEarth.Maps.CUSTOM, ['TMS','http://localhost/behaim/{z}/{x}/{y}.jpg',1,6,256,true]); // name, url, minZoom, maxZoom, tileSize, flip-y-axis earth.setBaseMap(customTMS); } Can you please tell me how can i write that properly? Thanks!
A demonstration of the offline use is available at: https://github.com/webglearth/webglearth2-offline - read the README file please!
as one click download in a .zip file at: https://github.com/webglearth/webglearth2-offline/archive/gh-pages.zip
or via online preview at: http://webglearth.github.io/webglearth2-offline/
The tiles can be generated with MapTiler - http://www.maptiler.com/ to avoid problems with full globe coverage, dateline crossing, missing minimisation, blending the files together, etc.
TBD