I have a question regarding my map markers:
https://i.sstatic.net/2HndV.png
Currently, the center of the blue markers align with my desired coordinates. Is there a way to adjust the markers slightly upwards so that the tip sits exactly on my specified point, rather than being centered?
The code I am using for the markers is quite standard, similar to what can be found in the mapbox documentation. Here's an example:
await nodeList.map((node) => {
map.addSource(node.name, {
'type': 'geojson',
'data': {
'type': 'FeatureCollection',
'features': [{
'type': 'Feature',
'geometry': {
'type': 'Point',
'coordinates': [node.longitude, node.latitude]
},
'properties': {}
}]
}
});
map.addLayer({
'id': node.name,
'type': 'symbol',
'source': node.name,
'layout': {
'icon-image': 'custom-marker',
'text-offset': [0, 1.25],
'text-anchor': 'top'
}
});
});