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>

[3464 byte] By [JakobS] at [2007-12-26]
# 1
Your tile bounds is declared backwards (it should be top-left, bottom-right, you have it declared top-right, bottom-left). So I'm not sure why it's working in 2D
DuncanLawler at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2

I changed the bounds to:

var bounds = [new VELatLongRectangle(new VELatLong(55.50,9.48),new VELatLong(55.40,9.70))];

But the result is the same : Custom tile layer is Ok in 2d, but not visible in 3d (The other layers are ok in 3d)

Jakob

JakobS at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3
Your tile layer displays normally in both 2D and 3D for me with those bounds. You mentioned other layers, but your sample code only shows the custom tile layer. Perhaps some of your other layers are interfering.
DuncanLawler at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 4

By "other layers" I mean the Road and the Aerial layers from the Microsoft tile server

Jakob

JakobS at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 5

I'm having the same problem. I create tiles using MapCruncher and it displays fine in 2D but not in 3D. Jakobs sample only shows the overlay tiles in 2D in my browser (IE7).

Jakob, have you solved this one?

MikaelP at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified