# Frequently Asked Questions

We get quite a lot of similar questions, so please check if your question is here before you ask!

{% content-ref url="explanation" %}
[explanation](https://docs.fleaflet.dev/v4/explanation)
{% endcontent-ref %}

<details>

<summary>How can I use a custom map style?<br><em>How can I prevent POI/labels rotating when the map rotates?</em><br><em>How can I remove certain POI/labels from the map?</em></summary>

Unfortunately, this library cannot provide this functionality. It has no control over the tiles displayed in the `TileLayer`. This is a limitation of the technology, not this library.

This is because raster tiles are just images generated by a 3rd party tile server (dictated by your URL template), and therefore cannot be changed by the library that displays the tiles. Filters can be applied to the entire tile, such as an emulated dark mode, but these effects do not look great.

However, tilesets can be styled. This is the most effective way of using custom styles. These methods may help you with this:&#x20;

* You may wish to use a commercial service like Mapbox Studio, which allows you to style multiple tilesets. See [using-mapbox](https://docs.fleaflet.dev/v4/tile-servers/using-mapbox "mention").
* Alternatively, you can experiment with vector tiles. These are not pre-rendered, and so allow any style you desire to be applied on the fly. See [#vector-tiles](https://docs.fleaflet.dev/v4/explanation/raster-vs-vector-tiles#vector-tiles "mention").
* Your last option is to serve tiles yourself. See [other-options](https://docs.fleaflet.dev/v4/tile-servers/other-options "mention").

</details>

<details>

<summary>How can I route a user between two locations?<br><em>Why does the <code>Polyline</code> only go in a straight line between two points?</em></summary>

See [#routing-navigation](https://docs.fleaflet.dev/v4/layers/polyline-layer#routing-navigation "mention").

</details>

<details>

<summary>How can I add a <code>Marker</code> where the user's location is?<br><em>How can I center the map on the user's location?</em></summary>

This is beyond the scope of flutter\_map. However, you can use the [community maintained plugin 'flutter\_map\_location\_marker'](https://github.com/tlserver/flutter_map_location_marker) to do this.

Alternatively, use the 'location' and 'compass' packages to generate a stream of the user's location and heading, and feed that to a `Marker` using a `StreamBuilder`.

</details>

<details>

<summary>Why does the map disappear/go grey when I zoom in far?</summary>

This is a limitation of the chosen tile server: it cannot provide tiles at any higher zoom level, so the map just disappears as the requests for tiles get 404 Not Found responses.

To resolve this, there's 3 options:

* Find a tile server with a higher maximum zoom level\
  \&#xNAN;*22 is the highest that most will provide, including Mapbox*
* Set the `maxNativeZoom` property of the `TileLayer`\
  This will scale the last set of tiles instead of requesting new ones, which has the side effect of making them blurry as their pixels are enlarged
* Set the `maxZoom` property of the `MapOptions`\
  This will prevent the user from zooming any further in

</details>
