My first attempt to write a plugin that facilitates drawing a world map with server locations. The map can be used for anything you can imagine, for instance draw all the phones or persons in your office on top of a floorplan.
Inside the wordpress administration you will create a new xml file, this file can contain 1 or multiple map definitions. These definitions then get coordinates, and optionally you define a line between them.
Configuration example:
<locationmap>
<map id="networkmap">
<baseimage src="%pluginpath%/worldmap.png" />
<plotimage src="%pluginpath%/location.png" />
<font src="%pluginpath%/SEMPRG__.TTF" />
<location id="hana" title="hana.oceanius.com" x="148" y="61" />
<location id="wraith" title="wraith.oceanius.com" x="82" y="72" />
<location id="kane" title="kane.oceanius.com" x="128" y="47" />
<location id="adaro" title="adaro.oceanius.com" x="250" y="46" />
<link from="adaro" to="hana" />
<link from="wraith" to="hana" />
<link from="kane" to="hana" />
</map>
</locationmap>
This plugin includes the excellent pixel font: Semplice Regular by Style-force.net.
The latest version of this plugin is current version 1.0 which can be downloaded here. After downloading, extract the plugin to your wp-content/plugins folder and activate it in the administration panel.
See the readme for easy integration in your template or post contents.
Requirements: PHP5, GDlib, WordPress >= 2.5
Our demo map:
5 Responses
baron
01|Jan|2009 1hi. Thanks for plugin
perfect.
Regards
steve
01|Jan|2009 2hey there!
thanks for this great idea!
Is it possible to have another area displayed than the world-map?
I´d love to use the functionality of your plug on a city-map, to show relations between special points in my town..
is there a way to do this?
thanks anyway,
steve
Martijn de Boer
02|Jan|2009 3Hi steve,
If you look at the example configuration you can see a line saying: baseimage src=”%pluginpath%/worldmap.png”, this tells the plugin which image to show. If you change this to your own image, you have a different image on the background.
Hope this is clear.
Asheville Web Designer
28|Jan|2010 4This is an awesome plugin! I’m so close to being able to use it for my client’s website. The only thing I need to know is how to make a map location into a link that can take someone to another page of the site. Can you please help me? I just don’t have enough php and xml experience to figure this out on my own. Like I said I just need to make the map points into links.
Martijn de Boer
06|Feb|2010 5I’m sorry, the plugin renders a static image. The only way one could accomplish this, is using an image map, but image maps are pure evil
.
Leave a reply
Search
Categories
Archives
Links
Random Quote
by debdrup, #Lobby
A design creation of Design Disease
Copyright © 2008-2009 - The Oceanius IRC Network - proudly powered by Sliqua Enterprise Hosting
InSense 1.0 Theme by Design Disease