Hi Rob

Well ,what i am able to understand from your question is that you are
trying to show a google map on a web page by using api provided by
google and trying to put a marker at a specific location that you
provide through lets say a text box.
Well first of all you must know that you will need lattitude and
longitude of that address to put a marker.So the address you type in
the text box needs to converted into geographical co-ordinates(lat/
long).That technique is referred to as Geocoding.Then after you have
recieved the co-ordinates,you just put the marker by creating a Marker
object for that lat/long.Heres a little code that'll help
you ...hopefully and if  this doesnt then i hope it does for someone
else .


 var geocoder = new GClientGeocoder();// here we created an oject of
the geocoder class that helps us map human
                                                           //readable
addresses to coordinates.

//below we take the address from the text box and find its coordinates
(latlng object) 'point'  from geocoder.getLatLng()
//funtion and then create and put the marker at that point.

 geocoder.getLatLng(document.getElementById("address").value,
function(point)
{

var marker = new GMarker(point); //creating the object of the marker
class for the location(latlng object) 'point'.

map.addOverlay(marker); //this actually puts the marker on the map
});

//The element referred by document.getElementById("address") is the
texbox where you type the address.
//
//
//
. I hope this is what you asked:).

On Nov 22, 2:44 am, "Rob Julien" <[EMAIL PROTECTED]> wrote:
> Please excuse any elementary questions I may have, I'm still quite new at
> this.
>
> I'm trying to create a map by putting a marker at a specific address.  In
> Google Earth, all I do is click 'fly to' and then type in the address and it
> takes me to the exact location.
>
> In My Maps, I can't seem to find that function.  Not knowing exactly where
> on the map my info (the info I want to put on the map) is, I'm finding it
> very difficult to build the map I want.
>
> Can anyone help?
>
> Rob..

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to