Download & Extend

maps won't display in collapsible fieldgroup or other hidden div

Project:OpenLayers
Version:6.x-1.x-dev
Component:OpenLayers API
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Furthermore, it looks like it breaks all the other javascript on the page.

Comments

#1

FYI I have seen this issue before with mapping kit mostly with IE and may be related to openlayers it self.
Franco

#2

I think it's a bug in openlayers. I've opened a ticket: http://trac.openlayers.org/ticket/2187

#3

IT might also be a good ideea to check out GMap. It has a specific option for this sort of thing. It may just need some logic to render things and then hide them.

#4

Status:active» postponed (maintainer needs more info)

#5

Status:postponed (maintainer needs more info)» closed (won't fix)

This bug can be worked around by giving the map a real width instead of auto.

There are some tickets upstream

http://trac.openlayers.org/ticket/2475

http://trac.openlayers.org/ticket/2461

This is basically 'upstream'.

#6

Could we not do a work around with jQuery that determines the width of the container and assigns it to the map? This could be a behavior as it is not usually needed and adds more processing. This is sort of how GMap does it.