![]() # Zoom level = the level you want to zoom at the beginning m = folium.Map(location=, tiles='CartoDB positron', zoom_start=8) #if you need option that user can select background layer of the map folium.TileLayer('openstreetmap').add_to(m) folium.TileLayer('Stamen Toner').add_to(m) folium.TileLayer('Stamen Terrain').add_to(m) folium.TileLayer('Stamen Watercolor').add_to(m) folium.TileLayer('CartoDB positron').add_to(m) # We can create other layers to separate our marker or any area we want to draw. Import folium from ugins import Fullscreen # Create the map object called m which is the base layer of the map # Center at specific lcation # tiles is background layer of the map which you can select from below as well. Therefore, just copy it as a template to quickly execute the map to your Boss. We often start with these features from folium. The basic pattern of drawing map with folium.For more details, folium is a library that you can draw an interactive map (my related story about folium but sorry it is Thai language). Features you need to know of an interactive business analytic map in Pythonįrom my experience, the following codes are what you need to know about Folium library in order to draw an interactive map in terms of business analysis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |