You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to add the layer to the layer control, but not a layer group.
here is a snippet of what I am trying to do:
varlayerControl=L.control.orderlayers();vartileLayer=L.tileLayer(TILESTREAM_URL+selectedLayer+'/{z}/{x}/{y}.png',{wax: TILESTREAM_URL+selectedLayer+'.json'});varutfGridLoss=newL.UtfGrid(TILESTREAM_URL+selectedLayer+'/{z}/{x}/{y}.grid.json?callback={cb}',{Default: false,JsonP: false});varutfGrid=L.layerGroup([utfGridLoss,tileLayer]);map.addLayer(utfGrid);layerControl.addOverlay(utfGrid,selectedLayer);// does not worklayerControl.addOverlay(tileLayer,selectedLayer);// works
The text was updated successfully, but these errors were encountered:
I am able to add the layer to the layer control, but not a layer group.
here is a snippet of what I am trying to do:
The text was updated successfully, but these errors were encountered: