Created
January 14, 2015 01:41
-
-
Save scari/b030f428bd6d278aec11 to your computer and use it in GitHub Desktop.
folium multiline example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:2973e2de8a82014a67bd11d6459e6cb8ead849a408ba90c3f2477fcc4f522ec6" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"import folium\n", | |
"map = folium.Map(location=(45.523, -122.675), zoom_start=12, width=800, height=600)\n", | |
"\n", | |
"# three parallel lines which has same style.\n", | |
"map.multiline(locations=[[(45.523, -122.675), (45.523, -122.685)],\n", | |
" [(45.533, -122.675), (45.533, -122.685)],\n", | |
" [(45.543, -122.675), (45.543, -122.685)]],\n", | |
" line_color='red',\n", | |
" line_weight=3,\n", | |
" line_opacity=1.0)\n", | |
"\n", | |
"map.create_map(path='output.html')\n" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [], | |
"prompt_number": 33 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment