| @@ -17,8 +17,7 @@ class Transform { | |||
| */ | |||
| static transformCartesianToWGS84(cartesian) { | |||
| if (cartesian) { | |||
| let ellipsoid = Cesium.Ellipsoid.WGS84 | |||
| let cartographic = ellipsoid.cartesianToCartographic(cartesian) | |||
| let cartographic = Cesium.Cartographic.fromCartesian(cartesian) | |||
| return new Position( | |||
| Cesium.Math.toDegrees(cartographic.longitude), | |||
| Cesium.Math.toDegrees(cartographic.latitude), | |||
| @@ -45,6 +45,18 @@ class Popup extends Widget { | |||
| DomUtil.setClass(this._wrapper, `dc-popup ${this._config.customClass}`) | |||
| } | |||
| /** | |||
| * Setting custom wrapper | |||
| * @param wrapper | |||
| * @returns {Popup} | |||
| */ | |||
| setCustomWrapper(wrapper) { | |||
| if (wrapper && wrapper instanceof Element) { | |||
| this._wrapper = wrapper | |||
| } | |||
| return this | |||
| } | |||
| /** | |||
| * | |||
| * Setting widget position | |||