I was getting an error "exception in animation handler for: onAnimate" when zooming to any point. I found here that adding a
setTimeout() around your
map.centerAndZoom() solves the problem. However, that was only for the point feature being brought back from the server.
The problem still persists when I try to get the center point of a polygon:
I have tried both increasing and decreasing the timeout time, but I have not had any success. The map will seem to zoom to the location, but then immediate zoom back to its original location and then spit this error:
I have found a little research done on "Cannot read property 'left' of undefined" and the most I could find is something about symbology - So, just to help out, here is the symbology as it is in ArcGIS Server:
Renderer: Simple Renderer: Symbol: Style: esriSFSSolid Color: [0, 0, 0, 0] Outline: Style: esriSLSSolid Color: [76, 230, 0, 255] Width: 1 Label: Description: Transparency: 0 Labeling Info:
If anyone could shed some light on this problem, I would be grateful.