public override void SetOptions(ExtentOptions extentOptions) { RangeAroundTransformTileProviderOptions options = extentOptions as RangeAroundTransformTileProviderOptions; if (options != null) { SetOptions(options.targetTransform, options.visibleBuffer, options.disposeBuffer); } else { Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType()); } }
/// <summary> /// Sets the extent type and parameters to control the maps extent. /// </summary> /// <param name="extentType">Extent type.</param> /// <param name="extentOptions">Extent options.</param> public virtual void SetExtent(MapExtentType extentType, ExtentOptions extentOptions = null) { _options.extentOptions.extentType = extentType; if (extentOptions != null) { var currentOptions = _options.extentOptions.GetTileProviderOptions(); if (currentOptions.GetType() == extentOptions.GetType()) { currentOptions = extentOptions; } } OnTileProviderChanged(); }
public override void SetOptions(ExtentOptions extentOptions) { CameraBoundsTileProviderOptions options = extentOptions as CameraBoundsTileProviderOptions; if (options != null) { camera = options.camera; visibleBuffer = options.visibleBuffer; disposeBuffer = options.disposeBuffer; } else { Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType()); } }
public override void SetOptions(ExtentOptions extentOptions) { RangeTileProviderOptions options = extentOptions as RangeTileProviderOptions; if (options != null) { west = options.west; north = options.north; east = options.east; south = options.south; } else { Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType()); } }