auto-sync: 2026-05-05 18:30:01
This commit is contained in:
4
tasks/enduro-trails/prototype/static/app.js
vendored
4
tasks/enduro-trails/prototype/static/app.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user