Let's start by creating an application folder, named poll
; then, adding an HTML file named index.html
, which can be written as follows:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>LBM | London Assembly Elections</title> <link href="app.css" rel="stylesheet" /> <script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script> </head> <body> <div id="lbm-map"></div> <script src="jquery-2.0.3.min.js"></script> <script src="data.js"></script> <script src="app.js"></script> </body> </html>
As in the previous chapters, we add links to the app.css
and app.js
files, the link to the AJAX Control, and the link to the jQuery file. The DIV
element will serve as the map container. We then copy the app.css
and app.js
files from...