Closed Matt914 closed 3 years ago
@Matt914 first some comments:
localhost
, nobody else will be able to test. So only code inspection is possible.Related to your problem, WFSLayer
is loaded asynchronously. So it is not there when you create the tree. You could:
a) wait somehow until you have it to create the tree.
b) embed it in a different layer (maybe a layerGroup
), and insert this container in the tree. When your json is loaded, insert it in the container. I am not sure if this will work.
Hi, I edited my first post and added everything I've done so far. I edited with a non-async WFS request and was able to load the layer and defined my layers. What can I do to perform two or more ajax calls? If I understand correctly the problem is with the Callback request because it was already used with the first WFS. I hope everything is a bit more readable now.
` <!doctype html>