MGRSGrid

MGRSGrid

MGRS Grid를 지도 상에 도시한다. Grid 클래스로부터 상속받는다.

Constructor

new MGRSGrid()

Extends

Methods

destroy()

Inherited From:

그리드 레이어를 삭제한다.

initialize(url, minZoom, maxZoom)

MGRS 그리드를 초기화 한다.

Example
//MGRS 그리드 초기화
mgrsGrid = new MGRSGrid();
mgrsGrid.initialize(window.D2MapManager.GRID_MGRS, 1, 12);

//MGRS 그리드 삭제
mgrsGrid.destroy();
Parameters:
Name Type Description
url string

벡터 타일맵 형식의 MGRS 그리드 URL 설정

minZoom number

그리드 표시를 위한 최소 레벨 설정

maxZoom number

그리드 표시를 위한 최대 레벨 설정

setStyle(color, width)

Inherited From:

그리드 스타일(색, 두께)을 설정한다.

Parameters:
Name Type Description
color string

16진수(hexa) color code

width number

그리드 선 두께