A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/maps/documentation/maps-3d/ios-sdk/add-polygons below:

Add a polygon to a map | Maps 3D SDK for iOS

Add a polygon to a map

Stay organized with collections Save and categorize content based on your preferences.

Select platform: Android iOS This product or feature is Experimental (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms. For more information, see the launch stage descriptions.

You can add a polygon to a 3D map.

The following code sample demonstrates how use the Polygon struct to add a 3D polygon and position it in 3D space.

Swift
          Map(mode: .hybrid) {
            Polygon(
              outerCoordinates: [
                .init(latitude: 37.7749, longitude: -122.4194, altitude: 0),
                .init(latitude: 37.7740, longitude: -122.4184, altitude: 0),
                .init(latitude: 37.7750, longitude: -122.4174, altitude: 0),
              ]
            )
          }
          
        

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-14 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4