Stay organized with collections Save and categorize content based on your preferences.
GMSMapStyle@interface GMSMapStyle : NSObject
GMSMapStyle
holds details about a style which can be applied to a map.
With style options you can customize the presentation of the standard Google map styles, changing the visual display of features like roads, parks, and other points of interest. As well as changing the style of these features, you can also hide features entirely. This means that you can emphasize particular components of the map or make the map complement the content of your app.
For more information see: https://developers.google.com/maps/documentation/ios-sdk/styling
Creates a style using a string containing JSON.
Returns nil and populates error
(if provided) if style
is invalid.
Swift
convenience init(jsonString style: String) throws
Objective-C
+ (nullable instancetype)styleWithJSONString:(nonnull NSString *)style
error:
(NSError *_Nullable *_Nullable)error;
Creates a style using a file containing JSON.
Returns nil and populates error
(if provided) if style
is invalid, the file cannot be read, or the URL is not a file URL.
Swift
convenience init(contentsOfFileURL fileURL: URL) throws
Objective-C
+ (nullable instancetype)
styleWithContentsOfFileURL:(nonnull NSURL *)fileURL
error:(NSError *_Nullable *_Nullable)error;
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 2024-11-15 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 2024-11-15 UTC."],[[["`GMSMapStyle` allows customization of the visual display of Google Maps features like roads, parks, and points of interest."],["You can change the style of map features or hide them completely to highlight specific elements or complement your app's content."],["Styles can be created using a JSON string with `styleWithJSONString:error:` or from a JSON file with `styleWithContentsOfFileURL:error:`."],["Invalid JSON, unreadable files, or incorrect URLs will result in a nil return and potentially populate an error object."]]],[]]
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