Solved

Set up world map with click locations

Posted on 2007-11-22
9
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 16

Expert Comment

by:McExp
ID: 20336419
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
ID: 20336430
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
ID: 20336432
Should have said you don't need the maths for GoogleMaps it will do it for you.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:lsternlicht
ID: 20336624
no, not googlemaps, i need this from my own image on an html page
0
 
LVL 36

Expert Comment

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

Author Comment

by:lsternlicht
ID: 20379605
logudotcom, how would i do this?
0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 250 total points
ID: 20379844
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
ID: 21068587
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

740 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