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

1 Answer 1


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();
  • 1
    Well done on answering your question! A good answer should not only include what, but also how you go about solving the problem. Please edit your answer to also include the steps required to perform your solution.
    – Midavalo
    Aug 18, 2020 at 0:33
  • Okay, I did edit it now
    – Waleed93
    Aug 18, 2020 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.