/// <summary> Initializes a new instance of the <see cref="XMap2TiledProvider"/> class with the given connection /// string and mode. </summary> /// <param name="url"> The url to connect to the xMap server. </param> /// <param name="user">User name of the XMap authentication.</param> /// <param name="password">Password of the XMap authentication.</param> /// <param name="mode"> The mode of this tiled provider instance. </param> public XMap2TiledProvider(string url, string user, string password, XMapMode mode) { this.url = url; User = user; Password = password; this.mode = mode; base.needsTransparency = false; base.OverlapFactor = 0; base.Border = 0; IgnoreMissingLayeredMapCapabilities = false; // TODO: REVIEW ME - DEEP ZOOM // // To support 'deep zoom', the UntiledLayer was modified to take MaxZoom defined by this // provider into consideration. As MaxZoom defaults to 18 (see XMapTiledProviderBase) this // change also affects the default rendering behavior as it restricts label rendering where // no restriction was before. We therefore change MaxZoom for the label layer at the least // to 19, which is also the default for the map control itself. This way all the changes are // considered to provide backward compatibility for the map's default configuration. // // If this is ok, remove this comment. Otherwise find a better solution. if (mode == XMapMode.Town) { base.MaxZoom = 19; } }
/// <summary> Initializes a new instance of the <see cref="XMapTiledProvider"/> class with the given connection /// string and mode. </summary> /// <param name="url"> The url to connect to the xMap server. </param> /// <param name="user">User name of the XMap authentication.</param> /// <param name="password">Password of the XMap authentication.</param> /// <param name="mode"> The mode of this tiled provider instance. </param> public XMapTiledProvider(string url, string user, string password, XMapMode mode) { this.url = url; User = user; Password = password; this.mode = mode; needsTransparency = mode != XMapMode.Background; }
/// <summary> Initializes a new instance of the <see cref="XMap2TiledProvider"/> class with the given connection /// string and mode. </summary> /// <param name="url"> The url to connect to the xMap server. </param> /// <param name="mode"> The mode of this tiled provider instance. </param> public XMap2TiledProvider(string url, XMapMode mode) : this(url, string.Empty, string.Empty, mode) { }