Conversation
|
@ilyankou, by any chance have you a way to add subtitles to layercontrol. Layer control groups plug in has a shortcoming that means my application of that plug in won't work (ismyrnow/leaflet-groupedlayercontrol#57 (comment)). Any thoughts would be much appreciated! |
|
@corrigancd Do you have a repo I can use as an example? |
|
@ilyankou, it's line 227 and 233 in the file below. Im wondering how to add a subtitle to go before any poilayer is added? The addpoilayer method is called from viscontroller.js. https://github.com/nreese/enhanced_tilemap/blob/master/public/vislib/_map.js |
|
@corrigancd I would use jQuery to
This is definitely not elegant but would work. Another approach would be to go to Leaflet source code and modify add/remove layer functions to also add the subtitle along with the checkbox + label. |
|
@ilyankou,thanks for the tips. I may end up adding layer controlgroup min file to my repo and making the 1 line fix there. Thanks for the super fast responses though 👍 |
Fix issues #154 #155 #156 #157