The scale in ArcGIS IOS 10.0.1 SDK is inconsistent with the server.

Source: Internet
Author: User

A project has a slicing layer as the basemap, and a dynamic layer as the topic. Two layers are superimposed.

The ratio of the display condition to the slice of the dynamic layer is set accordingly. That is, when the slice layer is displayed below a certain proportion, the topic layer will hide and display some content that can be displayed at this proportion.

This function is completely normal when the rest service is accessed through a browser. However, it cannot be correctly displayed on the iPhone interface.

After querying the ArcGIS forum, we found that the iPhone DPI is 163, while the server's DPI for slicing is 96.

This will cause a problem where the scale does not match.

Solution:

Set

Agsdynamicmapservicelayer. DPI = 96.

The related explanations are as follows:

Http://forums.arcgis.com/threads/4247-Rendering-Labels-in-AGSDynamicMapServiceLayer? Highlight = 132% 2f96

The labels are bigger because agsdynamicmapservicelayer uses the phone's resolution (163 DPI) to export
Maps. Other APIs that run on computers (not phones) Use a smaller resolution-96 is standard for most computer screens. Hence the difference.

The difference stems from the fact that labels are defined in point sizes (ex: Arial 10pt, etc). The graphic gurus
Of the world have decided that 72 points = 1 inch. but what exactly is 1 inch on a screen? Well, that depends on the screen's DPI (DOTS-per-inch ). at 96 DPI, 1 inch = 96 dots. at 163 DPI, 1 inch = 163 dots. so if you defined your label as 72 PT Arial, it wowould
Take up 96 dots on a map exported at 96 DPI, But it wocould take up 163 dots on map of 163 DPI. 163 is bigger than 96 (obviously) and so the labels are bigger.

If you like, you can change the DPI Property
Of agsdynamicmapservicelayer to 96 and then the labels will have the familiar proportion you're expecting.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.