BaseLayer
The base layer component, used to configure the inclusion and exclusion of countries and regions
Import
import { BaseLayer } from '@dynatrace/strato-geo';
Use cases
Use the BaseLayer component to render a map with controlled countries and regions. It accepts an array of country codes and region codes in ISO 3166-2 format as include or exclude props to control the display of regions on the map. Use the * symbol to include all countries and the -* suffix to include all country states. You can control the display of both countries and regions in the same array.
const include = ['ES-*', 'AT'];
const exclude = ['ES-CT'];
Learn more about the data format here.