I am creating a zip level choropleth map with two layers.
Layer 1 is a scattermapbox layer which plots the location of the stores on the map.
Layer 2 is a choropleth layer which uses a custom geojson and plots the zip level choropleths.
The geojson is created when I fetch data from the database as it is based on the distance from the store. What I mean is the geojson only has zips that are at a certain distance from the stores from layer one.
I am trying to create a dropdown that can zoom at those stores based on the “geojson[features][properties][name]” key.
Is there any way I can do this?