다음을 통해 공유


@azure/maps-common package

인터페이스

BoundingBox

경계 상자

GeoJsonFeature

GeoJSON Feature A Feature 개체는 공간적으로 제한된 것을 나타냅니다. 모든 Feature 개체는 GeoJSON 개체입니다. 참조

GeoJsonFeatureCollection

GeoJSON FeatureCollection. 참조

GeoJsonGeometryCollection

GeoJSON GeometryCollection. 참조

GeoJsonLineString

GeoJSON LineString. 참조

GeoJsonMultiLineString

GeoJSON MultiLineString. 참조

GeoJsonMultiPoint

GeoJSON MultiPoint. 참조

GeoJsonMultiPolygon

GeoJSON MultiPolygon. 참조

GeoJsonObject

GeoJSON 개체는 Geometry, Feature 또는 Features 컬렉션을 나타냅니다. 참조

GeoJsonPoint

GeoJSON 지점. 참조

GeoJsonPolygon

GeoJSON 다각형. 참조

다각형과 관련된 제약 조건을 지정하려면 선형 링의 개념을 도입하는 것이 유용합니다.

  • 선형 링은 4개 이상의 위치가 있는 닫힌 LineString입니다.
  • 첫 번째 위치와 마지막 위치는 동일하며 동일한 값을 포함해야 합니다. 표현도 동일해야 합니다.
  • 선형 링은 표면의 경계 또는 표면의 구멍 경계입니다.
  • 선형 링은 경계 영역과 관련하여 오른쪽 규칙을 따라야 합니다. 즉, 외부 링이 시계 반대 방향이고 구멍이 시계 방향으로 표시됩니다.

형식 별칭

BBox

기하 도형의 좌표 범위에 대한 정보를 포함하는 경계 상자

BBox2D

2D 경계 상자

BBox3D

3D 경계 상자

GeoJsonGeometry

GeoJSON 기하 도형

GeoJsonType

GeoJSON 형식

GeometryType

기하 도형 유형

LatLon

위도/경도 쌍

Position

점을 나타내는 숫자 배열

Position2D

2D 위치

Position3D

3D 위치

함수

createAzureMapsKeyCredentialPolicy(KeyCredential)

에 대한 을 사용하여 AzureKeyCredential 요청을 인증하는 HTTP 파이프라인 정책을 Azure Maps

createMapsClientIdPolicy(string)

http 파이프라인 정책을 만들어 Azure Maps 기반 인증에 대한 TokenCredential x-ms-client-id 헤더를 추가합니다.

createSendPollRequest<TOptions, TClient>({ client: TClient, options: TOptions, spec: OperationSpec })

createHttpPoller에서 sendPollRequest에 전달할 수 있는 메서드를 만드는 도우미 함수입니다.

getRawResponse<TOptions, TResponse>((options: TOptions) => Promise<TResponse>, TOptions)

rawResponse에 대한 응답의 여러 필드 추출

함수 세부 정보

createAzureMapsKeyCredentialPolicy(KeyCredential)

에 대한 을 사용하여 AzureKeyCredential 요청을 인증하는 HTTP 파이프라인 정책을 Azure Maps

function createAzureMapsKeyCredentialPolicy(azureKeyCredential: KeyCredential): PipelinePolicy

매개 변수

azureKeyCredential
KeyCredential

반환

createMapsClientIdPolicy(string)

http 파이프라인 정책을 만들어 Azure Maps 기반 인증에 대한 TokenCredential x-ms-client-id 헤더를 추가합니다.

function createMapsClientIdPolicy(mapsClientId: string): PipelinePolicy

매개 변수

mapsClientId

string

반환

createSendPollRequest<TOptions, TClient>({ client: TClient, options: TOptions, spec: OperationSpec })

createHttpPoller에서 sendPollRequest에 전달할 수 있는 메서드를 만드는 도우미 함수입니다.

function createSendPollRequest<TOptions, TClient>(settings: { client: TClient, options: TOptions, spec: OperationSpec }): (path: string) => Promise<LroResponse<unknown>>

매개 변수

settings

{ client: TClient, options: TOptions, spec: OperationSpec }

클라이언트, 옵션 및 사양을 포함한 폴링 요청의 설정

반환

(path: string) => Promise<LroResponse<unknown>>

경로를 입력으로 수락하고 Lro 응답의 약속을 반환하는 콜백입니다.

getRawResponse<TOptions, TResponse>((options: TOptions) => Promise<TResponse>, TOptions)

rawResponse에 대한 응답의 여러 필드 추출

function getRawResponse<TOptions, TResponse>(getResponse: (options: TOptions) => Promise<TResponse>, options: TOptions): Promise<LroResponse<TResponse>>

매개 변수

getResponse

(options: TOptions) => Promise<TResponse>

실제로 백 엔드 API를 호출하는 비동기 함수입니다.

options

TOptions

getResponse 콜백에 대한 옵션

반환

Promise<@azure/core-lro.LroResponse<TResponse>>

API 호출에 대한 약속입니다.