make OpenLayers.Feature create OpenLayers.Popup.Anchored as opposed to OpenLayers.Popup.AnchoredBubble by default

This commit is contained in:
Éric Lemoine
2011-12-09 00:05:34 +01:00
parent 33a1c842d6
commit 46e15b5359
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ OpenLayers.Feature = OpenLayers.Class({
/**
* APIProperty: popupClass
* {<OpenLayers.Class>} The class which will be used to instantiate
* a new Popup. Default is <OpenLayers.Popup.AnchoredBubble>.
* a new Popup. Default is <OpenLayers.Popup.Anchored>.
*/
popupClass: null,
@@ -188,7 +188,7 @@ OpenLayers.Feature = OpenLayers.Class({
if (!this.popup) {
var anchor = (this.marker) ? this.marker.icon : null;
var popupClass = this.popupClass ?
this.popupClass : OpenLayers.Popup.AnchoredBubble;
this.popupClass : OpenLayers.Popup.Anchored;
this.popup = new popupClass(this.id + "_popup",
this.lonlat,
this.data.popupSize,