Mapcode control for Leaflet
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
example Use the proper camelcase for the factory function Apr 13, 2016
lib/mapcode-js
src
.gitignore Add the dist files to the repo. Kinda expected. Apr 12, 2016
.npmignore Add the NPM artifacts Apr 12, 2016
Gruntfile.js
LICENSE Initial commit Apr 12, 2016
README.md Use the proper camelcase for the factory function Apr 13, 2016
bower.json Add the bower.json file Apr 12, 2016
package.json

README.md

Leaflet.Mapcodes

Mapcode control for LeafletJS

A Leaflet plugin to view mapcodes of the mouse pointer on mouse move.

Requirements

Leaflet.Mapcodes requires

Standalone demo

A Live Demo is available

Usage

Install mapcode-js files from the mapcode foundation repository then include the mapcode-js files, before this plugins Javascript, and CSS code

<script type="text/javascript" src="mapcode-js/ndata.js"></script>
<script type="text/javascript" src="mapcode-js/ctrynams.js"></script>
<script type="text/javascript" src="mapcode-js/mapcode.js"></script>

<link rel="stylesheet" src="Leaflet.Mapcode.css" />
<script type="text/javascript" src="Leaflet.Mapcodes.js"></script>

Then add the control to the map like so:

L.control.mapcode({
    position: "bottomleft",  // optional default "bottomright"
    labelTemplate: "Mapcode: {0}", // optional default "{0}"
}).addTo(map);

License

See the LICENSE file in the repo