From d8b2c111e068ee1d04198792bb514a13ee60a7c7 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 12 Dec 2010 18:06:09 +0000 Subject: [PATCH] GeoView : add openlayers infobubble capabilities. svn: r16270 --- src/mapstraction/mxn.openlayers.core.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mapstraction/mxn.openlayers.core.js b/src/mapstraction/mxn.openlayers.core.js index 92a18782d..dc57165d3 100644 --- a/src/mapstraction/mxn.openlayers.core.js +++ b/src/mapstraction/mxn.openlayers.core.js @@ -507,7 +507,20 @@ mxn.register('openlayers', { }, openBubble: function() { - // TODO: Add provider code + if ( this.infoBubble ) { + // Need to create a new popup in case setInfoBubble has been called + this.popup = new OpenLayers.Popup.FramedCloud(null, + this.location.toProprietary("openlayers"), + new OpenLayers.Size(100,100), + this.infoBubble, + this.icon, + true + ); + } + + if ( this.popup ) { + this.map.addPopup( this.popup, true ); + } }, hide: function() {