webglearth / webglearth2

[UNMAINTAINED] WebGL Earth 2 - the source code of the project
Apache License 2.0
885 stars 212 forks source link

Release (ZIP) + offline tiles example #11

Closed klokan closed 9 years ago

klokan commented 10 years ago

TBD

stutteringp0et commented 10 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

nemesifier commented 10 years ago

is this project still mantained?

klokan commented 10 years ago

WebGL Earth 2 is maintained.

Seandebasti commented 9 years ago

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 screenshot 2014-11-24 09 36 49

klokan commented 9 years ago

Releases marked on GitHub: https://github.com/webglearth/webglearth2/releases

hplia commented 9 years ago

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? local Thanks!

klokan commented 9 years ago

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.