MapBBCode Share
PHP JavaScript CSS
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.
formats 1.2-15, update to csv and other changes Jun 26, 2018
lib swap vkontakte and myopenid, fix auth.php Dec 28, 2013
.htaccess forgot new htaccess Nov 23, 2013
.nginx-vhost.conf
CHANGELOG.md
README.md
auth.php merging accounts, fixes #43 Apr 5, 2015
config.php fix config options Dec 28, 2013
convert.php 1.2-15, update to csv and other changes Jun 26, 2018
db.php fix for database table creation Dec 17, 2015
help.txt
index.php
mapbbcode.php 1.2-15, update to csv and other changes Jun 26, 2018
openid.php initial commit Oct 27, 2013
page.php Option to remove maps from libraries, fixes #5 Apr 5, 2015
simplify.php fix bugs Mar 29, 2014

README.md

MapBBCode Share

This is a website originally made for sharing maps, based on MapBBCode javascript library. But since it has powerful import/export feature, it also can be used for planning routes, generating standalone map pages and converting between formats.

Installation

In order to reduce load on the main share.mapbbcode.org website, cloning the service is encouraged. Requirements are few:

  • Apache with mod_rewrite or nginx with php-fpm
  • PHP 5.2 or newer
  • MySQL 5
  • A separate domain (or subdomain) name

To install, copy all files (except README.md) to a designated directory, modify config.php according to your setup, and open http://domain.name/initdb. If you see a map with a yellow message saying tables were created, you're good to go. Set NEED_INIT_DB in the config to false, then check that saving and signing in work.

For caching to work, you need a cache directory with writing rights.

Formats

At the moment MapBBCode Share can import 11 file types and export 10. Writing a plugin for a new file format is easy: see examples in formats directory. Those are loaded automatically, you won't have to modify other scripts. Keep in mind this is not a universal convertor: GPSBabel is. This is not a GPS trace storage, and traces are simplified: we already have GPSies for full GPX downloads, elevation and speed profiles. MapBBCode Share goals are simple and outlined in the first section, and supported formats list should be kept short.

Included Libraries

Writing the service would be much harder it it weren't for those libraries:

License

All files that did not come from other libraries are released under WTFPL.