MapStyleSheet Class

Represents a set of rules that define the style of the map in a map control.

Android

public class MapStyleSheet

iOS

@interface MSMapStyleSheet : NSObject

Static methods

FromJson

Creates a new MapStyleSheet from an input string. Returns false in iOS and Optional.absent() in Android if the json was invalid.

Android

static @Nullable MapStyleSheet fromJson(String json)

iOS

+ (BOOL)tryToParseJson:(NSString*)json intoStyleSheet:(MSMapStyleSheet * _Nullable * _Nonnull)styleSheet

Combine

Combines several MapStyleSheets into one.

Android

static MapStyleSheet combine(Iterable<MapStyleSheet> mapStyleSheets)

iOS

+ (instancetype)combineStyleSheets:(NSArray*)styleSheetsToCombine

See Also

Changing the appearance of a map