@@ -84,11 +84,14 @@ To create a base map we simply pass the starting coordinates to Folium.
To display it in a Jupyter notebook, simply ask for the object representation.
The default tiles are set to OpenStreetMap.
Using folium.marker we plot the hospitals with the help of latitudes and longitudes that are present in the excel document database that has been implemented and saved.
Next folium.Map is used to point create the map object.
folium.Icon allows users to display custom images as icons instead of the default markers. It creates a custom pointer which is used to plot a specific place.
Here is how to do it. First we instantiate the map:
Then tooltip has been made used of to show some text or message which appears when a cursor is positioned over an icon, image or hyperlink.
popup is used to show the details about a pointer when it is clicked. popup has been made a part of in order to have a quick and easy way to communicate with the user. This is used for things like informational messages, warnings, disclaimers, new product versions, and a whole lot more.
The goal is to create a popup window function, along with a text parameter where we specify the text we want to show.
import os imports the osm maps in which the hospitals are plotted.