FOAM API Example - Mapbox.GL custom marker
✓ Published0🌍 Public
WWill Carter
Last edited May 13, 2018
Created on Mar 22, 2018
This example displays a Mapbox GL map with custom markers representing FOAM beacon locations, fetched from the FOAM API using axios. The map loads geohash-encoded coordinates from the API, decodes them with the latlon-geohash library, and converts them into GeoJSON features. A custom marker image is added via `map.loadImage` and rendered as a symbol layer. The basemap style is selectable among Mapbox presets such as streets, light, or satellite, with an initial view centered on Europe.
AI-generated descriptionFOAM API Example - Mapbox.GL Custom Marker
mit Licensed