Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The image below can be obtained by adding WorldTimeZone layers to the JSAPI map:

wmtsLayer = new esri.layers.WMTSLayer("http://servicesbeta4.esri.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS", options);
tiledLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://servicesbeta4.esri.com/arcgis/rest/services/WorldTimeZones/MapServer", { opacity: 0.5});

I believe this issue is that the WMTS scale values are based on 0.28mm/pixel instead of 96 DPI.

EsriWmtsAlignmentIssue.png

Is there a way to make these two layers align correctly?

Because a proxy is required I cannot provide working source but I did paste my code here.

share|improve this question
    
I've updated the fiddle (jsfiddle.net/F2p76/3) to use sampleserver6 and the tileMatrixSet to "GoogleMapsCompatible" and got proper alignment. I guess the issue I keep running into is differences in resolution/scale. In this case you cannot mix tiles with differing DPI. –  ca0v Aug 1 '12 at 20:17
add comment

2 Answers

up vote 3 down vote accepted

I agree on that the two different layers can't be published on the same map. As they have two different device resolution assumptions(wmts one is based on 0.28mm/pixel while esri one is based on 96dpi), the map scale which is based on these assumptions can't be unified. But if you put them on the same map, they will show misalignment.

share|improve this answer
add comment

By using the GoogleMapsCompatible tileMatrixSet the LODS calculated as expected (DPI=96) and I got the two layers to align with each other.

GoogleMapsCompatible

new esri.layers.WMTSLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS", {
                        serviceMode: "RESTful",
                        layerInfo: new esri.layers.WMTSLayerInfo({
                            format: "png",
                            identifier: "WorldTimeZones",
                            tileMatrixSet: "GoogleMapsCompatible"
                        })
                    });
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.