geoplot and geobasemap displays "missing" tile inexplicably
52 views (last 30 days)
Show older comments
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 Comments
Answers (3)
Kelly Luetkemeyer
on 13 Dec 2022
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
on 14 Dec 2022
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
on 7 Nov 2024 at 15:37
The solution of silence the warming is not a real solution.
1 Comment
LucasBar
on 7 Nov 2024 at 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
See Also
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!