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 on http://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>

Simpel App : User Tiles does not show in 3d
Travis Baseflug
I changed the bounds to:
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
Bulldog.NET
By "other layers" I mean the Road and the Aerial layers from the Microsoft tile server
Jakob
Vonny232
Frank Johannessen
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
Joe_Z