{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import sys\n", "sys.path.insert(0,'..')\n", "import folium" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "m = folium.Map(location=[44, -73], zoom_start=5)\n" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [], "source": [ "marker_cluster = folium.MarkerCluster().add_to(m)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "folium.Marker([40.67, -73.94],\n", " popup='Add popup text here.',\n", " icon = folium.Icon(color='green',icon='ok-sign'),\n", " ).add_to(marker_cluster)\n", "folium.Marker([44.67, -73.94],\n", " popup='Add popup text here.',\n", " icon = folium.Icon(color='red',icon='remove-sign'),\n", " ).add_to(marker_cluster)\n", "\n", "folium.Marker([44.67, -71.94],\n", " popup='Add popup text here.',\n", " icon = None,\n", " ).add_to(marker_cluster)\n" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
" ], "text/plain": [ "" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "m" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.1" } }, "nbformat": 4, "nbformat_minor": 0 }