AnsweredAssumed Answered

card style legend widget?

Question asked by jpilbeam on Oct 1, 2018
Latest reply on Oct 5, 2018 by jpilbeam

I need help implementing this.This app I'm creating is supposed to be mobile-friendly which is why I'm seeking the card style.

 

Legend widget card style | ArcGIS API for JavaScript 4.9 

I've been referencing this sample code, but I'm not too sure how to tweak it so that it works in my script.

 

Here's how that portion of my script looks now:

                var legend = new Legend({
                    view: view
                });
                view.ui.add(legend, "top-left"),
                    //functions
                    map.addMany([canal, preserves, rt66, boundary, attractions, featureLayer]);
            });

 

Here's a link to my whole script.

Outcomes