tags:

views:

487

answers:

1

I've noticed by specifying a zom range on a custom tile source has no effect and always requests the tiles at all levels.

Is this a bug, or am I missing something?

        // The bounding rectangle that the tile overlay can be placed within.
        LocationRect boundingRect = new LocationRect(
            new Location(48.06282, -122.43773),
            new Location(47.999973, -122.37490));

        // Creates a new map layer to add the tile overlay to.
        tileLayer = new MapTileLayer();

        // The source of the overlay.
        LocationRectTileSource tileSource = new LocationRectTileSource();
        tileSource.UriFormat = "http://www.microsoft.com/virtualearth/isdk/ajax/layers/lidar/{quadkey}.png";
        // The zoom range that the tile overlay is visibile within
        tileSource.ZoomRange = new Range<double>(10,18);
        // The bounding rectangle area that the tile overaly is valid in.
        tileSource.BoundingRectangle = boundingRect;


        // Adds the tile overlay to the map layer
        tileLayer.TileSources.Add(tileSource);

        // Adds the map layer to the map
        if (!MapTileOverlay.Children.Contains(tileLayer))
        {
            MapTileOverlay.Children.Add(tileLayer);
        }
        tileLayer.Opacity = tileOpacity;

Any feedback would be appreciated. Andries

A: 

I have noticed the same issue and still haven't found a solution for this.

Dotnet MK