Added a topograpic layer on a 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. For example, setting the gridLineWidth to 0 and the backgroundColor to whiteColor will produce a fully white background.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.