Hi,

I am working with a POC and as part of this we are trying with Google
Map integration. We are getting a script error when we call setCenter.
Below are the lines of code we used

 map = new GMap2(document.getElementById("map_canvas"));
 map.setCenter(new GLatLng(37.4419, -122.1419), 15);

The error message is "'window.location.href' is null or not an object
main.js, line 644 character 17" and it is pointing to
 k.EI=function(){window.location.href.indexOf("file://")==0&&!L.JN()&&!
De&&this.Va.send({ev:"api_watermark",cad:ph({src:"apiv2"})})};

Let me know if any one encountered this problem before and have got a
solution for this.

Best regards,
Rupesh

-- 
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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to