Creating Interactive Maps

From: Jeff (knightoftherose98_at_yahoo.com)
Date: 06/16/04

  • Next message: ak: "Re: java 1.4.2. very slow with animated gifs?"
    Date: 16 Jun 2004 11:50:11 -0700
    
    

    Hello Folks,

    I am hoping that the folks of this forum could help me out with a GUI
    problem that I am having.

    The problem is:

    I need to display a map of North American on the Map. Then users need
    to drag icons from another window (or frame) onto the map. The map
    need to "capture" the icon and determine whether or not the icon is in
    the correct location on the map. For example there is a map of North
    America with the cities Los Angeles, New York, Dallas, Tampa Bay,
    Toronto, Ottawa and Montreal on it. The user would drag an icon for
    Montreal onto the map. If the user drags the icon to on top of any of
    the cities the maps should "capture" the icon. It should be able to
    determine that the user icorrect placed the Montreal icon on on New
    York. It should also be able to determine if the user correctly
    placed the Montreal icon on Montreal.

    Now I have been trying to figure out a good way to approach this but
    have come up with nothing. Can anyone suggest a way of approaching
    this problem? If they could perhaps even point me towards some sample
    code to go about this I would appriciate it.

    Thanks,
    Jeff Dunnett
    Department of Psychology
    University of Guelph
    Guelph, Ontario
    Canada


  • Next message: ak: "Re: java 1.4.2. very slow with animated gifs?"

    Relevant Pages

    • Displaying rotated ImageIcon on JScrollPane with menu bar
      ... map, so I am drawing on a JPanel inside a JScrollPane inside a JFrame. ... Graphics2D.drawImageto draw the map image on the JPanel. ... Transformation to rotate the graphics around the icon position ... public class ScrollMap extends JFrame ...
      (comp.lang.java.gui)
    • Re: Map of RFCers
      ... >> If you have a two button mouse, hold the left mouse button down to drag ... >> map and you don't have to scroll the browser's window around. ... >Anyone notice Sheldon is 'all wet'? ... According to his icon he lives in the ...
      (rec.food.cooking)
    • Re: Map of RFCers
      ... >> If you have a two button mouse, hold the left mouse button down to drag ... >> map and you don't have to scroll the browser's window around. ... The problem is anyone could have placed his name there and picked an Icon. ...
      (rec.food.cooking)
    • Re: Far Cry 2: The Penultimate Impression Thread
      ... checkpoint I'll get a "Scouted" message and the icon on the map goes ... its icon changes on the map to indicate this. ... go if you need ammo or medical syringes or whatnot. ...
      (comp.sys.ibm.pc.games.action)
    • Re: Rfc map link
      ... "Christine Dabney" wrote ... Google upgraded the map, and the old link doesn't work any more. ... Well, to redo your location, I need to delete your old icon first. ... do you place your marker. ...
      (rec.food.cooking)