Map Weasel is a package of software and mapping designed to make it easy for you to add sophisticated mapping to your website.
When you build your mapping application, you will create a number of web pages. In at least one of those pages will include some of our map-handling software: the Easel applet (a Java program which displays the maps) and some Javascript code that goes with it.
The applet knows how to fetch the maps it can use and dislay them in a web page. So when you are building your application, you can just imagine that all the maps you will be using are stored inside the applet: you simply have to tell it how you want it to use them.
System Structure |
Building your map-based interface is mostly a matter of writing a small amount of Javascript to control the applet and tell it what data you want plotted on the map, and how that data should appear. You can also specify how the maps and things displayed on them react to user actions, such as clicking with the mouse.
The standard JavaScript libraries we supply with Map Weasel handle all the details of interacting with the applet. They provide a framework for building interfaces that lets you create sophisticated applications just by writing a few small functions in Javascript.
The tutorial also uses three smaller windows.
These four windows --- the main Application Window, the Explanation Window, the Code Window and the Comment WIndow --- will in turn let you explore what the example application does, tell you how it was built, let you see the code that does it, and give you more details on that code.
Finally, each tutorial suggests some short exercises. Most are based on making simple changes to the tutorial examples. Doing them will help you learn how and where you can change things to achieve a particular effect. This will make it easier for you to use one or other of the examples as a starting point for building your own map-based interfaces.
To help you find the various files in this tutorial, the names of files you might want to view or edit are given at the bottom right of the page. The file names start from wherever you installed the Map Weasel distribution, using the Web convention of separating parts of the name by `/' rather than the Windows `\'. Thus this page is tutorial/index.html. Make sure that you can find this file, so that you will know how to find parts of the tutorials later on.
Once you're sure you can find the files, it is time to move on to the first tutorial: