Amap Jsapi Skill

    by 崔新超

    2

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

    Free

    1 installSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Initialize a 3D AMap v2.0 instance with the Scale and Driving plugins, using my env key and the required appname config.

    Your agent does

    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()); });

    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.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 3 months ago

    • Free to download with an account

    Installs1
    Listed3 months ago

    Creator

    崔新超
    崔新超

    2 skills on Agensi

    Frequently Asked Questions

    Popular in Web & App UI Design

    Free