Skip to content

Commit 1e2fb20

Browse files
kkokkojeongseokcheol-jeong
andauthored
🤖 Merge PR DefinitelyTyped#72758 [navermaps] Add options related to GL submodule by @kkokkojeong
Co-authored-by: seokcheol-jeong <[email protected]>
1 parent 17ef7f4 commit 1e2fb20

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

types/navermaps/index.d.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// NAVER Maps JavaScript API Version: 3.7
1+
// NAVER Maps JavaScript API Version: 3.8
22

33
/// <reference types="geojson" />
44

@@ -331,6 +331,18 @@ declare namespace naver.maps {
331331
* 빈 타일 이미지 URL을 설정할 수 있는 옵션입니다.
332332
*/
333333
blankTileImage?: null | string;
334+
/**
335+
* An option to enable the GL submodule vector map. This option is applied only in the GL submodule.
336+
*
337+
* GL 서브 모듈 벡터맵을 활성화할 수 있는 옵션입니다. GL 서브 모듈을 반드시 로드해야 옵션이 적용됩니다.
338+
*/
339+
gl?: boolean;
340+
/**
341+
* An option to set the My Style ID issued by the Style Editor. This option is applied only in the GL submodule.
342+
*
343+
* Style Editor에서 발행한 My Style ID입니다. GL 서브 모듈에서만 적용됩니다.
344+
*/
345+
customStyleId?: string
334346
}
335347

336348
/**
@@ -1281,6 +1293,7 @@ declare namespace naver.maps {
12811293
setZoom(zoom: number, effect?: boolean): void;
12821294
updateBy(coord: Coord | CoordLiteral, zoom: number): void;
12831295
zoomBy(deltaZoom: number, zoomOrigin?: Coord | CoordLiteral, effect?: boolean): void;
1296+
stop(): void;
12841297
}
12851298

12861299
/**

types/navermaps/navermaps-tests.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ let map = new naver.maps.Map("map", {
1818
mapTypeId: "normal", // or naver.maps.MapTypeId.NORMAL
1919
});
2020

21+
/**
22+
* GL Submodules
23+
*/
24+
let glMap = new naver.maps.Map("map", {
25+
center: new naver.maps.LatLng(37.3595704, 127.105399),
26+
zoom: 13,
27+
gl: true,
28+
customStyleId: '94230366-adba-4e0e-ac5a-e82a0e137b5e'
29+
});
30+
2131
/**
2232
* Change any combination of center, zoom and padding with an animated transition
2333
* See https://navermaps.github.io/maps.js.ncp/docs/tutorial-2-map-options.example.html
@@ -39,6 +49,7 @@ map.fitBounds(dokdo);
3949
map.panTo(jeju);
4050
map.panToBounds(seoul);
4151
map.panBy(new naver.maps.Point(10, 10));
52+
map.stop();
4253

4354
/**
4455
* Event Basic Example

0 commit comments

Comments
 (0)