Show / Hide Table of Contents

Class ImageryLayer

Inheritance
System.Object
AbstractLayer
ImageryLayer
Inherited Members
AbstractLayer.UpdateLayer
AbstractLayer.NotifyUpdateLayer(LayerUpdateArgs)
AbstractLayer.NotifyUpdateLayer(AbstractTileFactory, MapboxDataProperty, Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:Mapbox.Unity.Map
Assembly:cs.temp.dll.dll
Syntax
[Serializable]
public class ImageryLayer : AbstractLayer, IImageryLayer, ILayer

Constructors

ImageryLayer()

Declaration
public ImageryLayer()

ImageryLayer(ImageryLayerProperties)

Declaration
public ImageryLayer(ImageryLayerProperties properties)
Parameters
Type Name Description
ImageryLayerProperties properties

Properties

Factory

Declaration
public MapImageFactory Factory { get; }
Property Value
Type Description
MapImageFactory

IsLayerActive

Declaration
public bool IsLayerActive { get; }
Property Value
Type Description
System.Boolean
Implements
ILayer.IsLayerActive

LayerProperty

Declaration
[NodeEditorElement("Image Layer")]
public ImageryLayerProperties LayerProperty { get; set; }
Property Value
Type Description
ImageryLayerProperties

LayerSource

Declaration
public ImagerySourceType LayerSource { get; }
Property Value
Type Description
ImagerySourceType
Implements
IImageryLayer.LayerSource

LayerSourceId

Declaration
public string LayerSourceId { get; }
Property Value
Type Description
System.String
Implements
ILayer.LayerSourceId

LayerType

Declaration
public MapLayerType LayerType { get; }
Property Value
Type Description
MapLayerType
Implements
ILayer.LayerType

Methods

Initialize()

Declaration
public void Initialize()
Implements
ILayer.Initialize()

Initialize(LayerProperties)

Declaration
public void Initialize(LayerProperties properties)
Parameters
Type Name Description
LayerProperties properties
Implements
ILayer.Initialize(LayerProperties)

RedrawLayer(Object, EventArgs)

Declaration
public void RedrawLayer(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender
System.EventArgs e

Remove()

Declaration
public void Remove()
Implements
ILayer.Remove()

SetLayerSource(ImagerySourceType)

Sets the data source for the image factory.

Declaration
public virtual void SetLayerSource(ImagerySourceType imageSource)
Parameters
Type Name Description
ImagerySourceType imageSource
Implements
IImageryLayer.SetLayerSource(ImagerySourceType)

SetLayerSource(String)

Declaration
public void SetLayerSource(string imageSource)
Parameters
Type Name Description
System.String imageSource
Implements
ILayer.SetLayerSource(String)

SetProperties(ImagerySourceType, Boolean, Boolean, Boolean)

Change image layer settings.

Declaration
public virtual void SetProperties(ImagerySourceType imageSource, bool useRetina, bool useCompression, bool useMipMap)
Parameters
Type Name Description
ImagerySourceType imageSource

Data source for the image provider.

System.Boolean useRetina

Enable/Disable high quality imagery.

System.Boolean useCompression

Enable/Disable Unity3d Texture2d image compression.

System.Boolean useMipMap

Enable/Disable Unity3d Texture2d image mipmapping.

Implements
IImageryLayer.SetProperties(ImagerySourceType, Boolean, Boolean, Boolean)

SetRasterOptions(ImageryRasterOptions)

Declaration
public void SetRasterOptions(ImageryRasterOptions rasterOptions)
Parameters
Type Name Description
ImageryRasterOptions rasterOptions

Update(LayerProperties)

Declaration
public void Update(LayerProperties properties)
Parameters
Type Name Description
LayerProperties properties
Implements
ILayer.Update(LayerProperties)

UseCompression(Boolean)

Enable Texture2D compression for image factory outputs.

Declaration
public virtual void UseCompression(bool useCompression)
Parameters
Type Name Description
System.Boolean useCompression
Implements
IImageryLayer.UseCompression(Boolean)

UseMipMap(Boolean)

Enable Texture2D MipMap option for image factory outputs.

Declaration
public virtual void UseMipMap(bool useMipMap)
Parameters
Type Name Description
System.Boolean useMipMap
Implements
IImageryLayer.UseMipMap(Boolean)

UseRetina(Boolean)

Enables high quality images for selected image factory source.

Declaration
public virtual void UseRetina(bool useRetina)
Parameters
Type Name Description
System.Boolean useRetina
Implements
IImageryLayer.UseRetina(Boolean)
Back to top © 2017 Mapbox