MapTileSource 클래스

정의

MapControl에 오버레이할 타일의 원본을 나타냅니다.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapTileSource : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class MapTileSource : DependencyObject
Public Class MapTileSource
Inherits DependencyObject
상속
Object IInspectable DependencyObject MapTileSource
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

이 예제에서는 맵의 가상 웹 서비스에서 타일을 오버레이합니다.

// Create the bounding box in which the tiles are displayed.
// This example represents North America.
var northWestCorner =
               new BasicGeoposition() { Latitude = 48.38544, Longitude = -124.667360 };
var southEastCorner =
               new BasicGeoposition() { Latitude = 25.26954, Longitude = -80.30182 };
var boundingBox = new GeoboundingBox(northWestCorner, southEastCorner);

// Create an HTTP data source.
// This example retrieves tiles from a fictitious web service.
var myHttpDataSource = new HttpMapTileDataSource(
    "http://www.<web service name>.com/z={zoomlevel}&x={x}&y={y}");

// Create a tile source and add it to the Map control.
var myTileSource = new MapTileSource(myHttpDataSource);
myTileSource.Bounds = boundingBox;

myMap.TileSources.Add(myTileSource);

이 다른 예제에서는 맵의 가상 웹 서비스에서 타일에 애니메이션 효과를 주는 예제입니다. 코드는 AutoPlay 속성이 명시적으로 true로 설정된 MapTileSource를 만듭니다.

// Create an HTTP data source.
// This example retrieves tiles from a fictitious web service.
var myHttpDataSource = new HttpMapTileDataSource(
    "http://www.<web service name>.com/{x}/{y}/{zoomlevel}/{frame}.png");

// Create a tile source and add it to the Map control.
var myTileSource = new MapTileSource(myHttpDataSource);
myTileSource.AutoPlay = true;
myTileSource.FrameCount = 8;
myTileSource.FrameDuration = TimeSpan.FromSeconds(1);

myMap.TileSources.Add(myTileSource);

설명

MapTileSource를 사용하여 MapControl 에서 타일에 애니메이션 효과를 적용할 수도 있습니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1809 17763 AnimationState
1809 17763 자동 실행
1809 17763 FrameCount
1809 17763 FrameDuration
1809 17763 일시 중지
1809 17763 재생
1809 17763 Stop

생성자

MapTileSource()

MapTileSource 클래스의 새 instance 초기화합니다.

MapTileSource(MapTileDataSource)

지정된 데이터 원본을 사용하여 MapTileSource 클래스의 새 instance 초기화합니다.

MapTileSource(MapTileDataSource, MapZoomLevelRange)

지정한 데이터 원본 및 확대/축소 수준 범위를 사용하여 MapTileSource 클래스의 새 instance 초기화합니다.

MapTileSource(MapTileDataSource, MapZoomLevelRange, GeoboundingBox)

지정된 데이터 원본, 확대/축소 수준 범위 및 경계 사각형을 사용하여 MapTileSource 클래스의 새 instance 초기화합니다.

MapTileSource(MapTileDataSource, MapZoomLevelRange, GeoboundingBox, Int32)

지정된 데이터 원본, 확대/축소 수준 범위, 경계 사각형 및 타일 크기를 사용하여 MapTileSource 클래스의 새 instance 초기화합니다.

속성

AllowOverstretch

고해상도 타일을 다운로드하는 동안 현재 타일을 늘릴지 여부를 지정하는 값을 가져오거나 설정합니다.

AllowOverstretchProperty

AllowOverstretch 종속성 속성을 식별합니다.

AnimationState

MapControl에 표시할 이 MapTileSource의 애니메이션 상태를 가져옵니다.

AnimationStateProperty

AnimationState 종속성 속성을 식별합니다.

AutoPlay

MapTileSource가 MapControlTileSources 속성에 추가될 때 지도 타일이 자동으로 재생을 시작할지 여부를 나타내는 값을 가져오거나 설정합니다.

AutoPlayProperty

자동 실행 종속성 속성을 식별합니다.

Bounds

타일을 포함할 사각형 영역을 가져오거나 설정합니다.

BoundsProperty

Bounds 종속성 속성을 식별합니다.

DataSource

타일의 데이터 원본을 가져오거나 설정합니다.

DataSourceProperty

DataSource 종속성 속성을 식별합니다.

Dispatcher

이 개체가 연결된 CoreDispatcher 를 가져옵니다. CoreDispatcher는 코드가 비 UI 스레드에서 시작되더라도 UI 스레드에서 DependencyObject에 액세스할 수 있는 기능을 나타냅니다.

(다음에서 상속됨 DependencyObject)
FrameCount

MapTileSource 애니메이션의 프레임 수를 가져오거나 설정합니다.

FrameCountProperty

FrameCount 종속성 속성을 식별합니다.

FrameDuration

MapTileSource 애니메이션에서 각 프레임의 기간을 가져오거나 설정합니다.

FrameDurationProperty

FrameDuration 종속성 속성을 식별합니다.

IsFadingEnabled

타일에 페이딩을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsFadingEnabledProperty

IsFadingEnabled 종속성 속성을 식별합니다.

IsRetryEnabled

타일에 대해 재시도를 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsRetryEnabledProperty

IsRetryEnabled 종속성 속성을 식별합니다.

IsTransparencyEnabled

타일에 투명도를 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

IsTransparencyEnabledProperty

IsTransparencyEnabled 종속성 속성을 식별합니다.

Layer

타일이 포함된 레이어를 가져오거나 설정합니다.

LayerProperty

Layer 종속성 속성을 식별합니다.

TilePixelSize

타일의 크기를 픽셀 단위로 가져오거나 설정합니다.

TilePixelSizeProperty

TilePixelSize 종속성 속성을 식별합니다.

Visible

MapTileSource가 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

VisibleProperty

Visible 종속성 속성을 식별합니다.

ZIndex

타일의 z-인덱스 를 가져오거나 설정합니다.

ZIndexProperty

ZIndex 종속성 속성을 식별합니다.

ZoomLevelRange

타일의 최소 및 최대 확대/축소 수준을 가져오거나 설정합니다. 타일은 MapControlZoomLevel이 ZoomLevelRange 내에 있는 경우에만 표시됩니다.

ZoomLevelRangeProperty

ZoomLevelRange 종속성 속성을 식별합니다.

메서드

ClearValue(DependencyProperty)

종속성 속성의 로컬 값을 지웁니다.

(다음에서 상속됨 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

애니메이션이 활성화되지 않은 경우에 적용되는 종속성 속성에 대해 설정된 기본 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
GetValue(DependencyProperty)

DependencyObject에서 종속성 속성의 현재 유효 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
Pause()

현재 프레임에서 애니메이션을 일시 중지합니다.

Play()

현재 프레임에서 애니메이션을 재생합니다.

ReadLocalValue(DependencyProperty)

로컬 값이 설정된 경우 종속성 속성의 로컬 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

DependencyObject instance 특정 DependencyProperty에 대한 변경 내용을 수신 대기하기 위한 알림 함수를 등록합니다.

(다음에서 상속됨 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject에 대한 종속성 속성의 로컬 값을 설정합니다.

(다음에서 상속됨 DependencyObject)
Stop()

처음부터 재생할 애니메이션을 중지하고 다시 설정합니다.

UnregisterPropertyChangedCallback(DependencyProperty, Int64)

RegisterPropertyChangedCallback을 호출하여 이전에 등록된 변경 알림을 취소합니다.

(다음에서 상속됨 DependencyObject)

적용 대상

추가 정보