Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Set up world map with click locations

Posted on 2007-11-22
9
Medium Priority
?
264 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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 

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 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 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