這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Web Maps

外掛說明

Leaflet Map is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.

Leaflet Map is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Leaflet Map.

Add a map generated with LeafletJS: an open-source JavaScript library for mobile-friendly interactive maps. Map tiles are provided by default through GoogleMaps.

Maps

Simply create a map with:

[webmap] or `[webmap  wpwebmapsID="9482"]`

Developers and curious

Links

More

In the sidebar of Admin dashboard you can see a new posts type menu called Web Maps.

Here you can add all maps that you want.

In this Web Maps post type, there is a custom field, where you can place a custom JS code like these examples WpWebMaps example code.

For insert any Web Maps in your post, you can add shortcode like this [webmap wpwebmapsID="9482"], where the number 9482 is the id of custom post.

Do you want a customized plugin? Contact me

Here’s a link Telegram DM.
If you want a customized plugin, just contact me.

螢幕擷圖

  • Simple example.
  • Settings page.
  • Custom post type for code.
  • Custom post type example Javascript.
  • Custom post type example GeoJSON.
  • Put the shortcode into the post.
  • Simple example version 0.2.2
  • Mobile ready!

安裝方式

  1. Choose to add a new plugin, then click upload
  2. Upload the wp-web-maps zip
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Use the shortcodes in your pages or posts: e.g. [webmap]

-or.

Download and install the .zip file in the WordPress plugin page of your website

-or-

  1. Unzip and upload the mobile-blocks directory into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Done!

常見問題集

Whoa, what’s with all these plugins?

The principle behind this plugin is to insert map in your posts and learn how code works.

Can I customize the map?

The map is almost completely customizable; with the examples I post in GitHub,
it will be easy to understand how the code works and how to quickly change the code.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP Web Maps〉的開發相關工作。

參與者

將〈WP Web Maps〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.2.2

  • fix function name;

0.2.1

  • add JS and CSS vendors with version in file name;
  • Add CPType and Custom Field;
  • Insert jQuery if don’t exist;
  • Add library JS and CSS with version; add base_leaflet JS for codepen;add readme for example;
  • Add Geojson category; add template for geojson category;
  • Fix Error :Request header field Content-Type is not allowed by Access-Control-Allow-Headers;
  • Create example003.js – Simple load Geojson from WP (003);

0.2.0

  • add CPType Web Maps;
  • add custom field for insert JS code;
  • add attributes to shortcode for get custom JS code form single Web Map;
  • update readme;

0.1.4

  • initial Version;
  • basic map creation and marker creation;