Last post May 30, 2014 12:47 PM by shiftdelete
May 22, 2014 02:45 PM|shiftdelete|LINK
I am getting to grips with Google Maps API within my ASP.NET MVC 3 application. I seem to have encountered an Internet Explorer specific problem (when testing inside VS2012 the error cannot be recreated with Chrome or Firefox).
I have a HTML table listing some customer names. Each row has a "map" button and clicking the button opens a Jquery dialog that is loaded with the Google Map centred and with a Marker at the latitude and longitude for that customer.
With this initial dialog open I can resize my IE window or use the up/down, left/right scroll-bars with no problems.
Now, if I close the dialog and click another button (it could also be the same button), the dialog opens as before, and the Google Map is drawn, however, this time, when I try to resize my IE window or use the up/down, left/right scroll-bars, I encounter
an error (this happens even if I close the dialog).
The error is captured by Visual Studio and shown as an "eval code [dynamic]" script, with this
piece of code highlighted:
var e = a.getBoundingClientRect();
c.x += e.left;
c.y += e.top;
b && (e = jv(b, null), c.x -= e.x, c.y -= e.y);
2 == X[E] && (c.x -= d[Vb].clientLeft + d[Ip].clientLeft, c.y -= d[Vb].clientTop + d[Ip].clientTop)
Is this an undocumented feature in Google Maps API v3 or IE (in that it works OK with Chrome and Firefox) and I need to wait for a fix?
Refreshing the page inbetween button clicks stops the error from happening.
For some background as to how I arrived at this point, please see the forum post on this site for another Google Maps API issue I had previously:
May 25, 2014 11:20 AM|MSDN_ice|LINK
Have you try this in IE 7 8 9 or 10 version?
May 30, 2014 12:47 PM|shiftdelete|LINK
I found that if I published the Web-application the error was not being reported by my IE11 browser when viewing the live site. It must be the touchiness of Visual Studio's testing environment in spotting the exception.