简体   繁体   English

有什么办法可以避免在AGSMapView中显示灰色方块

[英]Is there any way to avoid showing gray tiles in AGSMapView

Added a topograpic layer on a AGISMapView, 在AGISMapView上添加了一个地形层,

let layerUrl = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
let url = NSURL(string: layerUrl)!
let mapWithURL = AGSTiledMapServiceLayer.tiledMapServiceLayerWithURL(url) as! AGSTiledMapServiceLayer
self.agsMapView.insertMapLayer(mapWithURL, withName: "AGSMapLayer", atIndex: 0)

Issue is whenever we move map to different place it shows Grey tiles, is there any way to avoid this, its ok if it shows tiles in low resolution, but gray tiles not look good. 问题是,每当我们将地图移动到显示灰色图块的其他位置时,有什么方法可以避免这种情况,如果以低分辨率显示图块,则可以,但是灰色图块看起来不太好。

Let me know if is there any way to avoid this, thanks in advance. 请提前告知我是否有任何避免方法。

Please check following image for more details. 请检查以下图片以获取更多详细信息。

在此处输入图片说明

The "gray tiles" you're mentioning are the background color (gray) and grid (lines). 您提到的“灰色图块”是背景色(灰色)和网格(线)。

You should look into AGSMapView's properties : backgroundColor, gridLineColor, gridLineWidth, gridSize. 您应该查看AGSMapView的属性:backgroundColor,gridLineColor,gridLineWidth,gridSize。 For example, setting the gridLineWidth to 0 and the backgroundColor to whiteColor will produce a fully white background. 例如,将gridLineWidth设置为0并将backgroundColor设置为whiteColor将产生完全白色的背景。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM