You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
2 weeks ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{411:function(e,t,a){"use strict";a.r(t);for(var n=a(3),o=a(9),i=a(5),s=a(2),r=a(84),c=a(148),l=a(4),d=a(1),m=Object(l.j)("EPSG:3857"),u=Object(d.F)(m.getExtent())/256,p=[],w=[],g=0;g<=14;g++)p[g]=g,w[g]=u/Math.pow(2,g);var h=new c.b({origin:Object(d.D)(m.getExtent()),resolutions:w,matrixIds:p}),b=new r.a({url:"https://ts2.scalgo.com/olpatch/wmts?token=CC5BF28A7D96B320C7DFBFD1236B5BEB",layer:"SRTM_4_1:SRTM_4_1_flooded_sealevels",format:"image/png",matrixSet:"EPSG:3857",attributions:['<a href="https://scalgo.com" target="_blank">SCALGO</a>','<a href="https://cgiarcsi.community/data/srtm-90m-digital-elevation-database-v4-1" target="_blank">CGIAR-CSI SRTM</a>'],tileGrid:h,style:"default",dimensions:{threshold:100}}),f=(new n.a({target:"map",view:new s.a({projection:m,center:[-9871995,3566245],zoom:6}),layers:[new i.a({source:new o.b}),new i.a({opacity:.5,source:b})]}),function(e,t){e.updateDimensions({threshold:t}),document.getElementById("theinfo").innerHTML=t+" meters"});f(b,10),document.getElementById("slider").addEventListener("input",(function(){f(b,this.value)}))}},[[411,0]]]);
|
||
|
//# sourceMappingURL=wmts-dimensions.js.map
|