AnsweredAssumed Answered

Setting up sublayers removes all

Question asked by _lars_ on Oct 13, 2017
Latest reply on Oct 13, 2017 by _lars_

I'm trying to filter the sublayers from the server. Creating and adding a MapImageLayer witha url does the job, but I then get all the layers on my map. I dont want that.


I've logged in to the server and checked, and got layers 0-22. I only want 9, 10 and 13 so I tried

var mapImageLayer = new MapImageLayer({ url: "...", sublayers: [ { id: 9, visible: true, }, { id: 10, visible: true, }, { id: 13, visible: true, } ] });

But with this setup NO layers are shown. Any ideas on what went sideways here?