Public
Edited
Jan 5, 2024
Insert cell
Insert cell
viewof map = {
const target = html`<div style="height: 600px;">`;
yield target; // Give the container dimensions.
const map = target.value = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
source: new ol.source.XYZ({
url: imageRGB.getMap().urlFormat,
interpolate: false
})
})
],
target,
view: new ol.View({
center: ol.proj.fromLonLat([-110.8393226, 31.8093733]),
zoom: 22
})
});
invalidation.then(() => map.dispose());

return map;
}
Insert cell
imageRGB = {
var image = ee.Image("users/gponce/usda_ars/assets/images/aes/srer/suas/2019/full_ortho_srer_may_2019_1cm")
return image.visualize({ min: 20, max: 250 })
}
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more