geojs 1.6.2 → 1.6.3

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/geo.lean.js CHANGED
@@ -3348,13 +3348,15 @@ var annotationLayer = function annotationLayer(arg) {
3348
3348
  * @param {geo.annotation} annotation The annotation to add.
3349
3349
  * @param {string|geo.transform|null} [gcs] `undefined` to use the interface
3350
3350
  * gcs, `null` to use the map gcs, or any other transform.
3351
+ * @param {boolean} update If `false`, don't update the layer after adding
3352
+ * the annotation.
3351
3353
  * @returns {this} The current layer.
3352
3354
  * @fires geo.event.annotation.add_before
3353
3355
  * @fires geo.event.annotation.add
3354
3356
  */
3355
3357
 
3356
3358
 
3357
- this.addAnnotation = function (annotation, gcs) {
3359
+ this.addAnnotation = function (annotation, gcs, update) {
3358
3360
  var pos = $.inArray(annotation, m_annotations);
3359
3361
 
3360
3362
  if (pos < 0) {
@@ -3370,8 +3372,11 @@ var annotationLayer = function annotationLayer(arg) {
3370
3372
  annotation._coordinates(transform.transformCoordinates(gcs, map.gcs(), annotation._coordinates()));
3371
3373
  }
3372
3374
 
3373
- m_this.modified();
3374
- m_this.draw();
3375
+ if (update !== false) {
3376
+ m_this.modified();
3377
+ m_this.draw();
3378
+ }
3379
+
3375
3380
  m_this.geoTrigger(geo_event.annotation.add, {
3376
3381
  annotation: annotation
3377
3382
  });
@@ -25999,7 +26004,7 @@ module.exports = sceneObject;
25999
26004
  * @constant
26000
26005
  * @type {string}
26001
26006
  */
26002
- module.exports = "21a1a4871888b7817d358e482f76bbf807002ee3";
26007
+ module.exports = "4c7a5260c6c4756f2cf461d00c9be82abaea01a7";
26003
26008
 
26004
26009
  /***/ }),
26005
26010
 
@@ -38463,7 +38468,7 @@ module.exports = vectorFeature;
38463
38468
  * @constant
38464
38469
  * @type {string}
38465
38470
  */
38466
- module.exports = "1.6.2";
38471
+ module.exports = "1.6.3";
38467
38472
 
38468
38473
  /***/ }),
38469
38474
 
@@ -38616,7 +38621,7 @@ var vtkjs_pointFeature = function vtkjs_pointFeature(arg) {
38616
38621
 
38617
38622
  this._init = function () {
38618
38623
  s_init.call(m_this, arg);
38619
- m_this.renderer().contextRenderer().setLayer(1);
38624
+ m_this.renderer().contextRenderer().setLayer(0);
38620
38625
 
38621
38626
  m_this._createPipeline();
38622
38627
  };