AnsweredAssumed Answered

Resampling option in WMTS Layer

Question asked by paupepui on Apr 13, 2018

I'm using API version 3.22, and I have LODs defined up to level 20 on the map:

 

var lods = [{"level":"4","resolution":9783.93962050256,"scale":3.6978669431820706E7},
                            {"level":"5","resolution":4891.96981025128,"scale":1.8489334715910353E7},
                            {"level":"6","resolution":2445.98490512564,"scale":9244667.357955176},
                            {"level":"7","resolution":1222.99245256282,"scale":4622333.678977588},
                            {"level":"8","resolution":611.49622628141,"scale":2311166.839488794},
                            {"level":"9","resolution":305.74811314070485,"scale":1155583.4197443961},
                            {"level":"10","resolution":152.8740565703525,"scale":577791.7098721985},
                            {"level":"11","resolution":76.43702828517624,"scale":288895.8549360992},
                            {"level":"12","resolution":38.21851414258813,"scale":144447.92746804963},
                            {"level":"13","resolution":19.10925707129406,"scale":72223.9637340248},
                            {"level":"14","resolution":9.554628535647032,"scale":36111.98186701241},
                            {"level":"15","resolution":4.777314267823516,"scale":18055.990933506204},
                            {"level":"16","resolution":2.388657133911758,"scale":9027.995466753102},
                            {"level":"17","resolution":1.194328566955879,"scale":4513.997733376551},
                            {"level":"18","resolution":0.5971642834779395,"scale":2256.9988666882755},
                            {"level":"19","resolution":0.2985821417,"scale":1128.4994331969},
                            {"level":"20","resolution":0.14929107085,"scale":564.24971659845}];

 

I have layers in the HTML viewer that reach level 20, but there are others that go up to 19, and I would like to avoid caching these layers to this last level. I have tried adding the resampling = true option when I add the layer, but nothing is displayed at level 20:

 

var options = {
            id: servicioId + ";",
            serviceMode: "KVP",
            resampling: true,
            //maxScale: 400,
            /*resourceInfo: resourceInfo,
            layerInfo: layerInfo,*/
            visible: true
};
        var capaAnadida = new WMTSLayer(urlWMTS, options);


I am doing something wrong? Is there any other option?

 

Thanks!!

Outcomes