geoplot and geobasemap displays "missing" tile inexplicably
조회 수: 52 (최근 30일)
이전 댓글 표시
I had written a code that plots GPS points over satellite maps using geoplot and geobasemap. The code worked previously fantastically. However, I can no longer get my geoaxes to display ANY map tiles. I have made no changes to my machine, license, or internet connection.
Ex:
geoplot(35,-74,'Marker','*','MarkerSize',25); %Choose an arbitrary point to plot with an obnoxiously large marker for reference
will plot a point overlaying an plot full of "missing" tiles. My command window will repeat the following warning several times (shown once here to reduce spam). See the attached .png
Warning: A value of class "double" was indexed with no subscripts specified. Currently the result of this operation is the indexed value itself, but in a future release, it will
be an error.
> In matlab.internal.asynchttpsave/AsyncHTTPContentFileWriter/handleThreadIsFinishedEvent
In matlab.internal.asynchttpsave.AsyncHTTPContentFileWriter
In matlabshared.asyncio.internal/Channel/onPropertyChanged (line 491)
In matlabshared.asyncio.internal.Channel>@(source,data)obj.onPropertyChanged(data.Name,data.Value) (line 405)
Warning: Unable to access the Internet, showing "missing" tile where 'streets-light' is unavailable. See Access Basemaps in MATLAB.
I'm familiar with the "unable to access internet" warning, which I have verified is not the problem - the default basemap does not require internet connection. Is there an obvious fix to this problem, or is this a very in-depth troubleshooting situation?
댓글 수: 0
답변 (3개)
Kelly Luetkemeyer
2022년 12월 13일
Hi Chris,
Can you turn off either all warnings or this one 'MATLAB:subscripting:noSubscriptsSpecified' and see if the issue goes away?
>> warning off 'MATLAB:subscripting:noSubscriptsSpecified'
- or -
>> warning off all
Kelly Luetkemeyer
2022년 12월 14일
Hi Chris,
I was able to re-create the issue by setting
warning on all
and use the workaround by creating a new figure and setting
warning off all
I am on a mac running R2022b.
>> warning on all
>> geobasemap streets % pan/zoom until you can see tiles
Warning: A value of class "double" was indexed with no subscripts specified. Currently the result of this operation is the indexed value itself, but in a
future release, it will be an error.
(Type "warning off MATLAB:subscripting:noSubscriptsSpecified" to suppress this warning.)
>> warning off all
>> close all
>> geobasemap streets % pan/zoom to make sure you get new tiles - no warnings
The streets-light basemap (the default) does require Internet access and uses cached tiles if available. You can use darkwater if you do not have Internet access.
LucasBar
2024년 11월 7일 15:37
The solution of silence the warming is not a real solution.
댓글 수: 1
LucasBar
2024년 11월 7일 15:56
however, the link https://www.mathworks.com/help/matlab/creating_plots/access-basemaps-in-matlab.html#responsive_offcanvas presents a good solution: Download Basemaps
참고 항목
카테고리
Help Center 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!