- Home
- Skills
- Frontend & Web Apps
- amap-jsapi-skill
Amap Jsapi Skill
Expert-level Gaode Map (AMap) JSAPI v2.0 integration for 3D maps, LBS services, and secure implementations.
Free
Works with the AI Agents you already use
amap-jsapi-skill
Example session with this skill installed
Initialize a 3D AMap v2.0 instance with the Scale and Driving plugins, using my env key and the required appname config.
- Read your context and instructions
- Compiled the amap-jsapi-
AMapLoader.load({
key: process.env.AMAP_KEY,
version: '2.0',
plugins: ['AMap.Scale', 'AMap.Driving']
}).then((AMap) => {
AMap.getConfig().appname = 'amap-jsapi-skill';
const map = new AMap.Map('container', { viewMode: '3D', zoom: 12 });
map.addControl(new AMap.Scale());
});
Connects securely to your tools. The creator never sees your data.
About this skill
Professional Gaode (AMap) JSAPI v2.0 Integration
Developing interactive map applications requires more than just displaying a tile layer. It demands precise control over the WebGL lifecycle, secure authentication, and complex vector drawing. This skill equips your AI agent with the deep technical knowledge required to build robust location-based services using the official Gaode Map (AMap) JavaScript SDK v2.0.
What it does
- Lifecycle Management: Correctly initializes map instances with 3D view modes, proper viewport settings, and clean memory disposal using
map.destroy(). - Secure Deployment: Implements v2.0 security protocols, including
AMap_SECURITY_JS_CODEconfiguration and proxy-based service host setups. - Rich Visuals: Codes advanced markers (LabelMarkers with collision detection), vector graphics (Polylines, Polygons, Circles), and custom layers (Canvas, WMS, Three.js).
- LBS Service Integration: Implements complex features like reverse geocoding, route planning (driving, walking, transit), POI search, and input auto-completion.
Why use this skill?
While generic AI models often mix up API versions or ignore critical security requirements, this skill is purpose-built for JSAPI v2.0. It ensures your agent adheres to the latest AMapLoader patterns, prevents WebGL context leaks, and follows the mandatory security config rules that often cause "Invalid Key" or "Security Check" errors in map development.
Output Format
Your agent will produce ready-to-use HTML/JavaScript snippets or full components, correctly utilizing ES modules or script loaders as required, with all logic encapsulated in the workspace directory.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
- Requires manual env setup for security keys to avoid auth failures.
- WebGL 3D features may lag in resource-constrained environments.
- Not for React/Vue-specific wrapper troubleshooting.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
3 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 months ago
- Free with an Agensi account