{
"metadata": {
"name": "",
"signature": "sha256:509e0d4cb2b4d71fa867a2b995bbfb634356899902221e053b1506494e2c6b33"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import folium\n",
"from IPython.display import HTML, Javascript, display"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def inline_map(m):\n",
" m._build_map()\n",
" srcdoc = m.HTML.replace('\"', '"')\n",
" embed = HTML(''.format(srcdoc=srcdoc))\n",
" return embed"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#station = st_list[st_list.keys()[0]]\n",
"#map = folium.Map(location=[station[\"lat\"], station[\"lon\"]], zoom_start=4)\n",
"map = folium.Map(location=[41, -71], zoom_start=4)\n",
"#map.line(get_coordinates(bounding_box, bounding_box_type), line_color='#FF0000', line_weight=5)\n",
"\n",
"#plot the obs station, \n",
"#for st in st_list: \n",
"map.simple_marker([41,-72], popup='something something...
',marker_color=\"green\",marker_icon=\"arrow-up\",icon_angle=0)\n",
"inline_map(map) "
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
""
],
"metadata": {},
"output_type": "pyout",
"prompt_number": 7,
"text": [
""
]
}
],
"prompt_number": 7
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
}
],
"metadata": {}
}
]
}