PDA

View Full Version : adding links by coordinates


callumtucker296455
05-28-2009, 09:15 AM
Hello

I would like to be able to add links to the points I have added into google maps, I have found the pdf for adding them by Address however I have entered mine in by coordinates. could someone please post a sample of what the code should look like for making a link by using coordinates.

Thanks

Ray Borduin
05-28-2009, 09:47 AM
It should be the same just using the coordinates instead of the address. What part is confusing?

callumtucker296455
05-28-2009, 11:21 AM
Below is an example copy from WebAssist website

Example: If the location I wanted my map to focus on was 8899 University Center Ln, this text would look as follows.

<a href="#" onClick="wagmp_map_1_obj.getPointByAddress ('8899 University Center Ln').marker.openInfoWindowHtml (wagmp_map_1_obj.getPointByAddress('8899 University Center Ln').address.infowindowtext);"">8899 University Center Ln </a>

I have tried putting in the coordinates instead of the physical address ('36.600986,-118.051518') and it does not work

Ray Borduin
05-28-2009, 11:43 AM
Do you have a sample URL where I can view it? I might be able to figure it out.

callumtucker296455
05-28-2009, 12:20 PM
http://www.ovcdc.com/maptest/contact.html
on the locations sidebar I have all locations in Inyo County added into pro maps the link is for Lone Pine, when I click it it just appends the # to the end of the url.

Ray Borduin
05-28-2009, 12:30 PM
It looks liek the function getPointByAddress will only check the street information by default.

If you want to check another field you need to specify the field to check... I think this would work:

getPointByAddress(''36.600986,-118.051518'',"full")

by adding the "full" argument it will know this is the full coordinate set and not the street.

callumtucker296455
05-28-2009, 01:31 PM
Thank you, for the quick responses, adding the 'full' aurgument worked.