jordanharding

Untitled

Jan 20th, 2021
708
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $.getJSON("getmapid.php?start_date=2020-12-01&end_date=2020-12-31").then(function (data) {
  2.  
  3.  
  4.         eeRaster = new L.tileLayer('https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps/' + data + '/tiles/{z}/{x}/{y}', {
  5.             maxZoom: 15,
  6.             attribution: '<a href="https://earthengine.google.com/" target="_BLANK">EarthEngine</a>',
  7.             mapid: data,
  8.         }).addTo(map);
  9.  
  10.         $('#rasterLoadingSpinner').fadeOut();
  11.     });
RAW Paste Data