How do I remove a geoaxes map from GeoPanel
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
When I reset geographic boundaries and reload the map, it loads over the top of the previous one. I can get a handle to both the GeoPanel container and the geoaxis, but cannot figure out how to close the current map before loading a new one.
   gx = geoaxes('parent',app.GeoPanel);
   geoplot(gx,app.SensorsArea,'*',MarkerEdgeColor=[0.635 0.078 0.184]);
   geolimits(gx, app.EventIn.lat, app.EventIn.lon);
0 Kommentare
Antworten (1)
  檮杌
      
 am 5 Okt. 2023
        
      Bearbeitet: 檮杌
      
 am 5 Okt. 2023
  
      Would cla work for you? cla clears current axis and it should work for geoaxes too.
gx = geoaxes;
latSeattle = 47.62;
lonSeattle = -122.33;
latAnchorage = 61.20;
lonAnchorage = -149.9;
geoplot(gx,[latSeattle latAnchorage],[lonSeattle lonAnchorage],'g-*')
geobasemap(gx,'colorterrain')
cla % this clears previous results and sets back to default
2 Kommentare
  Dyuman Joshi
      
      
 am 6 Okt. 2023
				It might not work because you are working with an App.
Could you share the code you are working with?
Siehe auch
Kategorien
				Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




