Geographic Information Systems Asked by user15966041 on June 14, 2021
I have been following https://docs.mapbox.com/mapbox-gl-js/example/filter-markers/ this example to filter markers when clicked on the names. Map box uses the layer ID for filtration. It works perfectly for me, but is there a way I can link them to my table check boxes. For example, is there a way to toggle their checkbox when my checkbox is checked.
<tbody class="data">
<tr >
<td> <input type="checkbox" id="marker1" class="marker1"> </td>// toggle the first check box in mapbox
<td> <input type="checkbox" id="marker2" class="marker2"> </td>// toggle the second check box in mapbox
</tr>
</tbody>
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP