Det här tillägget har inte testats med någon av de 3 senaste huvudversionerna av WordPress. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem när det används tillsammans med nyare versioner av WordPress.

Google Maps GPS Link

Beskrivning

v1.1 UPDATE: Okay, I lied about future development. Support has been added for any number of GPS links. Be aware, the plugin will simply try to convert any string with ”::” in it to a GPS link, so if you’re in the habit of using that in your posts, I recommend finding the declaration for the $searchBit variable in the PHP, changing it to whatever delimiter you like, and adjusting your post syntax accordingly.

v1.0:
This plugin will replace -one- properly formatted string in a post with a Google Maps link to the included GPS coordinates. The map will load in a new window/tab at zoom level=14, normal map view.

I wrote this to use when posting from my Nokia N810 handheld with WordPy, making it very easy to add a Google Maps link to my current location without using the wp-admin site, which is slow and clumsy on the handheld’s browser.

Features are minimal (only does the one thing, really), and usability could definitely use a bump. Even so, no additional development on this plugin is planned; I would suggest users looking for more comprehensive functionality take a look at WP Geo.

USAGE:
You will need three bits of info:
A) GPS North-South coordinate
B) GPS East-West coordinate
C) Link text

Then, type that info using the following format into your post:

:gps:C::A::B:gps:

For example, if you wish to post a link to a map of GPS coordinates 32.970705,-116.955461 as reported by your GPS device/handheld/etc, simply type the following string into your post:

:gps:And this is an example link.::32.970705::-116.955461:gps:

And the plugin will convert that to the following markup when WordPress renders the post:

And this is an example link.

Installation

  1. Upload ’gmapgpslink.php’ to the ’/wp-content/plugins/’ directory
  2. Activate the plugin through the ’Plugins’ menu in WordPress

Vanliga frågor

What if I need something more powerful/functional/useful/pretty?

I can’t really help you with that. If you saw my code, you’d understand just how true that is. Feel free to build upon my paltry offering to the FOSS gods, or you might take a look at WP Geo.

Recensioner

Detta tillägg har inga recensioner.

Bidragsgivare och utvecklare

”Google Maps GPS Link” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

Översätt ”Google Maps GPS Link” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.