interactive maps?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    interactive maps?

    I have a few ideas that I would like to implement using javascript,
    but I'm not sure how to go about this, perhaps some folks here could
    lend a hand.

    The first seems relatively simple. I would like to be able to have a
    user click anywhere on a map (say a standard US map or maybe a
    satellite image which would change, but the map dimensions would not).
    Ideally, lat/lon would be retrieved upon a click (probably not hard to
    do with js, right?) and then somehow I need o to remotely send that
    lat/lon pair to a plotting routine on another machine that will
    generate an image at that location on the fly. I know I can get
    lat/lon from a script (not quite sure how yet as my JS knowledge is
    limited), but whether I can use javascript to either send that
    directly to the routine or place it in some sort of perl script, not
    sure and probably where I need the most help.

    The second application is similar, but seems like a bit of a
    challenge. I have maps (gifs) with color filled contours that I would
    like a user to be able to mouseover and obtain the exact value of the
    plotted parameter in a pop-up box. I don't even know if this is
    possible with a gif and I presume it would require some sort of image
    map, the question is where would the exact parameters come from, seems
    impossible to get them from a gif, maybe I would need to create a
    formatted text file with lat/lon pairs and corresponding values that
    could be accessed via an image map?

    I know this is a lot to ask, but any help is greatly appreciated!

    Much thanks,

    Matt
  • Liu, Chunyen

    #2
    RE: interactive maps?

    Maybe you can check out either of the followings. They have source
    codes available:



    [color=blue]
    > -----Original Message-----
    > From: mjrosier@bulldo g.unca.edu (Matt)
    > [SMTP:mjrosier@b ulldog.unca.edu]
    > Posted At: Friday, July 18, 2003 2:39 PM
    > Posted To: comp.lang.javas cript
    > Conversation: interactive maps?
    > Subject: interactive maps?
    >
    > I have a few ideas that I would like to implement using javascript,
    > but I'm not sure how to go about this, perhaps some folks here could
    > lend a hand.
    >
    > The first seems relatively simple. I would like to be able to have a
    > user click anywhere on a map (say a standard US map or maybe a
    > satellite image which would change, but the map dimensions would not).
    > Ideally, lat/lon would be retrieved upon a click (probably not hard to
    > do with js, right?) and then somehow I need o to remotely send that
    > lat/lon pair to a plotting routine on another machine that will
    > generate an image at that location on the fly. I know I can get
    > lat/lon from a script (not quite sure how yet as my JS knowledge is
    > limited), but whether I can use javascript to either send that
    > directly to the routine or place it in some sort of perl script, not
    > sure and probably where I need the most help.
    >
    > The second application is similar, but seems like a bit of a
    > challenge. I have maps (gifs) with color filled contours that I would
    > like a user to be able to mouseover and obtain the exact value of the
    > plotted parameter in a pop-up box. I don't even know if this is
    > possible with a gif and I presume it would require some sort of image
    > map, the question is where would the exact parameters come from, seems
    > impossible to get them from a gif, maybe I would need to create a
    > formatted text file with lat/lon pairs and corresponding values that
    > could be accessed via an image map?
    >
    > I know this is a lot to ask, but any help is greatly appreciated!
    >
    > Much thanks,
    >
    > Matt[/color]


    Comment

    • Jim Ley

      #3
      Re: interactive maps?

      On 18 Jul 2003 12:38:46 -0700, mjrosier@bulldo g.unca.edu (Matt) wrote:
      [color=blue]
      >I have a few ideas that I would like to implement using javascript,
      >but I'm not sure how to go about this, perhaps some folks here could
      >lend a hand.[/color]

      dhtml will be a significant pain for doing this, use SVG when exactly
      what you're wanting has been implemented many times over.

      Check out some SVG resource:
      from the top of my head:



      http://www.dbxgeomatics.com/svg.asp?Language=EN (commercial but great)

      There's loads of others.

      Jim.
      --
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      Working...