Changeset 230


Ignore:
Timestamp:
03/18/09 18:53:34 (9 years ago)
Author:
dwins
Message:

Allow anchoring popups to arbitrary lon/lat positions by passing in an OpenLayers.LonLat to the constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/opengeo/drake/trunk/core/lib/GeoExt/widgets/popup/Popup.js

    r214 r230  
    6161    //private
    6262    initComponent: function(){       
     63        if (!this.feature && this.lonlat){
     64            this.feature = new OpenLayers.Feature.Vector(
     65                new OpenLayers.Geometry.Point(this.lonlat.lon, this.lonlat.lat)
     66            );
     67        }
     68
    6369        this.baseCls = this.popupCls + " " + this.baseCls;
    6470
Note: See TracChangeset for help on using the changeset viewer.