Hi

I can't get the pointer in the right place for one of my maps. I am
using addresses rather than co-ordinates - I wonder if this might be
the problem?

The address is 108 Stamford Street, Lambeth, London SE1 9NH - when
this is typed into maps.google.co.uk the marker is spot on.

Here's some of the code I use:

"address" is an array of addresses and "fred" is the index which
points to the address I need to show

if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
var geocoder = new GClientGeocoder();

function showAddress(address, fred) {

geocoder.getLatLng(
address[fred],
function(point) {
    if (!point) {
      // do nothing
    } else {
   // set scale factor
      if (address.length==1){
          map.setCenter(point, 16);
      }else{
          map.setCenter(point, 17);
      }

      var marker = new GMarker(point);
      map.addOverlay(marker);
      :
      :


The point shows up ok, but its about 200m off where it should be.

Would I be better of now going over and re-writing the page so that it
uses the co-ordinates generated by maps.google.co.uk

Or is there something else that I am doing wrong!

Thanks very  much

E

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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