BrianBunker / cmv-widgets

Widgets based on the Esri jsapi, configured for the Configurable Map Viewer. Widgets include Drag and Drop, Goto, Map Navigation Hash, and Nearby.
https://brianbunker.github.com/cmv-widgets
MIT License
18 stars 24 forks source link

How to setup in the Nearby function just 2 OR 3 layers in the dropdown menu? #19

Closed GilbertLasnier closed 9 years ago

GilbertLasnier commented 9 years ago

I have almost 100 layers in the scroll box , where is the place to define the layers to make the Find Nearby function? That will be the best for the user... Many thanks for your answer

BrianBunker commented 9 years ago

Hi GilbertLasnier, you'll want to modify this function in order to limit which layers are displayed in the drop-down (scroll box): https://github.com/BrianBunker/cmv-widgets/blob/master/Nearby/Nearby.js#L115-L136

GilbertLasnier commented 9 years ago

Merci I TRY…

From: Brian Bunker [mailto:notifications@github.com] Sent: 21-Sep-15 2:00 PM To: BrianBunker/cmv-widgets Cc: Lasnier, Gilbert Subject: Re: [cmv-widgets] How to setup in the Nearby function just 2 OR 3 layers in the dropdown menu? (#19)

Hi GilbertLasnier, you'll want to modify this function in order to limit which layers are displayed in the drop-down (scroll box): https://github.com/BrianBunker/cmv-widgets/blob/master/Nearby/Nearby.js#L115-L136

— Reply to this email directly or view it on GitHubhttps://github.com/BrianBunker/cmv-widgets/issues/19#issuecomment-142061813.