Layer
<map-layer>
-
GitHub -
Figma
Web map data or content is inherently layered. Add it to the <gcds-map> component using one or more child <map-layer> elements. Each layer is rendered on top of the previous one. Often a map is composed of a single opaque "base map" layer and one or more thematic layers on top.
<map-layer> component preview
Render map content as layers
Use the layer component to display Map Markup Language (MapML) content.
Use the component's src attribute to link to the content, or create MapML content in-line in your HTML, between the <map-layer> start and </map-layer> end tags.
Set the initial properties of the layer using the checked, hidden, opacity and media attributes.
Get your code
Generate an instance of the component you need by selecting its code properties.
-
Explore by choosing different code values to generate the instance you want.
-
Get the code and pull it into your environment.
-
Add any copy you need to the component (like text for a label).
Note: The code builder uses English for all code elements, which follows standard practice.
Help us improve
Have questions or a request? Give feedback on our contact form.
Something's wrong? Raise it through GitHub with an