First post and some test
Hello!
This is a test post. Below is some places I’ve spent some significant time in my life :)
import codecs
import folium
import pandas as pd
from folium.plugins import MarkerCluster
from IPython.core.display import display, HTML
from IPython.display import IFrame
def nb_display(path, width="100%", height='500'):
path = '2020-07-13_test_map.html'
file = codecs.open(path, "r", "utf-8")
html_str = file.read()
data_uri = 'data:text/html;charset=utf-8,' + urllib.parse.quote(html_str)
display(IFrame(data_uri, width=width, height=height))
#Define the coordinates we want our markers to be at
#Define coordinates of where we want to center our map
san_diego_coords = [32.715736, -117.161087]
hyde_park = [41.7948, -87.5917]
NYC_coords = [40.7282, -73.7949]
#Create the map
my_map = folium.Map(location = NYC_coords, zoom_start = 3)
#Add markers to the map
folium.Marker(san_diego_coords, popup = 'San Diego, CA').add_to(my_map)
folium.Marker(hyde_park, popup = 'Chicago, IL').add_to(my_map)
folium.Marker(NYC_coords, popup = 'Queens, New York').add_to(my_map)
# my_map
path_save = '../2020-07-13_test_map.html'
my_map.save(path_save)
nb_display('2020-07-13_test_map.html')