{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Custom Map Backgrounds" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can use custom base maps with Folium! " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Import Folium**" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import folium" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## *Game of Thrones*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use a custom basemap, we need to set the `tiles` parameter to a custom map image and the `attr` parameter to the source of the the map.\n", "\n", "For this *Game of Thrones* map, we're also setting zoom and lat/lon bounds so the user can't navigate off the map." ] }, { "cell_type": "code", "execution_count": 95, "metadata": {}, "outputs": [ { "data": { "text/html": [ "