Amap Jsapi Skill

    2

    Expert-level Gaode Map (AMap) JSAPI v2.0 integration for 3D maps, LBS services, and secure implementations.

    Free

    3 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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_CODE configuration 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

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

    Permissions

    Terminal / Shell
    Environment Variables
    Listed6 months ago

    What's inside

    Frequently Asked Questions

    This skill focuses specifically on Gaode Map (AMap) JSAPI v2.0, providing the agent with precise logic for WebGL-based 3D maps, advanced LBS integrations, and the necessary security protocols that generic models often overlook.

    Absolutely. The skill is designed to implement v2.0 security requirements, including JS API key integration and the mandatory AMap_SECURITY_JS_CODE or proxy service configurations to prevent 'Invalid Key' errors.

    Yes, the skill is proficient in building advanced visual layers, including 3D markers with collision detection, vector graphics, and custom visualizations using Canvas or WebGL layers.

    The agent provides production-ready code snippets utilizing the modern AMapLoader for ES modules or standard script loading, ensuring the lifecycle management (like instance destruction) is handled correctly.

    The skill is specifically optimized for Gaode Map JSAPI v2.0; however, it can assist in migration logic if you are moving an existing codebase from v1.4.x to the more performant v2.0 framework.

    The agent can architect full LBS features such as point-of-interest (POI) searching, real-time route planning for various transport modes, and efficient reverse geocoding services.

    New in Frontend & Web Apps

    Free