Solved

Set up world map with click locations

Posted on 2007-11-22
9
228 Views
Last Modified: 2013-12-26
I am trying to set up a one page web site with the following:
*Large image of a World Map
*I want most or all of the worlds cities mapped invisibly into the pixels.
*When you click a pixel the site tells you how far you are from selected location.

How would you recommend doing this preferably using php and mySQL.
Can use other format but no flash.

Thanks a lot!
0
Comment
Question by:lsternlicht
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 16

Expert Comment

by:McExp
Comment Utility
This is not a trivial task!

Lot's of maths etc...

Have you considered Google Maps, there is a programming API which with a little thought will give you exactly what you need.
0
 
LVL 16

Expert Comment

by:McExp
Comment Utility
For a starters, have a look at this page for a guide on the required maths:-

http://www.fes.uwaterloo.ca/crs/geog165/mapcoords.htm
0
 
LVL 16

Expert Comment

by:McExp
Comment Utility
Should have said you don't need the maths for GoogleMaps it will do it for you.
0
 

Author Comment

by:lsternlicht
Comment Utility
no, not googlemaps, i need this from my own image on an html page
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 36

Expert Comment

by:Loganathan Natarajan
Comment Utility
to have dynamic cities and details, better use google maps or yahoo maps ...it allows everything..,
0
 

Author Comment

by:lsternlicht
Comment Utility
logudotcom, how would i do this?
0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 250 total points
Comment Utility
First look at the complete API specification at
http://code.google.com/apis/maps/documentation/index.html

then look the samples at
http://koti.mbnet.fi/ojalesa/exam/index.html

with PHP - MySQL db integrated...
http://maps.forum.nu/gm_markers_from_db.php
0
 

Assisted Solution

by:Valane
Valane earned 250 total points
Comment Utility
Using geo-targeting (Usually through HTTP variables) you could probably pre-define the users position on a grid (your world map) and use javascript through AJAX to return a users click position in X/Y coordiniates, with that, you would then have to work out the length that a pixel would convert to in real world terms (1 pixel = 234.6 miles) then use the pre-definded coordiniates versus the new click coordinates to calculate the distance.

You may even be able to use PHP's GD library to create a "line" from start to finish locations on your world map if you generate the map dynamically.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Creating and Managing Databases with phpMyAdmin in cPanel.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now