前期:有KEY码。。。通过注册获取
(1)加入bingmap,因为是3857坐标系统。Spatial Reference: 102100 (3857)
102100 WGS_1984_Web_Mercator_Auxiliary_Sphere 。
所以要作为最底图加入即可
(2)叠加tile的类:
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using System.Windows;
using System;
namespace Diligentpig
{
public class ClientDynamicTileMapServiceLayer : TiledMapServiceLayer
{
public bool iscansee = true;
public static readonly DependencyProperty UrlProperty = DependencyProperty.Register("Url", typeof(string), typeof(ClientDynamicTileMapServiceLayer), new PropertyMetadata(new PropertyChangedCallback(ClientDynamicTileMapServiceLayer.OnUrlPropertyChanged)));
public string Url
{
get { return (string)GetValue(UrlProperty); }
set { SetValue(UrlProperty, value); }
}
public static readonly DependencyProperty DisableClientCacheProperty = DependencyProperty.Register("DisableClientCache", typeof(bool), typeof(ClientDynamicTileMapServiceLayer), new PropertyMetadata(new PropertyChangedCallback(ClientDynamicTileMapServiceLayer.OnDisableClientCachePropertyChanged)));
public bool DisableClientCache
{
get { return (bool)GetValue(DisableClientCacheProperty); }
set { SetValue(DisableClientCacheProperty, value); }
}
private int[] _visibleLayers;
/// <summary>
/// Set the visible layers of DynamicTileMapServiceLayer by an int array which starts from 0.
/// If sets to NULL, all sublayers will be visible.
/// </summary>
public int[] VisibleLayers
{
get { return _visibleLayers; }
set
{
_visibleLayers = value;
if (this.IsInitialized)
{
this.IsInitialized = false;