import folium
from folium.plugins import HeatMap
import json
import webbrowser
import os

point_data =json.loads(open('./data/point.json', mode='r', encoding='utf-8').read())
#point_data
m2 = folium.Map(location=[36.505354, 127.704334], zoom_start=7, tiles='Cartodb Positron') # 위치를 잡아주는 코드
HeatMap(point_data).add_to(m2)

m2.save('./data/heatmap.html')

chrome_path = 'C:/Program Files/Google/Chrome/Application/chrome.exe %s'
print(os.getcwd())
webbrowser.get(chrome_path).open(os.getcwd()+ '/data/heatmap.html')