MapStyleLoader

The MapStyleLoader class is a singleton object responsible for loading and managing map styles.

Functions

Link copied to clipboard
fun getStyle(name: String): MapStyle?

Returns a loaded MapStyle by its name or null if it does not exist.

Link copied to clipboard
fun loadStyle(styleName: String, chtFile: File, baseDir: File): Error?

Loads the MapStyle and assigns it a name.

Link copied to clipboard
fun unloadStyle(styleName: String): Error?

Unload the specified style. Before unloading a style, make sure that it is no loner used by a MapView instance.