MapBBCode for WordPress
PHP JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
.gitignore
LICENSE
README.md
init.js
mapbb.php
readme.txt

README.md

MapBBCode for WordPress

MapBB-shortcodes [map] for Leaflet based maps.

Description

This plugin allows to use shortcode [map] which transforms to Leaflet based map.

Installation

  1. Get the plugin:
  • Through “Plugins” → “Add New” menu in WordPress.
    or
  • Download archive from WordPress.org or from Guthub and unzip it to /wp-content/plugins/ directory
    or
  • Checkout source code to /wp-content/plugins/ directory:
    • from WordPress.org:
      svn co http://plugins.svn.wordpress.org/mapbb/tags/0.1/ mapbb
      or
    • from Github:
      git clone https://github.com/shoorick/mapbb-wordpress.git
  1. Activate the plugin through the “Plugins” menu in WordPress.

Usage

Add shortcode into you pages:

  • [map][/map] for default map
  • [map=Zoom,Latitude,Longitude][/map] for map centered at (Latitude, Longitude)
  • [map]Latitude,Longitude(Text)[/map] for map with balloon
  • [map]Lat1,Lon1; Lat2,Lon2[/map] for map with multiple markers
  • [map]Lat1,Lon1 Lat2,Lon2 Lat3,Lon3(color|Text)[/map] for map with polyline or polygon

See examples at shoorick.ru/software/mapbb-wordpress/

Caveats

All maps are 604 pixels wide, it is good for Twenty Thirteen theme but still not tested with other themes and may appear ugly.

Changelog

0.2

  • MappBBCode updated.
  • URLs of default layer tiles changed because of moving by GIScience Heidelberg.

0.1

Initial release