Skip to content
Isaac Olajos edited this page Jan 5, 2024 · 8 revisions

Overview

The LAYER widget defines a map tile layer for the MAP.

Restrictions:

  • A LAYER must still be contained within the MAP element.
  • If the map LAYER is not specified, the MAP will user the open street map.
  • If multiple LAYER's are defined, they are stacked in the same order as defined in the template.

Layer Attributes

Name Type Default Description Req
url string https://tile.openstreetmap.org/{z}/{x}/{y}.png The url to the tile provider
visible bool true Shows/hides the layer on the MAP

Examples

<?xml version="1.0"?>
<MAP>
    <LAYER url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"/>
    <LAYER url="https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.jpg90access_token=<mapbox api key>"/>  
</MAP>

logo See it in Action

Other Widgets You May Find Useful:

Clone this wiki locally