https://developers.google.com/maps/ specifically Google Maps JavaScript API v3 — Google Developers
Go to Getting Started - Google Maps JavaScript API v3 — Google Developers
How to read in from a local file -- use script?
In [11]:
from IPython.core.display import HTML, Javascript
In [12]:
# load the Google Maps API library
# TO DO: make it easy to add API key
def gmap_init():
js = """
window.gmap_initialize = function() {};
$.getScript('https://maps.googleapis.com/maps/api/js?v=3&sensor=false&callback=gmap_initialize');
"""
return Javascript(data=js)
gmap_init()
Out[12]:
In [13]:
%%html
<style type="text/css">
.map-canvas { height: 300px; }
</style