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.
Inclusion/Exclusion of countries
Include only Spain and Austria
Include all countries, without Spain and Austria
Mix of country and state level regions
Include all countries, and all regions of Spain and Austria
Include Spain and Austria, without regions: Catalonia, Madrid, Vienna, Upper Austria
Still have questions?
Find answers in the Dynatrace Community