import requests
import pandas as pd
import numpy as np
import folium
from folium.plugins import MiniMap
from folium.plugins import MarkerCluster
mc = MarkerCluster()
minimap = MiniMap()
m = folium.Map(location=[36.6907215, 128.1486511],
zoom_start= 7)
def marker_map(df):
m.add_child(minimap)
for i in range(len(df)):
mc.add_child(
folium.Marker([df['y'][i],df['x'][i]],
tooltip=df['place_name'][i],
popup =folium.Popup(df['address_name'][i],
max_width=450, max_height=450),
icon=folium.Icon(color = 'blue',icon='ok')
)
)
m.add_child(mc)
return m
mc_map(df)