setVisible "oceans" basemap leaves annotation

2779
1
08-26-2015 01:54 PM
JohnLinehan
New Contributor

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?

0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

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.

0 Kudos