A map view plugin for Obsidian Bases using AMap (高德地图) API.
- Display your notes as interactive markers on a map
- Optimized for users in China mainland with fast loading
- Support for custom marker icons and colors via properties
- Built-in standard, satellite, and hybrid map types
- Right-click on map to create notes at specific locations
This project is forked from obsidian-maps by Obsidian.
- Replaced MapLibre GL JS with AMap JS API 2.0
- Optimized for China mainland users with domestic map data
- Added AMap API Key and Security Configuration support
- Uses GCJ-02 coordinate system (Gaode Maps format: [longitude, latitude])
- Removed multi-tile provider support (AMap only)
- Obsidian 1.10 or later
- AMap (Gaode Maps) API Key and Security Config
- Download the latest release from GitHub
- Extract to your vault's
.obsidian/plugins/obsidian-amaps/directory - Enable the plugin in Obsidian Settings → Community plugins
- Configure your AMap API Key and Security Config in plugin settings, or use a
.envfile (see below)
- Register an account at AMap Developer Console
- Create a new Web platform application
- Get your Key and Security Config (安全密钥)
- Enter them in the plugin settings, or use a
.envfile:
Create a .env file in your vault root:
AMAP_API_KEY=your_api_key_here
AMAP_SECURITY_JS_CODE=your_security_code_hereThe plugin will automatically read API credentials from .env. This keeps sensitive data out of your settings and makes it easier to manage across devices.
⚠️ Note:.envfiles contain sensitive information. Do not commit them to Git!
- Create a Base with notes containing location coordinates
- Add GCJ-02 coordinates to your notes:
--- coordinates: - "116.4074" # longitude - "39.9042" # latitude ---
- In your Base, add a map view:
views: - type: map name: Map coordinates: note.coordinates
Note: This plugin uses GCJ-02 coordinate system (Gaode Maps format).
Get coordinates from: https://lbs.amap.com/tools/picker
For detailed usage instructions, see the Chinese README.
Copyright (c) 2025 Obsidian. Licensed under MIT License. Copyright (c) 2025 Easman. Modifications licensed under MIT License.
See LICENSE for the full license text.
See NOTICE for modification details and third-party dependencies.
