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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    OpenMinisがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Openstreetmap Marker」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

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

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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を有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にOpenstreetmap Markerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Openstreetmap Markerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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__

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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 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を読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Openstreetmap Markerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Openstreetmap Markerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもOpenstreetmap Markerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Openstreetmap Marker」は無料ですか?

はい。OpenMinisがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇