This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

hide

Make geoplayer figure invisible

Syntax

hide(player)

Description

example

hide(player) hides the geoplayer figure. To redisplay this figure, use show(player).

Examples

collapse all

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

collapse all

Streaming geographic player, specified as a geoplayer object.

See Also

| |

Introduced in R2018a