Satellite basemap attribution block too large

7 Ansichten (letzte 30 Tage)
Yevgeniy Gorbachev
Yevgeniy Gorbachev am 21 Jan. 2025
Kommentiert: Chris Schierer am 27 Okt. 2025 um 17:47
I am trying to use readBasemapImage to read satellite imagery. However, the image I get has an enormous attribution block, most of which appears to be empty space instead of attribution. Is there a way to read the basemap so that block is an appropriate size, without increasing the zoom level (for better performance panning around the image)? For some reason, if I use "Run with R2024a" in the question editor, it works fine, but doesn't on my personal computer or laptop (image attached)?
[img, rast, attrib] = readBasemapImage("satellite", [38.7 39.1], [-77.5 -76.9], 14);
mapshow(img, rast);

Antworten (1)

Kojiro Saito
Kojiro Saito am 24 Jan. 2025
Verschoben: Kojiro Saito am 24 Jan. 2025
I couldn't reproduce the same issue in both R2024b Desktop anda MATLAB Online.
[img, rast, attrib] = readBasemapImage("satellite", [38.7 39.1], [-77.5 -76.9], 14);
mapshow(img, rast);
You issue might be a network issue for downloading and showing the satellite image.
Also, the document (https://www.mathworks.com/help/map/ref/readbasemapimage.html) says "The readBasemapImage function embeds the attribution in the lower-right corner of the image.", so the attribution is embedded in an image.
In this document, there is workaround to use attribution data in subtitle so that attribution supports multiple zoom levels.
  2 Kommentare
Yevgeniy Gorbachev
Yevgeniy Gorbachev am 9 Mär. 2025
Bearbeitet: Yevgeniy Gorbachev am 9 Mär. 2025
I think I figured it out! I like having lots of nonstandard defaults in my startup.m, one of which are turning all the grids on using "defaultAxes<>Grid". Resetting all of those to factory settings appears to solve the problem.
I still feel like the presence of the grid should not change the size of the attribution block... I will file a bug report to this effect, unless there is a specific other explanation.
Chris Schierer
Chris Schierer am 27 Okt. 2025 um 17:47
I confirm the same behavior on R2023b. The defaultAxes<>Grid settings change the behavior of readBasemapImage.
This seems like undesirable behavior at best, and probably a bug.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Reference Applications finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by