// // 'fill-outline-color': 'white',
// // 'fill-outline-color': 'rgba(0,0,0,0)',
// }
// });
// map.addLayer({
// id: layerId_pop,
// source: sourceId,
// type: 'fill',
// interactive: false,
// paint: {
// // 'fill-outline-color': 'white',
// // 'fill-outline-color': 'rgba(0,0,0,0)',
// }
// });
// // map.addLayer({
// // 'id': layerId_imp,
// // 'type': 'fill',
// // 'source': sourceId,
// // // "source-layer": layerId_imp,
// // 'paint': {
// // // 'fill-pattern': "curve-09",
// // "fill-pattern": ["step",["get","IMP"],"yellow-1",0.3,"yellow-2",0.4,"yellow-3", 0.5, "yellow-4", 0.6, "yellow-5", 0.7, "yellow-6"],
// // "fill-opacity": .8,
// // }
// // }, layerId_imp);
// // map.addLayer({
// // "id": layerId_pop,
// // "type": "fill",
// // "source": sourceId,
// // // "source-layer": layerId_imp,
// // "paint": {
// // "fill-pattern": ["step",["get","pop_den"],"magenta-1",10,"magenta-2",100,"magenta-3", 500, "magenta-4", 2000, "magenta-5", 10000, "magenta-6"],
// // "fill-opacity": .4
// // }}, layerId_imp); // Place polygon under these labels.
// // source = map.getSource(sourceId);
// // }
// // Update the geojson data
// source.setData(data);
// // Update the layer paint properties, using the current config values
// // map.setPaintProperty(layerId_imp, 'fill-color', {
// // property: 'IMP',
// // stops: [
// // [0.3, config.colorScaleImp[1]],
// // [0.4, config.colorScaleImp[2]],
// // [0.5, config.colorScaleImp[3]],
// // [0.6, config.colorScaleImp[4]],
// // [0.7, config.colorScaleImp[5]],
// // [0.8, config.colorScaleImp[6]],
// // [0.9, config.colorScaleImp[6]],
// // [1, config.colorScaleImp[6]],
// // ]
// // });
// // map.setPaintProperty(layerId_pop, 'fill-color', {
// // property: 'pop_den',
// // stops: [
// // [10, config.colorScalePop[1]],
// // [100, config.colorScalePop[2]],
// // [200, config.colorScalePop[3]],
// // [500, config.colorScalePop[4]],
// // [2000, config.colorScalePop[5]],
// // [10000, config.colorScalePop[6]],
// // [20000, config.colorScalePop[6]],
// // [100000, config.colorScalePop[6]],
// // ]
// // });
// // // tooltip
// // map.on('click', layerId, (e) => {
// // new mapboxgl.Popup()
// // .setLngLat(e.lngLat)
// // .setHTML("Accessibility: " + (e.features[0].properties.value).toFixed(2))
// // .addTo(map);
// // });
// // // Change the cursor to a pointer when
// // // the mouse is over the states layer.
// // map.on('mouseenter', layerId, () => {
// // map.getCanvas().style.cursor = 'pointer';
// // });
// // // Change the cursor back to a pointer
// // // when it leaves the states layer.
// // map.on('mouseleave', layerId, () => {
// // map.getCanvas().style.cursor = '';
// // });
// // map.setPaintProperty(layerId_imp, 'fill-opacity', config.fillOpacity);
// // map.setPaintProperty(layerId_pop, 'fill-opacity', config.fillOpacity);
// }