Google Maps Platform(GMP)のマップをカスタマイズするには、いくつかの方法があります。これらのメソッドのほとんどでは、マップ ID を使用して、さまざまな地図カスタマイズ機能にアクセスする必要があります。JSON スタイルを使用して GMP マップを手動でカスタマイズすることもできます。
マップ ID で地図をカスタマイズする
マップ ID は、Google マップの 1 つのインスタンスを表す一意の識別子です。マップ ID は、JavaScript、Android、iOS、静的地図のいずれか 1 つのプラットフォームに限定されます。マップ ID はプロジェクトに関連付けます。マップ ID を使用すると、ウェブサイトやアプリケーションで特徴を有効にしたり、地図を管理またはスタイル設定したりできます。詳細については、マップ ID の概要をご覧ください。
マップ ID とクラウドベースのマップのスタイル設定を使用してカスタマイズする
Cloud ベースのマップのスタイル設定では、マップ ID と地図のスタイルを使用して、ユーザー向けにカスタマイズされた道路地図を作成します。その後、アプリのコードを更新することなく、Cloud コンソールで必要に応じてスタイルを更新できます。詳細については、Cloud ベースのマップのスタイル設定をご覧ください。
JSON スタイル設定で地図を手動でカスタマイズする
地図を手動でカスタマイズすると、通常の地図タイプにスタイルを設定できます。この場合、マップ ID は必要ありません。スタイルを更新するには、コードを更新する必要があります。手動マップのスタイル設定とクラウドベースのマップのスタイル設定を同じアプリで組み合わせることはできません。
[null,null,["最終更新日 2025-02-28 UTC。"],[[["Map IDs are unique identifiers for Google Maps instances, restricted to a single platform (JavaScript, Android, iOS, or Static maps), and used to enable features, manage, or style maps."],["Cloud-based maps styling allows customization through map IDs and map styles, with updates managed in the Cloud console without requiring code changes in the application."],["Manual map customization with JSON styling offers another method to style maps, but it does not require a map ID, and updates necessitate code changes."],["Using cloud-based maps styling on Android requires the latest renderer for the Maps SDK for Android."],["Multiple platforms are available for customization, including Android, iOS, Javascript, and Web Service."]]],["Google Maps Platform (GMP) maps can be customized using map IDs or JSON styling. Map IDs, unique identifiers for each map instance, enable cloud-based styling, which allows style updates in the Cloud console without code changes. These are platform-specific. Alternatively, manual customization with JSON styling is possible but requires code updates for style changes, it does not require a map ID. Cloud and manual styles can't be mixed. On Android, the latest renderer is needed for cloud styling.\n"]]