Google Earth Engine – How to Combine Two Image Overlays into One Image

google-earth-engineimage

I have two images of different sizes. I can make them overlay each other using Map.addLayer() for each. But I want to combine them into one image as shown in illustration below. How to achieve this?

enter image description here

Best Answer

Never mind my impatience,

It was easy. I just convert them to image collection and then create mosaic of it!

var combined_img = ee.ImageCollection([img_1, img_2]).mosaic();
Related Question