Creating a map

Because of the interactivity of Jupyter Notebooks, code and code output exist together. This is great when dealing with geospatial data, as it makes it easy to create a map of the data. In this example, the NBA arenas and MLB stadiums datasets are added to a map over a BaseMap object:

from cartoframes import Layer, BaseMap, styling
cc.map(layers=[BaseMap('light'),
Layer('arenas_nba',),
Layer('stadiums_mlb')], interactive=True)

The output produced is as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset