# Mapping It Out

Remember that we wanted to keep longitude and latitude in our geographical\_location data set, and renamed the variables to be short and less messy? This will be useful now since we are going to plot all ports onto a map now!&#x20;

We will build the map using the `plotly` package. While you could have also plotted all previous graphs with plotly too, it is more cumbersome to do so, but it does an amazing job with maps.&#x20;

* [ ] Plot a map (it does not have to be a globe!), where all ports are mapped down.&#x20;
* [ ] When hovering your mouse over a port, you should get a pop-up with the information as in the below example.

<figure><img src="https://2669499530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnYNN3nXNuXMJpHACcH73%2Fuploads%2FMPF01K8vi4zoPe7nHJNh%2Fquestion_8.png?alt=media&#x26;token=8495b303-6723-4a8f-88bd-11fc04f3496e" alt=""><figcaption></figcaption></figure>

> <img src="https://2669499530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnYNN3nXNuXMJpHACcH73%2Fuploads%2Ft1yAGmUambZeYVQvPSeu%2Fp.png?alt=media&#x26;token=01872756-9ca8-44f9-9ec1-1ff5f70ce561" alt="" data-size="line">&#x20;
>
> One option for plotting geographical data is using Plotly's `px.scatter_geo` for a Geographical Scatter Plot. You can find help with the map itself [here](https://plotly.com/python/scatter-plots-on-maps/) and guidance on map styling [here](https://plotly.com/python/map-configuration/).
>
> Alternatively, you can utilize `folium.Map` for another approach.&#x20;
>
> Remember, your maps don't need to match exactly as the one above!
