Maps JavaScript API は、標準の ECMAScript と W3C DOM 環境でのみ機能します。そのため、ブラウザで提供されている組み込みのクラスやオブジェクトの動作を変更またはオーバーライドすると、Maps JavaScript API が機能しなくなる場合があります。ブラウザの動作が変更され、標準の ECMAScript 環境ではなくなることで、他のライブラリが Maps JavaScript API と競合する場合があります。Maps JavaScript API には、そうしたライブラリとの互換性がありません。
Maps JavaScript 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-09-05 UTC。"],[[["\u003cp\u003eAvoid using JavaScript libraries like Prototype, MooTools (older versions), and DateJS (older versions) as they can conflict with the Maps JavaScript API due to their non-standard overrides of built-in browser functionalities.\u003c/p\u003e\n"],["\u003cp\u003ePrevent CSS conflicts by following specificity rules and avoiding direct references to Maps JavaScript API class names or internal DOM elements; instead, use custom CSS classes as containers for your map.\u003c/p\u003e\n"],["\u003cp\u003eIf using CSS frameworks or components that cause conflicts, consider a box-sizing override: set the \u003ccode\u003e<html>\u003c/code\u003e element to \u003ccode\u003eborder-box\u003c/code\u003e, use \u003ccode\u003ebox-sizing: inherit\u003c/code\u003e for other elements, and reset \u003ccode\u003ebox-sizing\u003c/code\u003e to \u003ccode\u003einitial\u003c/code\u003e for your custom map container.\u003c/p\u003e\n"],["\u003cp\u003eCommon CSS elements like \u003ccode\u003eimg\u003c/code\u003e, \u003ccode\u003ebutton\u003c/code\u003e, and \u003ccode\u003ea\u003c/code\u003e can be overwritten by page styles, potentially causing distorted or hidden map components; adjust styles accordingly, for example, setting \u003ccode\u003emax-width: none\u003c/code\u003e for map images to avoid issues.\u003c/p\u003e\n"]]],["The Maps JavaScript API may conflict with other libraries that modify browser behavior, notably Prototype, older MooTools, and older DateJS versions. CSS conflicts arise when page styles, frameworks, or JavaScript components override map styles. To prevent issues, use CSS specificity rules, avoid referencing internal API class names, and update elements like `img` to `max-width: none`. A workaround for `box-sizing` conflicts is to set `\u003chtml\u003e` to `border-box`, other elements to `inherit`, and map containers to `initial`.\n"],null,[]]