AW

amap-web/amap-skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

181 stars 质量 45 趋势 0

amap-web/amap-skills 是从 https://github.com/amap-web/amap-skills. 导入的代理技能候选

概览

amap-web/amap-skills 是从 https://github.com/amap-web/amap-skills. 导入的代理技能候选

概述(AI 翻译)

🇨🇳 中文文档

产品介绍

AMap JSAPI 技能是一套专为 AI IDE 设计的 AI 编程技能包。它将 AMap JavaScript API v2.0 的官方文档、最佳实践和代码模板整合进结构化技能文件中,使 Cursor、Claude 和 Cline 等 AI 编码工具能够:

准确理解如何使用AMap API。

  • **自动生成符合官方规范的地图代码

  • 主动避免常见的开发陷阱和安全问题

  • 提供经过验证的完整代码示例

无论你是初学者还是经验丰富的地图开发者,这个技能包都能显著提升你的开发效率。

产品特色

准确的API知识

基于官方 AMap JSAPI v2.0 文档,涵盖完整的 API 功能,确保生成代码符合最新规范。

安全第一

内置安全配置指南,自动提醒开发者配置安全密钥,避免因认证问题导致的地图白屏问题。推荐在生产环境中使用代理解决方案以保护密钥。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

JSAPI Skills User Guide

🇨🇳 中文文档

Product Introduction

AMap JSAPI Skills is a set of AI programming skill packages designed specifically for AI IDEs. It integrates the official documentation, best practices, and code templates of AMap JavaScript API v2.0 into structured skill files, enabling AI coding tools like Cursor, Claude, and Cline to:

  • Accurately understand how to use AMap APIs

  • Automatically generate map code that complies with official specifications

  • Proactively avoid common development pitfalls and security issues

  • Provide verified complete code examples

Whether you’re a beginner or an experienced map developer, this Skills package can significantly improve your development efficiency.

Product Features

Accurate API Knowledge

Built on the official AMap JSAPI v2.0 documentation, covering complete API capabilities to ensure generated code meets the latest specifications.

Security First

Built-in security configuration guide that automatically reminds developers to configure security keys, avoiding map white screen issues due to authentication problems. Proxy solutions are recommended for production environments to protect your keys.

Modular Design

Documentation organized by functional modules (map control, overlays, layers, LBS services), allowing AI to reference as needed and accurately answer your questions.

Verifiable Code

All code examples have been verified. AI will self-validate the usability of generated code to ensure the output runs correctly.

Capabilities

Map Control

Capability Description
Map Initialization Async loading, 3D/2D views, map style configuration
View Interaction Zoom, pan, pitch, rotation control
Lifecycle Management Load complete callback, resource destruction
Map Controls Scale bar, toolbar, overview map, layer switcher

Overlay Drawing

Capability Description
Marker Basic markers, custom icons, DOM content
LabelMarker Supports tens of thousands of points, text/icon collision avoidance
Vector Graphics Polylines, polygons, circles, rectangles
InfoWindow Default info window, custom content window
Context Menu Custom map/overlay right-click interactions

Layer Management

Capability Description
Standard Layers Standard map, satellite, road network
3D Layers Building blocks, indoor maps
Custom Data Layers Canvas layers, WMS/WMTS services

LBS Services & Plugins

Capability Description
Geocoding Address to coordinates, coordinates to address
Route Planning Driving, walking, cycling, transit routes
POI Search Nearby search, keyword search, input suggestions
Event System Click, drag, zoom and other interactive events

Quick Start

Step 1: Get Skills Files

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add amap-web/amap-skills
新手?先看 mcpskill.org 教程 →