AnsweredAssumed Answered

[4.10] How to reliably to determine that KMLLayer is loaded with features?

Question asked by falco152 on Mar 25, 2019
Latest reply on Mar 25, 2019 by falco152

I tried using the "layerview-create"  to parse for visible points?

I couldn't see them unless I put some long delay.

 

let layer = new KMLLayer({ url: "http://quickmap.dot.ca.gov/data/lcs.kml" }); layer.on("layerview-create", event => {

  let layerView = event.layerView;

  layerView.when(()=>{

    let allVisiblePoints = layerview.allVisiblePoints;

    debugger;

  });

})

Outcomes