in IE7 the error is : TypeError : 'this.Ve.width' is null or not an
object
the line in question is
S.prototype.ev=function(a){return new M(a.x+this.Ve.width,a.y
+this.Ve.height)};
I have only just started investigating why this is happening, but
since the code has not changed for a couple of weeks and it appears
the error has just started this morning, I was wondering if there has
been a change to the google code.
The error is happening within the map setCenter function. I have
checked all the parameters and they appear to be ok. So I have wrapped
it in a try/catch so the error does not propogate , and the setCenter
still appears to work, despite the error.
On Jun 17, 11:46 am, Tony <tony.ste...@neighbournet.com> wrote:
> in IE7 the error is : TypeError : 'this.Ve.width' is null or not an
> object
> the line in question is
> S.prototype.ev=function(a){return new M(a.x+this.Ve.width,a.y
> +this.Ve.height)};
> I have only just started investigating why this is happening, but
> since the code has not changed for a couple of weeks and it appears
> the error has just started this morning, I was wondering if there has
> been a change to the google code.
I've just started getting this error as well this morniong. I tried
putting try catches around the setCenter but it still happens.
Looks like something happened to the api script....
> I've just started getting this error as well this morniong. I tried
> putting try catches around the setCenter but it still happens.
> Looks like something happened to the api script....
I think you're going to have to tell us how to reproduce the error.
There does appear to be a problem with the small maps (hover over the
signpost icon) but that's probably to do with putting maps in a hidden
div. I can't get the API to error.
Unfortunately can't post a link but the error is here in the eval of
the api code
S.prototype.ev=function(a){return new M(a.x+this.Ve.width,a.y
+this.Ve.height)};
Here is the function called. Will do some try / catch blocks as well.
function initialize()
{
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(34, 0), 15);
geocoder = new GClientGeocoder();
document.forms[0].q.value = QueryString("postalCode");
showLocation();
}
function addAddressToMap(response)
{
map.clearOverlays();
if (!response || response.Status.code != 200)
{
alert("Sorry, we were unable to find that address");
}
else
{
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
map.addControl(new GLargeMapControl());
var mapControl = new GMapTypeControl();
map.addControl(mapControl);
map.addControl(new GScaleControl());
map.addControl(new GOverviewMapControl());
geocoder.getLatLng( document.forms[0].q.value,
function(point) { if (!point)
{ alert(document.forms[0].q.value + " not found"); } else
{ map.setCenter(point, 15); var marker = new
GMarker(point); map.addOverlay(marker); } } );
}
}
> in IE7 the error is : TypeError : 'this.Ve.width' is null or not an
> object
> the line in question is
> S.prototype.ev=function(a){return new M(a.x+this.Ve.width,a.y
> +this.Ve.height)};
> I have only just started investigating why this is happening, but
> since the code has not changed for a couple of weeks and it appears
> the error has just started this morning, I was wondering if there has
> been a change to the google code.