On Nov 24, 3:41 pm, kevin simmons <[email protected]> wrote:
> My expected results should be when you go to the page, it shows your
> location. It will get this information from my db. I will be adding a
> little php to handle this.
> I am not too familiar with jsp, so the following code might look stupid
> but, I went to the link you sent me earlier in the day and tried the
> following (needless to say it failed miserably):
>
> var map;
> function initialize() {
> var myLatlng = new google.maps.address(San Diego, CA);
> var myOptions = {
> disableDefaultUI: true,
> zoom: 4,
> center: myLatlng,
> mapTypeId: google.maps.MapTypeId.TERRAIN}
>
> map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);
>
> google.maps.event.addListener(map, 'zoom_changed');
>
> var marker = new google.maps.Marker({
> position: myLatlng,
> map: map,
> title:<?php echo "full_name";?>});
>
> google.maps.event.addListener(marker, 'click');
>
> }
>
> What am I doing wrong that stops the map from display with a San Diego
> start point?
> Thank you for the quick response.

Example that geocodes "San Diego":
http://www.geocodezip.com/GMapsExampleV3b.html

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to