By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,380 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,380 IT Pros & Developers. It's quick & easy.

interactive maps?

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Maybe you can check out either of the followings. They have source
codes available:
http://www.thejmaker.com/gil.html
http://www.thejmaker.com/rim.html

-----Original Message-----
From: mj******@bulldog.unca.edu (Matt)
[SMTP:mj******@bulldog.unca.edu]
Posted At: Friday, July 18, 2003 2:39 PM
Posted To: comp.lang.javascript
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

Jul 20 '05 #2

P: n/a
On 18 Jul 2003 12:38:46 -0700, mj******@bulldog.unca.edu (Matt) wrote:
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.


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://tirolatlas.uibk.ac.at/
http://www.onemap.org/
http://www.dbxgeomatics.com/svg.asp?Language=EN (commercial but great)

There's loads of others.

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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.