@openglobus/og 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openglobus/og",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "[OpenGlobus](http://www.openglobus.org/) is a javascript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers and 3d objects. It uses the WebGL technology, open source and completely free.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"example": "./sandbox"
|
package/src/og/layer/Layer.js
CHANGED
|
@@ -193,7 +193,9 @@ class Layer {
|
|
|
193
193
|
*/
|
|
194
194
|
this._pickingColor = new Vec3();
|
|
195
195
|
|
|
196
|
-
this._pickingEnabled = options.pickingEnabled !== undefined ? options.pickingEnabled : true;
|
|
196
|
+
this._pickingEnabled = options.pickingEnabled !== undefined ? options.pickingEnabled : true;
|
|
197
|
+
|
|
198
|
+
this._isPreloadDone = false;
|
|
197
199
|
|
|
198
200
|
/**
|
|
199
201
|
* Events handler.
|
|
@@ -498,7 +500,9 @@ class Layer {
|
|
|
498
500
|
this._planet.setBaseLayer(this);
|
|
499
501
|
}
|
|
500
502
|
this._planet.updateVisibleLayers();
|
|
501
|
-
if (visibility) {
|
|
503
|
+
if (visibility && !this._isPreloadDone && !this.isVector) {
|
|
504
|
+
this._isPreloadDone = true;
|
|
505
|
+
//TODO: make individual preload
|
|
502
506
|
this._planet._preLoad();
|
|
503
507
|
}
|
|
504
508
|
}
|