remove dependency on AnchoredBubble and Marker from Feature. r=marcjansen,bartvde,erilem (closes #1633)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
/**
|
||||
* @requires OpenLayers/BaseTypes/Class.js
|
||||
* @requires OpenLayers/Util.js
|
||||
* @requires OpenLayers/Marker.js
|
||||
* @requires OpenLayers/Popup/AnchoredBubble.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -53,7 +51,7 @@ OpenLayers.Feature = OpenLayers.Class({
|
||||
* {<OpenLayers.Class>} The class which will be used to instantiate
|
||||
* a new Popup. Default is <OpenLayers.Popup.AnchoredBubble>.
|
||||
*/
|
||||
popupClass: OpenLayers.Popup.AnchoredBubble,
|
||||
popupClass: null,
|
||||
|
||||
/**
|
||||
* Property: popup
|
||||
@@ -187,17 +185,16 @@ OpenLayers.Feature = OpenLayers.Class({
|
||||
createPopup: function(closeBox) {
|
||||
|
||||
if (this.lonlat != null) {
|
||||
|
||||
var id = this.id + "_popup";
|
||||
var anchor = (this.marker) ? this.marker.icon : null;
|
||||
|
||||
if (!this.popup) {
|
||||
this.popup = new this.popupClass(id,
|
||||
this.lonlat,
|
||||
this.data.popupSize,
|
||||
this.data.popupContentHTML,
|
||||
anchor,
|
||||
closeBox);
|
||||
var anchor = (this.marker) ? this.marker.icon : null;
|
||||
var popupClass = this.popupClass ?
|
||||
this.popupClass : OpenLayers.Popup.AnchoredBubble;
|
||||
this.popup = new popupClass(this.id + "_popup",
|
||||
this.lonlat,
|
||||
this.data.popupSize,
|
||||
this.data.popupContentHTML,
|
||||
anchor,
|
||||
closeBox);
|
||||
}
|
||||
if (this.data.overflow != null) {
|
||||
this.popup.contentDiv.style.overflow = this.data.overflow;
|
||||
|
||||
Reference in New Issue
Block a user