//

767
4
Jump to solution
07-05-2017 09:20 AM
_____
by
New Member
 
0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

you would need to create a function that loops through the baseLayers and referenceLayers of your basemap, and set visibility of all of those baseLayers and referenceLayers to false.

View solution in original post

4 Replies
LucasDanzinger
Esri Frequent Contributor

A Basemap object is basically a collection of baseLayers and referenceLayers, so if you wanted to turn off the "Basemap", you would need to iterate through the collections and set the visibility to false - Basemap QML Type | ArcGIS for Developers 

_____
by
New Member

//

0 Kudos
LucasDanzinger
Esri Frequent Contributor

you would need to create a function that loops through the baseLayers and referenceLayers of your basemap, and set visibility of all of those baseLayers and referenceLayers to false.

MarcWouters
New Contributor III

With your hint, I managed hide the basemap by simply clearing the baselayers and referencelayers : 

_map->basemap()->baseLayers()->clear();
_map->basemap()->referenceLayers()->clear();

But there is still a gray raster visible, is there a way to get rid of this as well ?

Also when I select a SoilSurveyMap (Specialty/Soil_Survey_Map (MapServer) ), the raster is seen where otherwise water is shown. This is a bit annoying

0 Kudos