I have loaded my geojson into Mapbox Studio sources and then uploaded it to Mapbox. Now I see my upload under my Data tab on mapbox.com.
How do I overlay that Data on my map using the Mapbox Javascript library.
These are the two versions I have tried ....
L.mapbox.accessToken = '';var map = L.mapbox.map('map', 'mapbox.streets').setView([35.2269, -80.8433], 12); var featureLayer = L.mapbox.featureLayer('mycrazydog.hz88h0k9').setZIndex(100).addTo(map); AND
L.mapbox.accessToken = '';var map = L.mapbox.map('map', 'mapbox.streets').setView([35.2269, -80.8433], 12); var featureLayer = L.mapbox.featureLayer('mycrazydog.a4r96bt9').setZIndex(100).addTo(map); I have also tried to import the geojson directly into a mapbox.com Project, but it has too many features and crashes.
Any guidance is appreciated.
أكثر...
How do I overlay that Data on my map using the Mapbox Javascript library.
These are the two versions I have tried ....
L.mapbox.accessToken = '';var map = L.mapbox.map('map', 'mapbox.streets').setView([35.2269, -80.8433], 12); var featureLayer = L.mapbox.featureLayer('mycrazydog.hz88h0k9').setZIndex(100).addTo(map); AND
L.mapbox.accessToken = '';var map = L.mapbox.map('map', 'mapbox.streets').setView([35.2269, -80.8433], 12); var featureLayer = L.mapbox.featureLayer('mycrazydog.a4r96bt9').setZIndex(100).addTo(map); I have also tried to import the geojson directly into a mapbox.com Project, but it has too many features and crashes.
Any guidance is appreciated.
أكثر...