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
We should probably add some event/mechanism for RPC-developers to know when the map has been started as published. Currently map layers are added asynchronously (due to DescribeLayer calls etc) so they might not be on the map when the RPC-client connects to the map. One way of detecting this is polling the getAllLayers() RPC-function and comparing it to some predefined expected value, but it's not a very clean way of doing this.
Options might be something like adding a new event OR not connecting the RPC before the map is fully loaded (might be better to do this).
The text was updated successfully, but these errors were encountered:
We should probably add some event/mechanism for RPC-developers to know when the map has been started as published. Currently map layers are added asynchronously (due to DescribeLayer calls etc) so they might not be on the map when the RPC-client connects to the map. One way of detecting this is polling the getAllLayers() RPC-function and comparing it to some predefined expected value, but it's not a very clean way of doing this.
Options might be something like adding a new event OR not connecting the RPC before the map is fully loaded (might be better to do this).
The text was updated successfully, but these errors were encountered: