Sunday, 2 October 2016

javascript - Mapbox GL checkbox menu


I am trying to toggle layers and legends using a checkbox menu. I'm able to toggle the bathroom and sq ft legends, but I'm not sure how to identify the layer layout in order to toggle it.


Here is my code:






// add mapbox links and style the map

Laughlin Housing Variance














Colors By Sq Ft Variance


Yardi lower: 644 - 858

Yardi lower: 431 - 644

Yardi lower: 50 - 431

Yardi equals Plan (+ or - 50)

Yardi higher by > 50









No comments:

Post a Comment