Forum Moderators: coopster

Message Too Old, No Replies

Interactive viritual Map with Viritual lon&lat coordinates.

viritual map and viritual lon&lat

         

kjell_arne

12:11 am on May 21, 2011 (gmt 0)

10+ Year Member



Hi.

I'm self learned with php&MySql, and i still have a long way to go, so go easy on me here :)

I'm currently working on a project in a game i'm playing, where i'm trying to build a Interactive Viritual Map, with Viritual Lon&Lat. I have the access to a map with a set of coordinates, and i have my own map. So my first question is; How do i get php to calc the coordinats from a set of predefined points on the img. i know how to find x and y, so i can connect x/y with lon/lat, but i cant figure out how to get php calculate the rest of the map.

Than i have a db table, with info like lon and lat for several points, and i would like to have php set these points on the map. I'll also like for a user to be able to find a location on the map, when selecting a spot from a dropdown list.

I'll be glad, and welcome any input and suggestion on how i can achive this goal :)

Kind Regards
Kjell Arne

coopster

3:03 pm on May 24, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, kjell_arne.

I guess it depends on how you set up the lat/lon. Are they pixel positions on the image itself? If so, you can use image manipulation tools to layer more images on the original image. Or better yet you can use stylesheets and JavaScript to show an image at a particular position of the image based on the coordinate data pulled from your database.