question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Can I merge two layers into one layer?

See original GitHub issue

Let me explain with an example. I have two image layer. Like this.

var layerA = new ImageLayer({
  // ...
});
    
var layerB = new ImageLayer({
  // ...
});

And I want to merge this layers.

var layerC = layerA + layerB // like this, not real.

Can I get merged layer like layerC?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KRMKGOLDcommented, Jan 28, 2020

Raster source is not the way I want it. I want to combine two layers into one. I want to combine two layers to create one layer object. no LayerGroup…

0reactions
ThomasG77commented, Jan 23, 2020

From my understanding, you should use raster source e.g https://openlayers.org/en/latest/examples/raster.html (demo broken due to Bing Maps API limit on official site but fork into Codesandbox and change to use your API)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make Two Layers Into Just One Layer? - How Do I ... - O'Reilly
Go to the Layers panel and click on the first layer you want to combine, then press-and-hold the Command (PC: Ctrl) key and...
Read more >
Manage layers and groups in Photoshop - Adobe Support
Merge linked: To merge linked layers together, select the linked layers by choosing Layer > Select Linked Layers, or choosing Select Linked ...
Read more >
How Do I Merge Two Layers in Photoshop? - website builder
As a general rule, you can merge layers in Photoshop without losing effects by flattening the image. Flattening combines all visible layers into ......
Read more >
Can I merge multiple "overlay" layers into one with the same ...
You can always combine multiple layers and apply the same blending mode, but for many blending modes it won't look the same as...
Read more >
How To MERGE Layers In Photoshop [Quick Fixes] - YouTube
Need to merge multiple layers into one ? In this video, we delve into how you can rasterize your layers to achieve this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found