Saving the map

To save the choropleth map, use the create_html method of the visualization:

with open('mpop.html', 'w') as f:
f.write(vizClor.create_html())

To view the saved HTML file locally, open command prompt and start a local HTTP server using Python in the same folder as the saved HTML file. Then, open a browser at http://localhost:8000/mpop.html to see the map:

C:Python3Geospatial>python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
..................Content has been hidden....................

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