Skip to content

Latest commit

 

History

History
86 lines (49 loc) · 3.63 KB

Set-Style.md

File metadata and controls

86 lines (49 loc) · 3.63 KB

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.
A default style is set for all account users to start with.
To know more about available styles, kindly contact apisupport@mappls.com

Explore and choose from our map style list on Live Demo

To get the list of available styles:

<MapplsGL.MapView
          didLoadedMapplsMapsStyles={data => {
            
            
          }}
          style={{flex: 1}}>
          
</MapplsGL.MapView>

MapplsStyle 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 Mappls Maps style reference code is below:

<MapplsGL.MapView
          mapplsStyle={this.state.mmiStyle}
          style={{flex: 1}}>
          
</MapplsGL.MapView>

To enable/disable loading of last selected style:

MapplsGL.setShowLastSelectedStyle(value);




For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!





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