[OpenLayers-Users] Multiple OpenLayers Popups in the same location in map

Andreas Hocevar ahocevar at opengeo.org
Thu Mar 24 04:19:55 EDT 2011


Hi,

there are ways, but they involve using one popup with a selection. When selected, a new popup will open that shows information for the selected item. See http://maps.klimaaktiv.at/index.php?id=188 for an example.

Regards,
Andreas.
 
On Mar 8, 2011, at 14:20 , jpvalappil wrote:

> Hi OL Users & Developers,
> 
> I have a page that shows an OL map. This page has two layers and a click on
> it will get the attribute information of the layer via WMSGetFeatureInfo
> control. 
> 
> Once JS gets the information from the mapserver it shows a popup that I've
> done via 
> http://dev.openlayers.org/docs/files/OpenLayers/Popup/FramedCloud-js.html
> OpenLayers.Popup.FramedCloud . I used to add the popup directly on to the
> map object.
> 
> Everything works well until a user click on an area that belongs to multiple
> layer. I have correctly parsed the attribute information belongs to
> different layers. But the popup code inserts two popups at the same location
> in the map. In other words at a single instance of time only one popup is
> visible.
> 
> Is there anyway through which multiple popups that belongs to the same
> location can be shown?
> 
> Really appreciate any help regarding this.
> 
> -----
> Thanks in advance
> 
> Jayaprakash
> 
> India
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Multiple-OpenLayers-Popups-in-the-same-location-in-map-tp6124893p6124893.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list