java.lang.Object | |
↳ | com.google.android.gms.maps.model.MapStyleOptions |
Defines styling options for a GoogleMap
.
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, read the developer guide.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new set of map style options based on the given JSON styling string.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new set of map style options based on the a JSON styling string loaded from a raw
resource identifier.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new set of map style options based on the given JSON styling string.
Parameters | |
---|---|
json |
String
|
Creates a new set of map style options based on the a JSON styling string loaded from a raw resource identifier.
Parameters | |
---|---|
clientContext |
Context :
Client context for the supplied resourceId. |
resourceId |
int :
Id of a raw resource containing the styling JSON. |
Returns | |
---|---|
MapStyleOptions |
A reference to this MapStyleOptions to allow call chaining. |
Throws | |
---|---|
|
if resourceId is not a valid raw resource id or the resource could not be read. |
Resources.NotFoundException |
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|