计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
openstreetmap-marker【效率与协作】Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc. Built on Leaflet + OpenStreetMap, no API key required. Trigger when the user mentions "annotate a map", "travel map", "itinerary map", "mark locations", "map display", "trip planning map", "Open…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generates a self-contained, browser-previewable custom marker map HTML page styled after Amap's mobile app (light minimal basemap + circular colored icon + text label + immersive full-screen layout with safe-area support).
apple-maps search --query "place name city" --lat <city lat> --lon <city lng> --limit 1 -q --compact, which returns JSON with lat/lon/coordinate_system.scripts/gcj_convert.py before writing to landmarks.json; the script automatically skips conversion for points outside China (out_of_china check).
python3 /var/minis/skills/openstreetmap-marker/scripts/gcj_convert.py <lng> <lat>
# outputs "wgs_lat,wgs_lng"
landmarks.json: an array where each item is:
{"name": "West Lake", "desc": "UNESCO World Heritage Site, Hangzhou's iconic landmark", "address": "Xihu District, Hangzhou", "lat": 30.2614, "lng": 120.1443, "type": "green", "icon": "fa-tree"}
name/lat/lng are required; desc/address/type/icon are optional.type determines the marker dot color: red (government/medical/core attraction), green (park/nature), blue (transport/building), purple (commercial/venue), brown (heritage/university), or orange (other). Defaults to blue. Each type also has a sensible default Font Awesome icon (red→fa-star, green→fa-tree, blue→fa-building, purple→fa-bag-shopping, brown→fa-landmark, orange→fa-circle-dot). Leave icon empty to use it.icon (optional): a Font Awesome 6 solid-style icon class name, e.g. "fa-train", "fa-utensils", "fa-mosque", "fa-museum", "fa-mountain". Overrides the type default. Look up icon names at fontawesome.com/icons (free "solid" set). Do NOT use emoji; all icons are unified Font Awesome glyphs rendered via <i class="fa-solid ..."> for a consistent cross-device look.file_write, e.g. /tmp/landmarks.json.python3 /var/minis/skills/openstreetmap-marker/scripts/build_map.py \
/tmp/landmarks.json /var/minis/workspace/<descriptive-filename>.html \
--title "West Lake Area Landmarks" --header "⚡ Hangzhou Trip" \
--style light
--style light (default, light minimal, Amap-like palette) or --style dark (dark immersive).--center/--zoom, the script automatically centers and zooms to fit all points with padding; a single point defaults to zoom 14.[Preview](minis://workspace/<filename>.html), tappable to open in the built-in browser.viewport-fit=cover + env(safe-area-inset-*) for notch/Dynamic Island devices.cdnjs.cloudflare.com/.../font-awesome/...) + white text label pills for a unified, non-emoji icon style.zoomControl: false) for a clean UI.desc as a note below a divider. No ratings/route/save/share buttons; kept intentionally minimal. A close (✕) button and tapping the basemap both dismiss it.landmarks.json stores WGS-84; the frontend JS automatically converts WGS-84→GCJ-02 before building the Amap deep link.navigator.userAgent (isAndroid / isIOS). Each option first tries a native URL scheme / intent to directly launch the installed app even from inside an embedded WebView; plain https:// links alone do NOT auto-launch native apps in an embedded webview (only a full browser like Safari/Chrome does that reliably). A short setTimeout fallback then redirects to the equivalent https:// web link if the scheme silently fails (app not installed):
iosamap:// (iOS) / amapuri:// (Android) → fallback https://uri.amap.com/marker?...comgooglemaps:// (iOS) / geo:lat,lng?q=... (Android) → fallback https://www.google.com/maps/search/?api=1&query=...maps:// → fallback https://maps.apple.com/?ll=...Uses CARTO's free Voyager/Dark basemap tiles (no API key required). Fine for personal/demo use, but subject to CARTO's rate limits and non-commercial-scale terms. For high-traffic production use, switch TILE_STYLES in scripts/build_map.py to a licensed provider (Mapbox, Stadia Maps, etc.).
TILE_STYLES in scripts/build_map.py and add a new key, e.g. Esri World Imagery tile URL for satellite view.L.polyline([[lat,lng],...]).addTo(map) to the generated HTML; these coordinates also need GCJ-02→WGS-84 conversion first if in mainland China.type colors to distinguish Day1/Day2/Day3.scripts/gcj_convert.py - GCJ-02→WGS-84 coordinate conversion (single-point CLI and batch JSON mode)scripts/build_map.py - map HTML generatorassets/template.html - page template with placeholders __PAGE_TITLE__ __HEADER_TEXT__ __LANDMARKS_JSON__ __CENTER_LAT__ __CENTER_LNG__ __ZOOM__ __TILE_URL__