Simpel App : User Tiles does not show in 3d
I have a simpel testapplication where I have added my own tile layer (created with mapcruncher). The Tile layer works fine in 2D, but when I switch to 3D the tile layer it is not visible. Any ides Why ? I do not use custom tile names.
The application can be seen onhttp://demo.3dby.dk/virtualearth/
The Code is below:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My First Spaceland Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script>
<script type="text/javascript">
var map = null;
var layerid=0;
function GetMap()
{
map = new VEMap('Map');
map.LoadMap(new VELatLong(55.47,9.51),13,'h');
map.SetScaleBarDistanceUnit(VEDistanceUnit.Kilometers);try
{
GetTiles();
}
catch (err)
{
alert(err.message);
}
}
function GetTiles()
{
var bounds = [new VELatLongRectangle(new VELatLong(55.50,9.70),new VELatLong(55.40,9.48))];
var tileSourceSpec = new VETileSourceSpecification();
tileSourceSpec.ID = "lidar";
tileSourceSpec.TileSource = "http://demo.3dby.dk/virtualEarth/data/NewLayer/%4.png";
tileSourceSpec.NumServers = 1;
tileSourceSpec.Bounds = bounds;
tileSourceSpec.MinZoom = 5;
tileSourceSpec.MaxZoom = 18;
map.AddTileSource(tileSourceSpec);
var tileLayer = new VELayerSpecification(VELayerType.VETileSource,"1", "lidar");
tileLayer.ZIndex = 100;
tileLayer.Opacity=0.5;
map.AddLayer(tileLayer);}
function DeleteTileLayer()
{
try
{
map.DeleteLayer("1");
map.DeleteTileSource("lidar");
}
catch (err)
{
alert(err.message);
}}
</script>
</head><body onload="GetMap()">
<h1><div>Blominfo's "Virtual Earth" Application<br/></div></h1>
<br>
<div id="map" style="HEIGHT: 400px; WIDTH: 600px; OVERFLOW: hidden; POSITION:relative; border: 1px solid;"></div>
<a href="#" onclick="DeleteTileLayer();">Remove the tile layer</a>
<br> <a href="#" onclick="GetTiles();">Add the tile layer</a>
</body>
</html>

