ionic3结合cesium在ios中的问题解决

参考地址:https://groups.google.com/forum/#!msg/cesium-dev/YGmaNDF2J38/3dzFApibAQAJ

i got it to run by realising in debug that the DataSourceDisplay assignment to the global variable is not reached in the iOS platform ...

Translating ;) :

        var scene = cesiumWidget.scene;

var dataSourceDisplay = new DataSourceDisplay({

scene : scene,

dataSourceCollection : dataSourceCollection

});

        this._dataSourceDisplay = dataSourceDisplay; //i've placed the last line manually since this the following code is never reached in iOS

Code that should be reach but is not for some reason:

//Assign all properties to this instance.  No "this" assignments should

//take place above this line.

this._baseLayerPickerDropDown = baseLayerPickerDropDown;

this._fullscreenSubscription = fullscreenSubscription;

this._vrSubscription = vrSubscription;

this._vrModeSubscription = vrModeSubscription;

this._dataSourceChangedListeners = {};

this._automaticallyTrackDataSourceClocks = defaultValue(options.automaticallyTrackDataSourceClocks, true);

this._container = container;

this._bottomContainer = bottomContainer;

this._element = viewerContainer;

this._cesiumWidget = cesiumWidget;

this._selectionIndicator = selectionIndicator;

this._infoBox = infoBox;

this._dataSourceCollection = dataSourceCollection;

this._destroyDataSourceCollection = destroyDataSourceCollection;

this._dataSourceDisplay = dataSourceDisplay;

你可能感兴趣的:(ionic3结合cesium在ios中的问题解决)