diff --git a/tasks/enduro-trails/prototype/static/app.js b/tasks/enduro-trails/prototype/static/app.js index 4e08f41..31372d3 100644 --- a/tasks/enduro-trails/prototype/static/app.js +++ b/tasks/enduro-trails/prototype/static/app.js @@ -460,7 +460,7 @@ function addWaypointMode() { function createWaypointMarkerEl(index, total) { const el = document.createElement('div'); el.className = 'route-waypoint-marker marker-anim'; - el.style.cssText = 'cursor: grab; width: 28px; height: 36px; position: relative;'; + el.style.cssText = 'cursor: grab; width: 28px; height: 36px;'; let bg, label; if (index === 0) { @@ -485,7 +485,7 @@ function rebuildWaypointMarkers() { const map = window._map; routeWaypoints.forEach((wp, i) => { const el = createWaypointMarkerEl(i, routeWaypoints.length); - const marker = new maplibregl.Marker({ element: el, anchor: 'center', draggable: true }) + const marker = new maplibregl.Marker({ element: el, anchor: 'bottom', draggable: true }) .setLngLat([wp.lon, wp.lat]) .addTo(map); (function(idx) {