LayerListWidget on mobile

2179
0
06-01-2016 09:04 AM
MarcoRosa
New Contributor

Hello all,

im looking to editing mobile sample at the following address.

Attribute editing - mobile | ArcGIS API for JavaScript

Tried to custom that, adding LayerList legend , on new page opening after a button press.

Code for legend widget page is:

<data-role="page" id="ui-control-layer-dialog">

<div data-role="header">

<h2>Legend</h2>

</div>

<div class="ui-content">

<div id="control-layer-div" class="legend-container"></div>

<a href="#ui-map-page" data-role="button" class="ui-btn">Close</a>

</div>

</div>

.... and code for layer list is ...after adding feature layer

appGlobals.map.addLayers([appGlobals.citizenRequestLayer]);

var llWidget = new LayerList({

true,

true,

"feature layer citizen",

true

"control-layer-div");

llWidget.startup();

it works, but after opening page i can see two check boxes overlapped ... the top most doesnt work (if cheeck or uncheck nothing change) and the oter check box work but is under first and i cant work on that.

Any suggestion for that ?

Thanks in advance

GP

0 Kudos
0 Replies