GeoView : add openlayers infobubble capabilities.

svn: r16270
This commit is contained in:
Serge Noiraud 2010-12-12 18:06:09 +00:00
parent 3de630b8af
commit d8b2c111e0

View File

@ -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() {