You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapinit callback is out of sync if we have geoCore layer type in the configuration. When this is the case, the mapinit callback is triggered but the array of layers is empty so this can be problematic for developers who are using event in the callback.
Expected Behavior
With geoCore layer, there is two async call one to get info and build the geoviewLAyer ans the other one to build the layer itself. We need to make sure we await on the geoCore call so the map init is not triggered before.
Is there an existing issue for this?
Current Behavior
The mapinit callback is out of sync if we have geoCore layer type in the configuration. When this is the case, the mapinit callback is triggered but the array of layers is empty so this can be problematic for developers who are using event in the callback.
Expected Behavior
With geoCore layer, there is two async call one to get info and build the geoviewLAyer ans the other one to build the layer itself. We need to make sure we await on the geoCore call so the map init is not triggered before.
Steps To Reproduce
cgpv.api.maps['Map1'].layer.getGeoviewLayers()
will be emptycgpv.api.maps['Map1'].layer.getGeoviewLayers()
is not empty anymoreAnything else?
No response
The text was updated successfully, but these errors were encountered: