Based on this modified sandcastle, it does not seem possible to remove a dataSource
from the viewer (in my case and in the case of the example it is a GeoJsonDataSource
).
According to the API, the function remove(dataSource)
is responsible for this, but no action is executed. This can easily be reproduced by clicking on the button “Remove” in the above mentioned sandcastle.
Is this an error or do i miss something?
Ignore this; when the dataSources
are queried by the name, an array is returned from which the respective dataSource
must be extracted.
1 Like