LOCAL same disk/device TILES

30 views
Skip to first unread message

Fernando Sanchez

unread,
Nov 27, 2013, 8:00:15 AM11/27/13
to webgl...@googlegroups.com
Hello
 I am new to WebGL earth, and I'm trying to just make a portable globe with OSM tile format of my own data that will reside in the same Path under the main HTML. That is:
 MAIN_DIR/
    WEBGLearth.html
    OSMTILES_DIR
          ....The tiles.....

But if I try to use:
    var earth = new WebGLEarth('earth_div', { zoom: 2});
    var customTMS = earth.initMap(WebGLEarth.Maps.CUSTOM, ['TMS','OSMTILES_DIR/{z}/{x}/{y}.jpg',1,5,256,true]);
    earth.setBaseMap(customTMS);
  }
I cant render the tiles, even, I see a Blank globe....
Does the tiles need to be on a server or it is that I'm wrting incorrectly the url path?

Thank you
 Fernando
Reply all
Reply to author
Forward
0 new messages