NgiiMapImageryProvider

바로e맵 지도 이미지 제공 클래스.
Class providing ngii imagery in DiTAP.

new Ditap.NgiiMapImageryProvider(options)

Name Type Description
options object 다음과 같은 속성을 가진 객체.
Object with the following options:
Name Type Description
apiKey string 바로e맵에서 발급한 API 키.
(API 키 발급처: 'https://map.ngii.go.kr/')
The api Key issued by 'https://map.ngii.go.kr/'
mapType string 바로e맵 지도 유형.
   1. "korean_map"- 일반지도(국문)
   2. "english_map"- 일반지도(영문)
   3. "chinese_map"- 일반지도(중문)
   4. "japanese_map"- 일반지도(일문)
   5. "airphoto"- 영상지도
The type of Ngii map. (ex: "korean_map", "english_map", "chinese_map", "japanese_map", "airphoto")
Example:
// DitapViewer 생성
  const viewer = new Ditap.DitapViewer("ditapContainer", {
    baseLayerPicker: true,
  });
  
  // DitapBaseLayerPicker 인스턴스 생성
  const ditapBaseLayerPicker = viewer.ditapBaseLayerPicker;

  // DitapBaseLayerPicker 인스턴스 생성
  const ngiiMapImageryProvider = new Ditap.ProviderViewModel({
    name: "Ngii Korea Map",
    iconUrl: Utils.getUrlFromBase64(Ditap.ConstantUrl.NGII_MAP_IMG_URL),
    tooltip: "Ngii Korea Map",
    category: "Other",
    creationFunction: function () {
      return new Ditap.NgiiMapImageryProvider({
        // 발급 받은 clientId 추가 (필수)
        apiKey: apikey,

        // 맵 타입 추가 (필수)
        mapType: "korean_map",
      });
    },
  });

  ditapBaseLayerPicker.viewModel.selectedImagery = ngiiMapImageryProvider;