Linux 软件免费装

Plugin Name

开发者 jondor
更新时间 2017年1月13日 05:42
捐献地址: 去捐款
PHP版本: 3.0.1 及以上
WordPress版本: 4.7
版权: GPLv2 or later
版权网址: 版权信息

标签

widget featured image google maps gps static map

下载

1.3 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.4 1.5 1.6 1.7 1.8 1.9

详情介绍:

This plugin implements a widget with a static google map which shows the GPS coordinates if those are available in the featured image. Besides the widget it also adds two shortcodes: EXIF_locationmap: Example: [EXIF_locationmap width=750 height=300 zoom=11 errors=false apikey=###] EXIF_location: example: [EXIF_location part=both] will return 52.22935055,6.8737411 [EXIF_location part=both form=dms] will return 52°21'13"N , 6°26'7"N If you would like to add this geoinformation also to your rss feed, there's my addGEORSS plugin which does exactly this. It uses the same data as stored by this plugin.

安装:

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add the widget to a widgetarea. You can set the widget title, width and height in pixels, and the zoomlevel.

屏幕截图:

  • Widget as presented to the user (using Alizee theme in this case)
  • The widget settings

常见问题:

Why did you write this widget?

As an first attempt to write a widget and because I couldn't find one that did what thisone does (and nothing more!)

Why the shortcodes

Guess you can use them for generating your own image from bing maps or alike. Putting a big map in the content has it's charm too..

I would like to edit the coordinates

Well, you probably can in your image processing software. Digikam can do it, so can darktable. But starting with the map on the editscreen I'm slowely working towards this feature.

Where to get an API Key

For now, this is a bit of a nerd stuff.. Go to https://console.developers.google.com, log in and create a project, search for the "static maps api" under libraries and enable it. Go to the "Credentials" screen and use the button "Create credentials". Select API key. And save it. Google suggests to restrict the usage of the key by IP or HTTP. If you want to use IP (test-environment of virtual server and the like) don't forget to add ipV4 AND ipV6 if you use both. Also, it takes a few minutes for the system to recognise the changes. Until that time you will get an 403 error with a message about an outdated api. Just be patient..

更新日志:

1.9 Fixed some user reported issues centered the messages in the widgetarea 1.8 Added an google apikey field in the widgetsettings. This key is only needed when you want to show a map AND have substansional usage of your site. 1.7 Some changes to the basic_plugin_class which, regretfully, isn't allowed to have it's own plugin anymore. move the javascript to the basic plugin class 1.6 Fixes for WP4.3 1.5 Cleaned up the code and fixed some minor bugs. 1.4 Added translation support and added an extra dutch translation. If you translate the pluing the resulting .po file would be appriciated. I used the "CodeStyling Localization" for my translation and it worked like a dream. 1.3 Added the map to the media edit page. 1.2.4 Added form attribute 1.2.3 Fixed readme 1.2.2 Minor details 1.2.1 1.2 Nothing really just trying to clean up some stupid svn mixups.. 1.1 1.0