make OpenLayers.Feature create OpenLayers.Popup.Anchored as opposed to OpenLayers.Popup.AnchoredBubble by default
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user