{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# DualMap plugin\n", "\n", "This plugin is using the Leaflet plugin Sync by Jieter:\n", "https://github.com/jieter/Leaflet.Sync\n", "\n", "The goal is to have two maps side by side. When you pan or zoom on one map, the other will move as well." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import folium\n", "import folium.plugins" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `DualMap` class accepts the same arguments as the normal `Map` class. Except for these: 'width', 'height', 'left', 'top', 'position'.\n", "\n", "In the following example we create a `DualMap`, add layer controls and then show the map. Try panning and zooming to check that both maps are synchronized." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "