Solved

Longitude + Latitude finder for an emedded google map

Posted on 2008-10-21
6
595 Views
Last Modified: 2012-06-27
Im not sure where to beging or even how to do this, but if possible, could anyone tell me or point me to a website etc...

I have 2 collums named longitude and latidude and on next collum over i have a button saying "find place" or somthing like that. I want that button to take both of the other 2 collums and find it on the map, is this possible?
0
Comment
Question by:Lee-Bartlett
  • 3
  • 2
6 Comments
 

Author Comment

by:Lee-Bartlett
Comment Utility
this link to my site, just imagine a row after longitude with buttons in

http://nexodom.com/website/alldb.php
0
 
LVL 25

Expert Comment

by:Squinky
Comment Utility
This is about giving google maps a location to show. You can do it simply like this:

http://maps.google.com/maps?q=37.771008,+-122.41175&hl=en

That is you just drop it the lat and long. If you read the google maps docs, you'll see there are lots of other properties you can set to add things like labels, images etc.

http://code.google.com/apis/maps/documentation/
0
 

Author Comment

by:Lee-Bartlett
Comment Utility
Ive changed it now, new window is my button which opens up my embedded google map, website is

http://nexodom.com/website/wifi.php
0
 

Author Comment

by:Lee-Bartlett
Comment Utility
I read them but i dont see where i can link them in with my database to automatically find the longitude and latitude if correct on the opened map
0
 
LVL 25

Accepted Solution

by:
Squinky earned 500 total points
Comment Utility
Well you're not passing the lat and long to the opened window, so it's no surprise it doesn't know where to go. Try something like this:

<input type="button" value="New Window!" onClick="window.open('http://www.nexodom.com/website/map.php?lat=0.09176&amp;long=51.75327&amp;label=Subway','mywindow','width=600,height=400,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')">

Then on your map.php page, take those params and pass them in when you create the google maps tag.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

13 Experts available now in Live!

Get 1:1 Help Now