Carry out the following steps:
- Create a new HTML file and name it leaflet.html (available in the book source code package). Open it and add the <head> and <body> tags. In the <head> section, import the Leaflet CSS and JavaScript libraries and the jQuery JavaScript library (you will use jQuery to send an AJAX request to the GetFeatureInfo from the MapServer WMS):
<html> <head> <title>Leaflet Example</title> <link rel="stylesheet" href= "https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" /> <script src= "https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"> </script> <script src="http://ajax.googleapis.com/ajax/ libs/jquery/1.9.1/jquery.min.js"> </script> </head> <body> </body> </html>
- Start adding a <div> tag in the <body> ...