Lab 5

Digital Maps, e-government, shareware, and image maps 

Table of Contents:

   Pre Lab:
      Goals for the Lab:
   Introduction to Image Maps:
      Theory: Client Side (CS) Image Maps
      An example that illustrates non-rectangular hot spots:
      Theory: Image Maps (Server Side) Not to be used in this Lab
      Client Side Maps but Based On Java.
        Download and installation of the Shareware:
   MapEdit Tutorial
      Step 1. Download the Program:
      Step 2. Upon opening the MapEdit Program
      Step 3. Create the Client Side Image Map Hot Spots
      Sample Step -- Creating a Polygonal Hot Spot
   Electronic Maps:
      E-Government and Digital Maps, Satellite Imagery, and Geographic Information Services:
      Interesting Electronic Map Sites on the Internet:
      Commercial Serves based on GPS, Geographic and demographic data, and Commercial data fusion:
         Census Data and Zip codes for Mailing and Marketing Research:
         Flight Tracker based on the FAA's ETMS:
         OnStar -- A GPS and Wireless Application for the Car:
         Weather Maps and online Weather Products:
   Self Test of Lab Concepts:
   Example:
   Gallery:    Lab 5 Instructions:Creating a Client Side Image Map with Shareware
      Exercise 1: Down load MapEdit or a similar shareware editor.
      Exercise 2: Capture a map of their home town
      Exercise 3: Create the imagemap.html
         Step 1: Create the basic page template
         Step 2: Use the Map Editor to edit the imagemap.html.
      Exercise 4: Create the three feature web pages rect.html, circle.html, and poly.html
      Exercise 5: Test and Correct you Pages -- Put on you Web site
   References:
      Glossary of New Terms:
      Related Tutorials:
      Demonstrations:
      FAQ's:
      Other References:
Email

Pre Lab:

This lab is about another mechanism for naviagating the web. In this mechanism the viewer, instead of clicking the mouse over a text link to go to a new page, points the mouse at an area of interest on a graphic or image, called a hot spot and clicks. The hot spot acts like the normal link and takes the user to the new web page. Later we will learn that the hot spot can be associated with more complex user interactions through something called eventhandlers. These interactive images are called image maps.

We will cover the use of Client Side (CS) image maps. Image maps allow the viewer to click on various areas of an image and be linked to hyper documents or multi media elsewhere on the page or on the web. CS image maps contain the data to determine the areas of the hot spots and the links or actions associated with hot spots in the client side document, i.e. the browser can find the data in the web page. In the Server Side (SS) image map the data for the map areas is stored on the server and needs the web site server to receive the location of the mouse click to determine the appropriate action (i.e. where to link).

This new form of interaction with the web page opens up a wide range of options for the web designer. Distance learning can now allow the student to point at the location of interest in a chart, diagram or picture. Electroninc government (e-government) and/or e-commerce can deliver information or services to the public by having the individual point at the location on a map, satellite image, etc. and get any information associated with that spot. Service range from the nearest hospital, available housing for sale, demograghics, weather, etc.

We will use a tool or program to carry out the programming required to transform the shape and location of the hot spot on the graphic into a CS image map. The exercise will require us to get a program off the Web. This will allow us to get better acquainted with the concept of shareware. Up until now the software we needed for the labs were normally standard features of the store bought or PC lab system -- browser, email, ftp, and zip/unzip. Now we will venture into the world of e-commerce with the try and buy of shareware.

Goals for the Lab:

Introduction to Image Maps:

Theory: Client Side (CS) Image Maps

This is an example of a client-side image map.




This is a simple 3 Button Menu Bar. A button bar is a single image that is clearly broken into regions or hot spots that will act like a button when clicked on transfer us to a new page. Note what happens when the mouse passes over the left (1), middle (2), or right (3) button area. You should see your mouse cursor change shape. You should also see the message bar (at Bottom of the Screen) indicate that you will go to the left page i.e. Left.HTML when the mouse is over the left (1) button. Now click to convince yourself that it indeed does so!

What you observing is an example of a graphic image with Hot Spots (Zones) that are sensitive to the Location of the mouse and will cause a hyper link to a URL location when the user clicks the mouse while over such a hot spot. The image maps the click to a URL; hence, the name, image map. There are two types of image maps i.e., Server side and Client side. The original image maps were server side and required the cooperation of a server, that is another computer that carries out services for a web site. The client side was developed later and allows us to determine the location of the hot spot and the URL with only those resources located on the user's computer and browser. This client side image map offers many advantages.
To create a client side image map requires the introduction of two new tags: the map tag and the area tag. The map tag defines the map's name and other attributes and contains the area tags. Each area tag defines the shape of the hot spot and the URL associated with it. The three button example involved three areas tags each with a rectangular shape the size of each button.

Note the image has its upper left point (x,y) = (0,0) and its lower right coordinate at (N-1, M-1) where the image width = N pixels and its HEIGHT = M pixels. In the three button example it is easy to determine the coordinates that are associated with each hot spot once we know the image's size. To specify a rectangular hot spot, we set the shape attribute to be a "rect" and give the rectangle's upper left and lower right coordinates. In the example the source image is 300x50 pixels and each of the three buttons is 100 by 50 pixels.

Before going further, let us look at the code for the above simple example.
 


 

How does this technique work?
  • <IMG>
  • <MAP>
  • <AREA>
  • An example that illustrates non-rectangular hot spots:





    In this test you will see that the Three shapes: 1) the rectangle A, 2) the circle B, and 3) the triangle C, as well as the remaining area inside the bounding square are hot spots that will cause us to go to the appropriate URL if we click while the mouse is over it.

    Most browsers will support a rectangular area as an client side image hot spot. The circle and closed polygon are also frequently supported. While point and ellipse are seldom supported and then only by SS image maps.

    Theory: Image Maps (Server Side) Not to be used in this Lab

    JAVA IMAGE MAP:

    Client Side Maps but Based On Java. Java is a Programming Language From Sun Computers.
    This is an example of a Scrolling Image Map Java Applet. Remember this site if you build Image Map Pages)

    Using Java to create a magnifing glass example:
    In these examples we have two images. The first is the total image or map. Associated with this image is the locator, which is a  box or circle that defines the area of interest. This locator can be moved by the viewer over an area that is then shown in the second image. The second image is normally an enlarged view of the portion of the image under the locator.

    Find the Shipyards of the world. A Slick example to motivate the reader. In the map of the world plave you mouse in the middle of the locator box and hold the left mouse button down and drag the locator over the part of world of interest. What happens in the second larger image? Click in the enlarged image?  What happens? How many ship yards in the US are there for marine services and repairs?

    Another Example that uses a US Map and Locates National PARKS in a BLOWN UP Image controlled by other map. In this example moving the rectangular locator over the US map creates an enlargement that shows all the national parks in the region under the locator's region. Find Yellowstone National Park on the Regional map and Click on it. What happens?

    Designing Web Sites Using Image Maps:

    What is an Image Map Editor?

    An Image map editor is a software tool for:

    Getting Our Software Programs From the Net:

     

    Ecommerce, potentially your first experience:

    While it is becoming more common to buy and sell things over the Internet, it is still less than a majority of the population. The idea is of course to establish a mechanism for placing an order, establishing a means of payment, getting the goods delivered.
     
     

    Freeware:

    In the early day of the internet the users were scientists and engineers most associated with government research projects. These users were like the pioneers on the early western frontier. What they had that was useful to others they shared. Hence, if the software they developed was useful to others they gave it away (remember the addiction concept -- to get full benefit out of your efforts you must share). To see the scientists' nice charts and graphs you had to use their software. Lawyers in this early epoch were known to run down headquarters hallways screaming and muttering when they finally understood that scientists were giving away ideas like the concepts for the WWW, browsers, and multi media. Freeware is as the name implies free; BUT not necessarily without RESTRICTIONS. The creators may:

    Shareware:

    Software that can be: The concept of marketing and selling things on the internet is now beginning to mature. We take this opportunity to introduce the student to the concept of shareware as a first step in illustrating the business potential of the Web. Concepts of security, cyber age money and banking, and their risks and rewards will be addressed in later labs.

    Finding and Using Shareware:

    The Student can either use a search engine -- try ( "image map" + shareware ) as key words, or can try any of the following choices:
     

    Download and installation of the Shareware:

    In the case of MapEdit, when you click on Download Here, we cause a ftp transfer of the program executable, map32dst.exe. You should save it on an empty disk on the A;/ drive. The installation of the MapEdit program is of the self installing type. All the student has to do is open the A:/ drive and double click on the map32dst.exe icon and follow the directions when the process starts. Answer all questions with yes or ok where appropriate.

    The Student may need to uncompress the archived files (extension .zip).

    MapEdit Tutorial

    Step 1. Download the Program:

    Click on Download MapEdit
     
     

    Step 2. Upon opening the MapEdit Program

    Upon opening the MapEdit software, go to File/Open HTML Document .

    The above dialog box will appear. The HTML file name is imagemap.html. Use the Browse Button -- look in A:/ for the file; set the file format to -- all extensions.
    The next dialog box will contain all the images in imagemap.html.
    Click on the name of the map file even if there only one you must click on it.
     

    Step 3. Create the Client Side Image Map Hot Spots


    Step 4. Save and return to Composer.
    Hit the icon for saving the file (it looks like a disk).

    Step 5. Return to Composer and Examine work

    Upon reopening the Composer you should see:

    Electronic Maps:

    In this laboratory's exercises requires street map images of your home town. The site that is used to obtain the street map can provide a number of other services such as: Most search engines offer these services to internet users and charge advertisers a fee for providing the opportunity to have your eyes looking at the above information. The site attempts to get a return for it creation of the useful service, the advertiser hopes to gain your business, and you get the advantage of a easy to use and highly useful map data base. This form of data has its origins in the U.S. Commerce Department's Census Bureau DIME files in order to carry out and analyze census data.

    E-Government and Digital Maps, Satellite Imagery, and Geographic Information Services:

    Government at all levels but most often at the federal level has needs for creating data in the form of maps and charts. Starting with maps for navigation and exploration, land surveys to establish property ownership and political boundaries are essential in any society going back to biblical times. Digital maps, i.e. the storing and display of map, geo-political and data in electronic format began in the late 1960s and early seventies. One of the early pioneers was the city of Nashville, TN working with Intergraph Computing. Nashville transformed its property deeds, land surveys, water and sewer plans, etc.into a digital information base. Every piece of property including streets and roads were given a tax parcel number. Every office of government from the police and fire, the water and sewer, roads, etc. were required to convert to this Geographic Information Systems (GIS). The basic document then became a Computer Aided Drawing (CAD) file of your property. Police and fire responding to emergencies knew the lay out of the house, the number of people living there, and the outstanding warrants and restraining orders. This greatly increased the speed of the response and increased the safety to the first responders to domestic situations. Because the documents are part of the daily business, engineering, and maitance processes they are more likely to be up to be kept up to date.

    More recently the U.S. Defense Department's creation of a satellite system, Global Positioning System (GPS), has resulted in real time navigation, precise location and tracking, and hundreds of other applications. GPS originally was for navigation of military vehicles. When GPS was combined with electronic mapping, it spawned so many commercial applications that these users threaten DOD's ability to shut it off. Thus both the Internet and the GPS have gone far beyond their original military use. The combination will in the near future greatly improve the efficiency of our logistics and transportation systems. 911 operators can use GIS and GPS to locate the source of the phone call, locate the nearest available source of aid and dispatch help in a few key strokes or mouse clicks.

    Vehicle fleets operations can use the same technology to monitor and manage their logistics and transportation systems, pick up and delivery systems, and nation wide routing and scheduling of truck fleets. One of the authors, created one of the first high tech software e-services, Decision Graphics that used online maps and fleet data to create the first online graphics decision support tool --  Interactive Vehicle Scheduling System (IVESS®).  IVESS was used by Fortune 500 corporations and governments for routing everything from school buses, phone coin collection, national truck fleets, etc. IVESS was ahead of its time and pioneered the way for the GIS/GPS  command and control systems that are now appearing. These systems originally start out as stand alone applications over private networks but increasingly they are now integrated into very complex supply chain supply chain solution over the web.

    Onstar based on using GIS/GPS and wireless telephony is probably the most widely known digital map application due its increasing use in luxury cars and in rental fleets. Within the next few years many auto makers plan to sell (GIS/GPS/onboard computer/telephony) as a standard feature. When that happens the automobile will become the electronic infrastructure for web based wireless applications.The automoblie with its more than twenty computers and devices will become a local area network (LAN) and wireless telephony will provide the connection of this LAN to the Web. Not only will the driver and passengers be offered a variety of e-services like on board movies on demand and a host of information products, but the auto's computers can access the web. The car can provide data about its location, need for services or repairs, update its programs, and communicate its intentions to the vehicles in the roadway.

    One application that is frequently seen in TV ads is the car's firing of the air bag(s) causing Onstar operator to inquire if the driver needs assistance. The air bag computer sends the message and the GPS sends the location. The driver either responds or help is sent to the location given by the GPS.

    The Intelligent Highway under development by the U.S. DOT and private industry uses inter-vehicle communication to provide for driver-less or computer assisted driving. For example, you are driving and forced to brake for an animal. Your automoblies computerized braking responds and send sends a message to the car(s) behind to brake immediately to avoid an accident. In fact the technology is not in the remote future but is being tested on real roads.

    Satellite data has greatly improved the government's ability to track weather, measure environment and climatic variables, and to track population and industrial growth. With the ebbing of the Cold War, the U.S. government, other nations, and a growing number of private firms are making available satellite and other aerial surveillance products that allow for accurate weather forecasting, crop forecasting, and the coordination of emergency response to national disasters.

    The national and international airspace is now monitored and managed with increasingly sophisticate Traffic Management Systems (TMS). These systems concepts are also being applied to navigation of the high seas and waterways. The need for safer international marine travel and anti-terrorism  have resulted in new  GPS requirements that will also provide improved shipping and port efficiency. The advent of wireless networks and intelligent highways will allow for improved logistics. This ability of tracking the movement of goods and services will greatly improve the efficiency and productivity of modern manufacturing's supply chain and distribution channels. Companies like FEDEX, UPS, and the United States Postal Service (USPS) are using all of the above technologies to provide a multi modal integration of their delivery systems.
     
     

    Interesting Electronic Map Sites on the Internet:

    Commercial Serves based on GPS, geographic, demographic, other E-government data, and fused with private data:

    Census Data and Zip codes for Mailing and Marketing Research:

    Flight Tracker based on the FAA's ETMS:

    The FAA's Enhanced Traffic Management System (ETMS) is the fusion of the FAA, NAV CANADA, and Great Britain radar and other flight data sources and weather for the Northern hemisphere to provide strategic flow management of air traffic. It provides critical information to the Air Traffic Control (ATC) about the current national view of the airpspace and projected situation for up to 12 hours into the future. The traffic managers bring up displays of data to plan the flow of aircraft from one region of the country to another. The manager can select (filter) data to display only airplanes, regions, or weather of interest. ETMS is used by traffic flow managers and others who need to coordinate the safe and efficient movement of thousands of aircraft an hour through out the northern hemisphere.

    ETMS data is feed to air line operations. ETMS is the basis of tele-conferences every two hours between officals from the FAA and the major airline operations managers. This conference creates a national strategy, called the playbook, for handling weather and other delays. The airlines in turn supply confidential data about their operations is used by the FAA to minimize the total delays in the system. This process is called Collaborative Decision Making (CDM).

    ETMS creates a Traffic System Display (TSD) that can show every plane that the FAA is tracking (over 6000 flights at anyone time) or filter the data for purposes of analyzsing a problem. In the filtered display below the yellow airplan icons are inbound to Chicago O Hare airport  (lower left corner) and the purple ones are inbound for Boston Logan Airport.(lower right). The weather is also shown over North America. Note the traffic over Canada that is being tracked from Europe. Also observe the strings of airplanes coming into O'hare coming in over the four corners of the air space over Chicago.

    ETMS Display

    The ETMS filtered data feed is provided for added value dot coms, i.e. these companies add their data and other progarmming enhancements. The major product of this effort is flight tracking -- which allows travelers and others to locate air planes while enroute and receive accurate arrival times. Taxi fleets and limo services use it to plan their arrivals to pick up deplaning passengers using Wireless Application Programs (WAP) and hand held PDAs and digital phones. Passengers use it to keep track of flights and to book alternate routings guided by flight tracker data.

    World Wide Tracking of Flights


    Freight and package tracking:

    National Ice Center:

    National Imagery and Map Agency:

    OnStar -- A GPS and Wireless Application for the Car:

    Satellite Imagery Archival Sites:

    Unisys Weather Satellite archives  http://weather.unisys.com/
     

    Weather Maps and online Weather Products:

    Navy Global Weather Products  http://152.80.49.205/PUBLIC/
    Current US Radar Weather Maps  http://www.geocities.com/ResearchTriangle/Lab/4419/geo3.html
    US and Global Weather maps from  http://www.weather.com/maps/
    Nation Weather Service -- San Diago  http://www.wrh.noaa.gov/sandiego/maps.html

    Self Test of Lab Concepts:

     




    Website Abstraction's Pop Quiz JS

    CS 113 Quiz 
    Digital maps, e-government, shareware, and image maps
    by P. D. & M. S. Krolak

    Solution:
    Your response: 
    Start Over Cheat Mode

    Example:

    The student should examine the image map example:

    Use the Wyoming Map example as a guide: Creating a Simple Image Map for the Web Site

    Lab 5 Exercise Example

    A simple example of an image map used in a frame environment:
     http://staff.washington.edu/larryg/Classes/R561/zz-frames-man.htmlLast Modified: 10/25/00

    Frames are a means of dividing a window up into parts where each part or frame has its own HTML document.

    Gallery:

     Online Umass Spring 2003 (Morocco) --  Fadma Aziz

    Lab 5 Instructions: Creating a Client Side Image Map with Shareware

    In this laboratory assignment we will locate a map of the our home town and use an image map editor to create a minimum of three areas (hot spots) where the viewer will be cued to click in order to find out more facts about the area or place. The three or more areas will be chosen so as to be an example of each of the shapes, i.e. rectangular, circular, and polygonal . The exercises will create at least four separate web pages: The design of this portion of our web site should reflect a concern for how the viewer will navigate the four page. Note that imagemap.html page is linked back to the home page of the web site indicated by the orange arrow below. A link from the home page to the imagemap.html is left out to avoid clutter. The image map in the diagram below has three hot spots one for each shape. The viewer will be cued by the cursor changing shape over the area created during the editing phase of the exercise. Also a message will appear in the status bar (at the bottom of the window) when the mouse is over a hot spot. A message can also occur will the mouse is moved out of the hot spot.
    The three pages will also have a link back to the image map.

    A well designed site will lead the viewer through the site with a carefully designed navigation strategy that does make assumptions about how the viewer arrived at a page. For instance, a viewer could have dropped into the page, rect.html, having discovered it from a search engine. If there is no link back to the image map page, there is no easy way to find it. Hence, the viewer can not discover how the current page is related to the rest of the site. As the labs lead to projects of greater complexity the web author will be faced with finding efficient navigational methods that allow site visitors easily understood options of where to go next.

    The names of the files rect.html, circle.html, and poly.html are only used to add in the explanation. the names of files should allow the author to find and manage web site in an efficient manner. Good practice is to plan the development of your web site so that the links maybe filled in as the pages are created. A good web master will define a uniform file naming convention to assist in both the development and maintenance of the site.



     
     
     
     
     
     
     
     

    Exercise 1: Down load MapEdit or a similar shareware editor.

    Click on Download MapEdit
     

    Exercise 2: Capture a map of their home town

    Capture a real map of your home town from one of the many map servers on the Net.
    Go to Mapquest, Maps, driving directions, services and shops,

    You will be asked for a street address, city, state, and zip code. You may use any street address that will give a map with features such as parks, schools, etc. that can be identified for purposes of this exercise. Each feature will have a web page developed for it, i.e. the student will describe something of interest to the viewer.The later exercises will require you to select three map features that will use a rectangular, circular, and polygonal shaped regions of interest (hot spots). Note that their is a tab above the map that when click will produce an aerial photo of  the region in the map. You may use the aerial photo in the exercise if you wish.

    In this exercise after you give the street address, etc. the web site will asks it server to give you a map of the surrounding area. This map will then be displayed on the screen. Place your mouse over it and capture as you normal would for any image (right mouse button and select - Save Image as..)
    Save the image to your A/: drive and give it the Name of your town. BE CAREFUL TO SAVE THE MAP AS, YOUR_HOMETOWN.GIF, i.e. make sure the extension is ".gif". This map is normally in GIF format. As an example the following state map was captured off the web.

    To show how current and upto date this information is the result of the query for

    World Trade Center
    New York, NY
    Date of query -- Mapquest Oct 28, 2001, i..e. After the September 11, 2001 Terrorism


    1-3 World Trade Center
    World Trade Center after attack Aerial Photo of WTC

    A Typical Application for an image -- Massachusetts University Campus Locations:

    A real typical application might be to out line every county in the state (before they are abolished) and have a tourist web site where the potential tourist clicks in a county and is given information about events happening in the county during the next several months. Here we have hot spots for the five University of Massachusetts Sites.

    Exercise 3: Create the imagemap.html

    Step 1: Create the basic page template

    After reviewing the captured map open a separate Composer window and proceed as follows: Once the material has been pasted and saved into a Composer page:
     

    Step 2: Use the Map Editor to edit the imagemap.html.

    Following directions in the MapEdit Tutorial:

    Exercise 4: Create the three feature web pages rect.html, circle.html, and poly.html

    Exercise 5: Test and Correct you Pages -- Put on you Web site

    References:

    Glossary of New Terms:

    Button Bar
    digital maps
    Ecommerce
    E-government
    E-service
    Electronic Maps
    Freeware
    Hot Spot
    GPS
    Geographic Information Systems (GIS) --
    Image map
    Shareware
    Template
     

    Related Tutorials:

    Curry College of Education Tutorial on Clickable Images
    Large Collection of Tutorials on Image Map technology
    Australian Desk Top Publishing Tutorial on Image Maps

    Demonstrations:

    FAQ's:

    Other References:

    ©P.D. Krolak & M.S. Krolak 1999- 2003