Skip to content

Latest commit

 

History

History
81 lines (45 loc) · 3.69 KB

Set-mappls-style.md

File metadata and controls

81 lines (45 loc) · 3.69 KB

< Back to Table of Contents

Mappls offers a range of preset styles to rendering the map. The user has to retrieve a list of styles for a specific account. The listing api would help in rendering specific style as well as facilitate the switching of style themes.

From the below reference code it would become quite clear that user has to specify style names and not URLs to use them.

For access, you can get your api key from Mappls Console

A default style is set for all account users to start with. To know more about available styles, kindly contact [email protected]

This feature is available from version v2.0

To get the list of available styles follow the below mentioned implementation

Method to fetch available styles:

mappls.getStyles();

Click here for Live Demo

Mappls Map Styles contains below parameters:

  1. description(String): Description of the style
  2. displayName(string): Generic Name of style mostly used in Mappls content.
  3. imageUrl(String): Preview Image of style
  4. name(String): Name of style used to change the style.

To set the Mappls style refer the code below :

Method:

mappls.setStyles();

For eg:

mappls.setStyle(‘grey-day’);

Map Styles

That's all!


For any queries and support, please contact:

Email us at [email protected]

Support Need support? contact us!





@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.