1) 현재 MapType 설정 2) 기본 지도에 맞춤 스타일 제공 (MapTypeStyles) 3) 기본 지도에 사용할 수 있는 mapTypesIds 목록을 설정합니다.
매개변수 없이 호출하면 지도 유형이 Google 기본값으로 재설정됩니다.
지도를 반환합니다.
사용
반환 값
Map.setOptions(mapTypeId, styles, types)
ui.Map
인수
유형
세부정보
mapTypeId
문자열, 선택사항
기본 지도를 설정할 mapTypeId입니다. 표준 Google 지도 API 지도 유형 중 하나를 선택하려면 'ROADMAP', 'SATELLITE', 'HYBRID' 또는 'TERRAIN' 중 하나를 사용하거나 opt_styles 사전에서 지정된 키 중 하나를 사용할 수 있습니다. null로 두고 opt_styles에 스타일이 하나만 지정된 경우 해당 스타일이 사용됩니다.
styles
객체, 선택사항
지도에 표시되는 이름으로 키가 지정된 맞춤 MapTypeStyle 객체의 사전입니다. https://developers.google.com/maps/documentation/javascript/reference#MapTypeStyle을 참고하세요.
types
List<String>, 선택사항
사용할 수 있는 mapTypeIds 목록입니다. 생략되었지만 opt_styles가 지정된 경우 모든 스타일 키를 표준 Google 지도 API 지도 유형에 추가합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[[["Modifies the Google Maps basemap by setting the map type, providing custom styles, and controlling available map types."],["Accepts parameters to change the basemap's appearance or resets to the default Google Maps style when called without parameters."],["Offers flexibility in styling through custom MapTypeStyle objects and allows for selection from standard Google Maps API map types or custom styles."],["Uses the `setOptions()` method with arguments for mapTypeId, styles, and types to implement the modifications."],["Returns the ui.Map object after applying the specified options."]]],["This function, `Map.setOptions()`, modifies the Google Maps basemap. It can set the `mapTypeId` to \"ROADMAP,\" \"SATELLITE,\" \"HYBRID,\" or \"TERRAIN,\" or to a custom style from the `styles` dictionary. Custom styles (`styles`) are defined as `MapTypeStyle` objects. The available `mapTypeIds` displayed in the basemap can be defined in `types`. If called without arguments, the function reverts to the default Google map type. It returns the modified `ui.Map` object.\n"]]