I am using the Oceans basemap ("layer0")with Java API 3.14 and I can toggle the oceans basemap with "setVisibility()". However, when I toggle off the Oceans basemap, the ocean depths are still visible. How do I find and toggle the annotation layer?
There are several basemaps that contain an additional annotation layer (oceans, hybrid, gray, dark-gray, and terrain). The annotation layer will always be "layer1".
If you're working with the Basemap Gallery, there is a bug (BUG-000089550) where if you instantiate the map with one of these basemaps, the annotation will remain when switching to another basemap. See this post for a work around.
Retrieving data ...