# Layers

To display anything on the map, you'll need to include at least one layer. This is usually a [`TileLayer`](https://docs.fleaflet.dev/v6/layers/tile-layer), which displays the map tiles themselves: without it, the map isn't really a very good map!

<div align="center" data-full-width="false"><figure><img src="https://373614876-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6crWs9H40DxNQrzXYdrt%2Fuploads%2FYArWWbhrlMy7M2WJ7WdZ%2FExampleMap.jpg?alt=media&#x26;token=f593a151-82f8-4f28-af9c-f6b632df331b" alt="Example FlutterMap widget, containing multiple feature layers, atop a TileLayer" width="563"><figcaption><p>Example <code>FlutterMap</code> widget, containing multiple feature layers, atop a <code>TileLayer</code></p></figcaption></figure></div>

To insert a layer, add it to the `children` property. Other layers (sometimes referred to as 'feature layers', as they are map features) can then be stacked on top, where the last widget in the `children` list is topmost. For example, you might display a [`MarkerLayer`](https://docs.fleaflet.dev/v6/layers/marker-layer), or any widget as your own custom layer ([creating-new-layers](https://docs.fleaflet.dev/v6/plugins/making-a-plugin/creating-new-layers "mention"))!

{% hint style="info" %}
It is possible to add more than one `TileLayer`! Transparency in one layer will reveal the layers underneath.
{% endhint %}

{% hint style="info" %}
To display a widget in a sized and positioned box, similar to [overlay-image-layer](https://docs.fleaflet.dev/v6/layers/overlay-image-layer "mention"), try the community maintained [flutter\_map\_polywidget plugin](https://github.com/TimBaumgart/flutter_map_polywidget)!
{% endhint %}

Each layer is isolated from the other layers, and so handles its own independent logic and handling. However, they can access and modify the internal state of the map, as well as respond to changes.

## Per-Layer Gesture Handling

By default, each layer acts translucently to gestures, meaning they can handle gestures themselves, but they also allow gestures to bubble down to other layers beneath them.

This behaviour can be disabled in the [`MapOptions`](https://docs.fleaflet.dev/v6/usage/options), by setting `.applyPointerTranslucencyToLayers` false. Optionally, then, the `TranslucentPointer` widget can be wrapped around individal layers to achieve the desired effect.

## Mobile vs Static Layers

Most layers are 'mobile', such as the `TileLayer`. These use a `MobileLayerTransformer` widget internally, which enables the layer to properly move and rotate with the map's current camera.

However, some layers are 'static', such as the [`AttributionLayer`](https://docs.fleaflet.dev/v6/layers/attribution-layer)s. These aren't designed to move nor rotate with the map, and usually make use of a widget like `Align` and/or `SizedBox.expand` to achieve this.

Both of these layer types are defined in the same `children` list. Most of the time, static layers go atop mobile layers, so should be at the end of the list.
