Default Configuration

Main
1. Load from no config object
2. Load with wrong JSON object
3. Load with bad config values
4. Load layers with bad config values
5. Load config from URL params
6. Load config from file
7. Load config from function call
This page is used to showcase how we validate map configuration object before creating the map.

1. Load from no config object

Top of the page

This map will will load with default configuration because none is provided.

Configuration Snippet:


2. Load with wrong JSON object

Top of the page

This map will load with bad configuration replaced with default.

Configuration Snippet:


3. Load with bad config values

Top of the page

This map will load with bad configuration replaced with default.

Configuration Snippet:

4. Load layers with bad config values

Top of the page

This map will not load layers with bad configuration and inform the user.

Configuration Snippet:

5. Load config from URL params

Top of the page

This map loads it's configurations from the URL parameters by providing data-shared. If data-config is provided then it will override all loaded config from parameters.

Configuration Snippet:

6. Load config from file

Top of the page

This map loads it's configurations from a file by providing data-config-url

Configuration Snippet:

7. Load config from function call

Top of the page

This map loads it's configurations from a function call

Configuration Snippet: