Title: Weather Map
Author: Xiangxu
Published: <strong>2025 年 8 月 2 日</strong>
Last modified: 2025 年 8 月 2 日

---

搜索插件

![](https://ps.w.org/weather-map/assets/banner-772x250.png?rev=3338210)

![](https://ps.w.org/weather-map/assets/icon-256x256.png?rev=3338210)

# Weather Map

 作者：[Xiangxu](https://profiles.wordpress.org/sylvie9/)

[下载](https://downloads.wordpress.org/plugin/weather-map.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/weather-map/#description)
 * [评价](https://cn.wordpress.org/plugins/weather-map/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/weather-map/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/weather-map/#developers)

 [支持](https://wordpress.org/support/plugin/weather-map/)

## 描述

Weather Map allows you to display real-time weather information for multiple coordinates
using OpenWeatherMap API. Each location’s weather is fetched and displayed on an
interactive map (Leaflet.js based). The plugin includes a 15-minute caching mechanism
to reduce API usage.

Features:
 – Enter up to 6 coordinates to keep the map readable. – Built-in API 
key validator before saving. – 15-minute transient cache for weather data. – Fully
shortcode-based integration: `[weather_map]`. – Admin-friendly settings interface.

### External Services

This plugin connects to the OpenWeatherMap API to retrieve real-time weather information
for the locations configured in the plugin settings.

Data Sent:
 – Latitude and longitude values entered by the site admin – The API 
key provided by the site admin in the plugin settings

Data is sent only when:
 – The front-end map loads to fetch and display weather 
data for a specific location

Service Provider:
 – [OpenWeatherMap](https://openweathermap.org/) – [Terms of Service](https://openweathermap.org/terms)–
[Privacy Policy](https://openweathermap.org/privacy-policy)

## 屏幕截图

 * [[
 * Frontend display: Click the weather icon to show current weather information.
 * [[
 * Plugin settings page: Enter your API key and location coordinates in the admin
   panel.

## 安装

 1. Upload the plugin to the `/wp-content/plugins/weather-map/` directory.
 2. Activate the plugin via the “Plugins” menu in WordPress.
 3. Go to “Weather Map” in the admin menu.
 4. Enter your OpenWeatherMap API key and up to 6 coordinate pairs.
 5. Use the `[weathermap]` shortcode on any page or post.

## 常见问题

### How do I get an API key?

You can register for a free or paid API key at https://openweathermap.org/api. Choose
a plan based on your expected usage.

### How is API usage calculated?

Each coordinate results in one API call. So if you have 4 coordinates and load the
page, that’s 4 API requests. Caching prevents duplicate calls within a 15-minute
window.

### How many coordinates can I enter?

To keep the map clean, a maximum of 6 coordinates is recommended.

### How do I display the map on a page?

Simply use the shortcode `[weather_map]` in your content editor or page builder.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Weather Map」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Xiangxu ](https://profiles.wordpress.org/sylvie9/)

[帮助将「Weather Map」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/weather-map)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/weather-map/)，查看[SVN仓库](https://plugins.svn.wordpress.org/weather-map/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/weather-map/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/weather-map/)。

## 更新日志

#### 1.0

 * Initial release of the Weather Map plugin with Leaflet.js, OpenWeatherMap integration,
   admin settings, validation, and caching.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**10 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/weather-map/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[map](https://cn.wordpress.org/plugins/tags/map/)
   [openweathermap](https://cn.wordpress.org/plugins/tags/openweathermap/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [weather](https://cn.wordpress.org/plugins/tags/weather/)
 *  [高级视图](https://cn.wordpress.org/plugins/weather-map/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/weather-map/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/weather-map/reviews/)

## 贡献者

 *   [ Xiangxu ](https://profiles.wordpress.org/sylvie9/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/weather-map/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ko-fi.com/sylvie9)