yekimov

How to stop user seeing gray grid?

Discussion created by yekimov on Dec 18, 2017
Latest reply on Jan 12, 2018 by MDostal-esristaff

Attaching a screenshot of map being zoomed out to min level so the whole world map is visible. Also a gray grid is visible. I want to stop user seeing the gray grid similar how google maps handles it. However can't see any easy way. If I set explicitly AGSMap.minScale, then I have to check every device to choose appropriate scale and still user can pan to north/south and see the gray grid. 

I read that in 10.2 AGSMapView.maxEnvelope was helping with this by allowing to provide xmax ymax xmin ymin but there is no replacement in 100.0. What is about 100.1? Is there any workaround except listening to pan/zoom KVO and when user goes out of bounds scale him back? This sounds like a bad UX pattern.

 

Outcomes