We are trying to convert our GMaps v2 ArcGIS for GMaps web app to use
GMaps v3 by leveraging the ArcGIS Server Link lib in the GMaps Utility
lib.
We have done so, but we are still left with 1 bug. This bug also
shows up in the Examples on the site -
http://google-maps-utility-library-v3.googlecode.com/svn-history/r172/trunk/arcgislink/docs/reference.html
When you zoom out aways, and pan around enevtually, you will get this
error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/
4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET
CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM
8; .NET4.0C; .NET4.0E)
Timestamp: Mon, 5 Mar 2012 21:23:27 UTC
Message: Invalid argument.
Line: 2910
Char: 9
Code: 0
URI:
http://google-maps-utility-library-v3.googlecode.com/svn-history/r172/trunk/arcgislink/src/arcgislink.js
Message: Invalid argument.
Line: 2910
Char: 9
Code: 0
URI:
http://google-maps-utility-library-v3.googlecode.com/svn-history/r172/trunk/arcgislink/src/arcgislink.js
I have not received the error in FireFox. However, our users are
limited to IE 8 at this time.
We encountered a similar error with version 2, back in March 2010 with
IE 8.
This error does not occur on
maps.google.com.
Our tech lead, said it occurs when adding a customer overlay…what
happens is the sw and/or ne points will calculate a negative width and/
or height to set the div style…
Example Code:
// Retrieve the southwest and northeast coordinates of this
overlay
// in latlngs and convert them to pixels coordinates.
// We'll use these coordinates to resize the DIV.
var sw =
overlayProjection.fromLatLngToDivPixel(this.bounds_.getSouthWest());
var ne =
overlayProjection.fromLatLngToDivPixel(this.bounds_.getNorthEast());
// Resize the image's DIV to fit the indicated dimensions.
var div = this.div_;
div.style.left = sw.x + 'px';
div.style.top = ne.y + 'px';
div.style.width = (ne.x - sw.x) + 'px';
div.style.height = (sw.y - ne.y) + 'px';
Thanks,
JB