From the course: Data Science Foundations: Python Scientific Stack [CoderPad]
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Draw a track on map - Python Tutorial
From the course: Data Science Foundations: Python Scientific Stack [CoderPad]
Draw a track on map
- [Instructor] Now let's draw a track on the map. So first we're going to load the data frame, and I'm going to hide the sidebar. And now I'm going to use volume, create a map, and then get a location, create a marker on this location, and add this marker to the map, and finally, show the map. Right, when we run this cell now, we see a marker we can tweak around with the marker and style them. For example, we can use a red circle. So I'm going to use now a circle marker instead of a regular marker and say that the color is red. And now we get a circle marker. Another nice thing you can do is add a popup. So we have the circle marker in the location and color is red, and I'm adding a popup with, "Hi there." So if I'm going to run the cell, now I have the marker. But now when I'm clicking on the marker, I'm going to see my popup. There are many styles of markers in volume, and the popup can be HTML. Check out the volume…