I have an ImagerySource (Google Earth Enterprise) which uses a “flat” projection. To get it working, I had to use a GeographicTilingScheme with an Extent(-Math.PI, -Math.PI, Math.PI, Math.PI). If I used the default extent, only portions of the earth would be covered. You can see this in the default_extent.png file.
The problem is that at high latitudes the imagery gets very blurry and distorted. I noticed that if I start at the equator (zoomed in so that it is requesting tiles with a zoom level of 7) and I start rotating the globe towards one of the poles, the zoom level of the tiles requested slowly goes down to a zoom level of 4 over each of the poles. This results in very blurry imagery.
I’m not quite sure how to solve this problem.
Here is the code I am using for the buildImageUrl function:
function buildImageUrl(imageryProvider, x, y, level) {
var imageUrl = imageryProvider._imageUrlTemplate;
imageUrl = imageUrl.replace(’{x}’, x);
imageUrl = imageUrl.replace(’{y}’, y);
// Google Earth starts with a zoom level of 1, not 0
imageUrl = imageUrl.replace(’{zoom}’, (level + 1));
var proxy = imageryProvider._proxy;
if (typeof proxy !== ‘undefined’) {
imageUrl = proxy.getURL(imageUrl);
}
return imageUrl;
}