Giter Site home page Giter Site logo

locationmap's Introduction

=== Locationmap ===
Contributors: martijndeboer
Tags: location, map, geo
Stable tag: trunk
Requires at least: 2.5
Tested up to: 2.7
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2199830

Builds a map from given location, and draws lines between them.

== Description ==

Draws a map and inserts points on the location. Has the ability to draw multiple maps. Only accepts PNG as input and output.

Loads a xml from the admin panel, which tells us the following:

- Image to load
- Image to use for plotting a location
- Locations
  - Title
  - x,y

a valid xml should look like the following:
<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>

Want to show the map? Just put `<?php locationmap("mapid"); ?>` in your template. Don't want to hack a new template or existing template together ?
Just put the following in your post: %locationmap: mapid% .

Font is the fine Semplice Regular from Style-Force.
http://pixelfonts.style-force.net/


== Installation ==

- Upload the plugin to your plugins folder, and off you go.
- Create a valid xml
- Add a call to locationmap("myMapId"); to your template, or a parsable tag to a post / page.

== Frequently Asked Questions ==
- I'm getting no text or a warning about the font.
  - A. Did you specify the font tag ?

- I'd like to have feature x and y, can you implement this ?
  - A. Give me a try, and if I like it, ill add it. You can send your contributions to me, and i'll add them if it fits the plugin.

- I want to define multiple maps, how do I do it.
  - A. Just define multiple <map id="myMapId"> blocks, be sure to have unique id's for each map!

locationmap's People

Contributors

wppluginsbot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.