Select to view content in your preferred language

Hidden map not working after browser resize

897
2
Jump to solution
11-20-2014 07:22 AM
sumitzarkar
Occasional Contributor

Hi,

We are  issue with js API 3.11, when we hide the mapdiv and resize the window and when we see the map again it doesnt work properl and goes out of extent.Also we can see some error in developer tool. - Error: Invalid value for <circle> attribute cx="NaN"

We have tried handling map resize manually as suggested at this link Hidden map becomes currupt after browser resize but still the map is not working properly.

We've put a quick example of this behaviour here: http://jsfiddle.net/ZM3SM/164/

Capture.PNG

Thanks & Regards,

Sumit Zarkar.

0 Kudos
1 Solution

Accepted Solutions
JohnGrayson
Esri Regular Contributor

Seems like you had the right idea, just uncomment your 'visible' check inside of the resize event.

Esri Map Show/Resize/Hide Issue - do less - JSFiddle

View solution in original post

2 Replies
JohnGrayson
Esri Regular Contributor

Seems like you had the right idea, just uncomment your 'visible' check inside of the resize event.

Esri Map Show/Resize/Hide Issue - do less - JSFiddle

sumitzarkar
Occasional Contributor

Thank You John !

0 Kudos