Forum Moderators: coopster

Message Too Old, No Replies

MapClick Script

         

branmh

12:29 am on Aug 27, 2005 (gmt 0)

10+ Year Member



I’m looking for a script the would determine the lat/lon from the x/y location and then query a MySQL database and then redirect with values from mysql.

Where would I find this type of a script or can you give me points on how to do this?

coopster

1:37 am on Aug 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Do you mean something like a location locator based on latitude and longitude?

longitude\latitude of each zip code\postal code [webmasterworld.com]

branmh

11:56 am on Aug 27, 2005 (gmt 0)

10+ Year Member



The best example of what I want to do is this:

[srh.noaa.gov...]

click on any part of a county it would to the closest location.

I want to do something like this, when you click on a county map with have points set for lat/lon then it finds the right lat/lon from the x/y points queries a mysql db to find the closest location.

coopster

6:43 pm on Aug 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



In that particular instance I would read the database first and build the image map accordingly. You will already know then which value to return to get the user where they want to go.