Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.