Hello,

We have searched very hard to try and find a clear answer to this very
simple question. In our map below all our markers are defined by Lat/
Long coordinates. We would like to add another marker by using address
information only. We understand that the variable is described
something like var address = "crawley,uk" however, we have not been
able to make this work. Is it possible to add a marker by just adding
address information and not Lat/Long coordinates?


Example:

 function initialize() {
    var Latlng = new google.maps.LatLng(51.110174, -0.067656);
    var A1 = new google.maps.LatLng(51.121902, -0.007384);
    var A2 = new google.maps.LatLng(51.111358, -0.068728);
    var A3 = new google.maps.LatLng(51.067017, -0.063566);
    var myOptions = {
      zoom: 10,
      center: Latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new
google.maps.Map(document.getElementById("map_canvas"), myOptions);

    var marker = new google.maps.Marker({
        position: Latlng,
        map: map,
        title:"Centre",
        icon: "images/a.gif"
          });

        var marker1 = new google.maps.Marker({
    position: A1,
    map: map,
    title:"A1 text",});

    var marker2 = new google.maps.Marker({
    position: A2,
    map: map,
    title:"A2 text",});

    var marker3 = new google.maps.Marker({
    position: A3,
    map: map,
    title:"A3 text",});



           google.maps.event.addListener(map, 'zoom_changed', function() {
   if (map.getZoom() > 13) {
     map.setZoom(13);}})

           google.maps.event.addListener(map, 'zoom_changed', function() {
   if (map.getZoom() < 10) {map.setZoom(10);}

 })
  }

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