Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
object |
다음과 같은 속성을 가진 객체. Object with the following properties:
|
||||||||||||
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
Example:
// 샌드캐슬 예제 'DiTAP - Search Address' 참조
// 1. DitapViewer 생성 시 DitapGeocoder 생성 가능.
const viewer = new Ditap.DitapViewer("ditapContainer", {
geocoder: {
key: "Vworld에서 발급받은 Api Key"
},
});
// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const geocoderContainer = viewer.container.getElementsByClassName(
"js-ditap-toolbal-top-wrap"
)[0];
const koreanGeocoderOptions = {
key: "vworld 발급 api key",
};
const geocoderService = new Ditap.DitapVworldGeocoderService(koreanGeocoderOptions);
const geocoderOptions = {
scene: viewer.scene,
container: geocoderContainer,
geocoderService: geocoderService,
};
const ditapGeocoder = new Ditap.DitapGeocoder(geocoderOptions, viewer);
Extends
Members
Gets the parent container.
- Inherited From:
Gets the parent container.
- Inherited From:
viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
viewModel : GeocoderViewModel
Gets the view model.
- Inherited From:
Methods
위젯 파괴. 영구적으로 제거하는 경우 호출.
Destroys the widget. Should be called if permanently removing the widget from layout.
Returns:
true if the object has been destroyed, false otherwise.
- Inherited From: