Could you please share the code snippet or the size of the container that you are currently using for the map element? This issue might be caused by a smaller container size. Azure Maps control is powered by Maplibre GL JS, which has a native mechanism to fetch fewer map tiles when it detects smaller containers.
Here is a possible solution you could try:
Please refer to the sample code below. By using the CSS transform function, we can scale the map canvas to a larger size. This will allow the map control to request more map tiles. We recommend setting the scale to 0.5, but it can be fine-tuned based on your specific scenario.
For example, if the original map container is set to a height of 300px and a width of 400px, you can expand the container size to twice the original size (height: 600px and width: 800px) and set the scale function to 0.5.
Note: you might need to adjust other html related components on top of map if any since it is CSS adjustment.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Azure Maps Web SDK Samples</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
<style>
#map {
height: 600px;
width: 800px;
transform: scale(0.5);
transform-origin: left top;
}
</style>
<script>
var map;
function GetMap() {
map = new atlas.Map("map", {
authOptions: {
authType: "subscriptionKey",
subscriptionKey: ""
}
});
map.controls.add(
[
new atlas.control.ZoomControl(),
new atlas.control.PitchControl(),
new atlas.control.CompassControl(),
new atlas.control.StyleControl({
mapStyles: "all"
})
],
{ position: "top-right" }
);
}
</script>
</head>
<body onload="GetMap()">
<div id="map"></div>
</body>
</html>