I would like to programatically set a map to be empty in a mapframe (similar to choosing "<None>" option in a MapFrame). I tried to use mapFrame.SetMap(null) but ArcGIS Pro complains about a null reference object. How do I set the Map to be empty?
I would like to set the map empty in an existing map frame. And that doesn't seem possible.
When you create a Map frame, if you don't pass in the map, it creates an empty empty map frame.
<SPAN class="keyword token">var</SPAN> mf <SPAN class="operator token">=</SPAN> LayoutElementFactory<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">CreateMapFrame</SPAN><SPAN class="punctuation token">(</SPAN>layout<SPAN class="punctuation token">,</SPAN> mf_envelope<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.