show
Make geoplayer
figure visible
Syntax
Description
Examples
Hide and Show Geographic Player
Load a sequence of latitude and longitude coordinates.
data = load('geoRoute.mat');
Create a geographic player with a zoom level of 10. Configure the player to show its complete history of plotted points.
player = geoplayer(data.latitude(1),data.longitude(1),10,'HistoryDepth',Inf);
Display the first half of the geographic coordinates in a sequence. The circle marker indicates the current position.
halfLength = round(length(data.latitude)/2); for i = 1:halfLength plotPosition(player,data.latitude(i),data.longitude(i)); end
Hide the player and confirm that it is no longer visible.
hide(player) isOpen(player)
ans = logical
0
Add the remaining half of the geographic coordinates to the map.
for i = halfLength+1:length(data.latitude) plotPosition(player,data.latitude(i),data.longitude(i)); end
Show the player. The player now displays both halves of the route.
show(player)
Input Arguments
Version History
Introduced in R2018a
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)