{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# How to use ImageOverlay" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "It may happen that you want to draw an image on you map. Here are example on how to do that." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import sys" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": true }, "outputs": [], "source": [ "sys.path.insert(0,'..')" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import folium" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from folium.six import PY3" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from folium import plugins" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## In importing a PNG\n", "\n", "If you have a static image file on your disk, you can simply draw it on the map in doing:" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "