Openstreetmap Marker 标志

Openstreetmap Marker

组织
OpenMinis
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", "OpenStreetMap marker", or asks to generate a map page for a city/set of places. Includes a built-in GCJ-02 (Mars/China coordinate system used by Amap/Tencent/Baidu/Apple Maps search results in mainland China) to WGS-84 (Leaflet basemap coordinate system) conversion tool to avoid marker offset in mainland China.

Add to TypingMind

概览

发布者OpenMinis
代码仓库MinisSkills
技能名称openstreetmap-marker
星标数
543
复刻数
86
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 OpenMinis 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Openstreetmap Marker AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/OpenMinis/MinisSkills/tree/main/openstreetmap-marker
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git /tmp/MinisSkills
mkdir -p .claude/skills
cp -r /tmp/MinisSkills/openstreetmap-marker .claude/skills/openstreetmap-marker
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Openstreetmap Marker,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Openstreetmap Marker。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Openstreetmap Marker 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

OpenStreetMap Marker

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).

Core Workflow

  1. Get marker coordinates: prefer 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.
  2. Coordinate conversion (critical, do not skip): Apple Maps / Amap / Tencent / Baidu almost always return GCJ-02 coordinates in mainland China, while this skill's Leaflet+OSM/CartoDB basemap uses WGS-84. Using GCJ-02 directly causes markers to drift tens to hundreds of meters (often landing in a river or the sea). Coordinates within mainland China MUST be converted with scripts/gcj_convert.py before writing to landmarks.json; the script automatically skips conversion for points outside China (out_of_china check).
    bash
    python3 /var/minis/skills/openstreetmap-marker/scripts/gcj_convert.py <lng> <lat>
    # outputs "wgs_lat,wgs_lng"
  3. Assemble landmarks.json: an array where each item is:
    json
    {"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.
    • Write this JSON array to a temp file with file_write, e.g. /tmp/landmarks.json.
  4. Generate the page:
    bash
    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).
    • Without --center/--zoom, the script automatically centers and zooms to fit all points with padding; a single point defaults to zoom 14.
  5. Deliver: present the result to the user as a Markdown link [Preview](minis://workspace/<filename>.html), tappable to open in the built-in browser.

Built-in style features (already handled by the template, no need to re-explain)

  • Full-screen immersive: viewport-fit=cover + env(safe-area-inset-*) for notch/Dynamic Island devices.
  • Semi-transparent top status bar (live clock on the left, custom header text on the right).
  • No bottom search bar / tab bar / side floating buttons (kept minimal per user preference: just map + markers).
  • Markers are circular colored icons (Font Awesome, loaded via CDN cdnjs.cloudflare.com/.../font-awesome/...) + white text label pills for a unified, non-emoji icon style.
  • Leaflet zoom control hidden by default (zoomControl: false) for a clean UI.
  • Tapping a marker opens a Google Maps-style bottom info card (not Leaflet's default popup) showing: title (with FA icon), address (if provided, 📍-style row), coordinates (lat, lng), and 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.
  • The info card has a single "Open Location in..." button, which slides up a bottom action sheet listing available map apps vertically (Amap / Google Maps / Apple Maps), each with an FA icon; a "Cancel" row closes the sheet. Available options are platform-aware:
    • Amap (labeled "Amap" in the sheet UI): only shown if the point falls within mainland China (coarse lat/lng range check). landmarks.json stores WGS-84; the frontend JS automatically converts WGS-84→GCJ-02 before building the Amap deep link.
    • Google Maps: always shown.
    • Apple Maps: only shown on iOS (UA-detected); hidden on Android since it is not a relevant or installable app there.
    • Platform is detected via 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):
      • Amap: iosamap:// (iOS) / amapuri:// (Android) → fallback https://uri.amap.com/marker?...
      • Google Maps: comgooglemaps:// (iOS) / geo:lat,lng?q=... (Android) → fallback https://www.google.com/maps/search/?api=1&query=...
      • Apple Maps: maps:// → fallback https://maps.apple.com/?ll=...

Tile provider note

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.).

Common adjustments

  • Change basemap: edit TILE_STYLES in scripts/build_map.py and add a new key, e.g. Esri World Imagery tile URL for satellite view.
  • Add routes/tracks: append L.polyline([[lat,lng],...]).addTo(map) to the generated HTML; these coordinates also need GCJ-02→WGS-84 conversion first if in mainland China.
  • Multi-day itineraries: generate one HTML per day, or use different type colors to distinguish Day1/Day2/Day3.

Reference files

  • scripts/gcj_convert.py - GCJ-02→WGS-84 coordinate conversion (single-point CLI and batch JSON mode)
  • scripts/build_map.py - map HTML generator
  • assets/template.html - page template with placeholders __PAGE_TITLE__ __HEADER_TEXT__ __LANDMARKS_JSON__ __CENTER_LAT__ __CENTER_LNG__ __ZOOM__ __TILE_URL__

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Openstreetmap Marker AI 技能有什么作用?

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", "OpenStreetMap marker", or asks to generate a map page for a city/set of places. Includes a built-in GCJ-02 (Mars/China coordinate system used by Amap/Tencent/Baidu/Apple Maps search results in mainland China) to WGS-84 (Leaflet basemap coordinate sy...

为什么在 TypingMind 中使用 Openstreetmap Marker?

因为您只需安装一次,就能搭配任何模型使用。Openstreetmap Marker 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Openstreetmap Marker?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/OpenMinis/MinisSkills/tree/main/openstreetmap-marker。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Openstreetmap Marker?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Openstreetmap Marker 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Openstreetmap Marker 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Openstreetmap Marker AI 技能免费吗?

是的。OpenMinis 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇