Forum Moderators: coopster

Message Too Old, No Replies

so I want to plot points on a geographic map...

heh. what have I gotten myself into?

         

loiosh

10:59 pm on Aug 11, 2005 (gmt 0)

10+ Year Member



I'm working on a project that will allow users to see the impact of things they've done. each event will be associated with a city,state,country. I want to be able to display a map to the user, plotting the points from event to event in chronological order. I looked around, but haven't seen much in the way of ideas on how to do this. <snip> Anyone have any ideas?

[edited by: ergophobe at 1:07 am (utc) on Aug. 12, 2005]
[edit reason] minor edit [/edit]

ergophobe

1:12 am on Aug 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Funny you should say this. I haven't done it, but I've been rolling it around in my head for a while because I want to do something similar. The approach I'm looking it involves plotting longitude and lattitude on a map and it's simple mathematics. I just need to know how many pixels wide the map is, what the long. is for the left and the right, and where the point should be. Then it's that many pixels from the left or right or whatever.

pixels_per_degree = num_pixels_wide /(longitude_left_edge - longitude_right_edge)

x_pixels = (longitude_left_edge - longitude_my_point) * pixels_per_degree.

That or something similar shoudl give me my x coordinate to plot the point on the map.

Prolific

1:14 am on Aug 12, 2005 (gmt 0)

10+ Year Member



[google.com...]

Something like this?

ergophobe

10:10 pm on Aug 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Nice thought and perhaps it would work for the OP, but the Google maps and API would be 100% useless for me and my envisioned application.