Hi!
This is probably a newbie-question... but I can't seem to get my own (TMS) tileset to work. Running this on Firefox/Linux, and I'm getting the cross-domain access restriction warning, although I've placed all files on the same domain. My folder structure on the remote server is
/virtual-globe/
/tiles/
api.js
index.html
The contents of the index.html is taken right out of the Hello World example:
<html>
<head>
<script src="api.js"></script>
<script>
function initialize() {
var options = {atmosphere: true, center: [0, 0], zoom: 0};
var earth = new WE.map('earth_div', options);
WE.tileLayer('http://mydomain.org/virtual-globe/tiles/{z}/{x}/{y}.jpg', {
tms: true
}).addTo(earth);
}
</script>
<style>
html, body{ padding: 0; margin: 0; }
#earth_div{ top: 0; right: 0; bottom: 0; left: 0;
background-color: #000; position: absolute !important;}
</style>
<title>WebGL Earth API: Satellite</title>
</head>
<body onload="initialize()">
<div id="earth_div"></div>
</body>
</html>
Thanks in advance,
Rainer