Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

FeaturePopups control resolve the problem of cluster popups, but there is a small design problem in my opinion: the event popup have the same anchor as the cluster popup and they partial or total overlap.

Is it possible to anchor the second (event) popup on the link on first (cluster) popup?

Thank you!

share|improve this question
1  
An acceptable solution for my project is also to remove first popup when the second is born. –  Bogdan Nov 19 '12 at 13:04
    
I like Bogdan's suggestion better. –  CaptDragon Nov 19 '12 at 18:59
add comment

1 Answer

Currently you can have two solutions:

  • allow second popups will have a close box:

var fpControl = new OpenLayers.Control.FeaturePopups({ popupListItemOptions: {closeBox: true}, ...

  • close the list popup when it shows the second popup:

var fpControl = new OpenLayers.Control.FeaturePopups({ popupListItemOptions: {relatedToClear: ['list', 'single']}, ...

share|improve this answer
    
First solution is working ok, but the second not. The second popup is not showing after the first popup is automatically closed. Thank you! –  Bogdan Nov 22 '12 at 0:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.