[OpenLayers-Users] WFS Layer with featureClass and autosize popup breaking Google Layers

joncoign jncoign at Knology.net
Tue Apr 7 12:35:28 EDT 2009


I am having a problem with Google layers breaking when using a WFS point overlay with a featureClass to provide markers and popups with autoSize = true. 

To reproduce I 

    - start the map displaying Google Streets and the WFS layer 
    - Click a marker to display the popup. 
    - Click the X to close the popup 
    - Open layer switcher 
    - Choose Google Hybrid 

At this point panning becomes very erratic with improper behavior with the position jumping around. The map also experiences and extent change immediately when the new Google layer is selected. This problem is not affecting WMS base layers (both tiled and untiled). Surprisingly when the Google layers are misbehaving we can switch to a WMS layer which is positioned correctly and pans properly. Then we can switch back to a Google layer which is still misaligned and not functioning correctly. 

Setting autoSize to false on our custom popup class resolves the issue. The issue also occurs without setting a custom popupClass on the marker if we set the autoSize property on the popup object to true after calling createPopup(true) in the markerClick which has been added to the prototype of the custom marker class which inherits OpenLayers.Feature.WFS 

We are experiencing this behavior against 2.7 and the nightly developer build. I was unable to find any similar bugs in my searches and was wondering if anyone else has seen this behavior. 

Update: 
I also discovered that under the Nightly Dev build this problem going away if we don't call the destroyPopup method on the custom feature class after calling map.removePopup. 

This did not resolve the issue on the 2.7 Release build. 
-- 
View this message in context: http://n2.nabble.com/WFS-Layer-with-featureClass-and-autosize-popup-breaking-Google-Layers-tp2599976p2599976.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list