# Map Comparer

Creating a map that shows two different maps at once, with a slider between them, is a great way to show change over time in a map. Creating this is quite straightforward when you're using Mapster WP Maps. This works in both Maplibre and Mapbox maps -- but you can't mix them. You must compare two Mapbox maps or two Maplibre maps. [See an example here](https://wpmaps.mapster.me/examples/mapster-wp-map/map-compare-example/).

{% embed url="<https://www.youtube.com/watch?v=jMA5gyWytnc>" %}

<figure><img src="/files/b8WSKTiSeHx61y2Soird" alt=""><figcaption><p>Users can slide back and forth or move around the map to see changes over time.</p></figcaption></figure>

First, you will need to create your two maps. These are created as normal in Mapster WP Maps. However, you should bear in mind that it's probably best to make sure both maps have the same starting zoom, center, pitch, and rotation. That way, when the map comparer loads, it will be in the same place for both maps.

It's also best if you make your more heavily featured map as your base map, so that loading will happen efficiently.

You can make sure your maps have different Styles loaded, or just maps with different markers and geographical features loaded in. Anything normally added to your map will be visible in the comparer.

Next, in the map you want to appear on the left-hand side, go to your Map edit page. Go to Specialty Maps > Map Compare, and turn it on. Then select the map that will appear on the right side of the map slider.

Voila!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wpmaps-docs.mapster.me/maps/specialty-maps/map-comparer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
