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
1007 B
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{311:function(e,n,o){"use strict";o.r(n);var t=o(3),a=o(62),i=o(5),r=o(2),s=o(4);function c(e){return Object(s.t)(e,"EPSG:4326","EPSG:3857")}var w={India:c([68.17665,7.96553,97.40256,35.49401]),Argentina:c([-73.41544,-55.25,-53.62835,-21.83231]),Nigeria:c([2.6917,4.24059,14.57718,13.86592]),Sweden:c([11.02737,55.36174,23.90338,69.10625])},p="pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q",u=new i.a({source:new a.a({url:"https://api.tiles.mapbox.com/v4/mapbox.world-light.json?secure&access_token="+p,crossOrigin:"anonymous"})}),m=new i.a({extent:w.India,source:new a.a({url:"https://api.tiles.mapbox.com/v4/mapbox.world-black.json?secure&access_token="+p,crossOrigin:"anonymous"})});new t.a({layers:[u,m],target:"map",view:new r.a({center:[0,0],zoom:1})});for(var b in w)document.getElementById(b).onclick=function(e){m.setExtent(w[e.target.id])}}},[[311,0]]]);
//# sourceMappingURL=layer-extent.js.map