Skip to content

pinmarch/leaflet-tilelayer-simplepicture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-tilelayer-simplepicture

A TileLayer plugin for Leaflet.js, showing a picture file on the tile layer.

Requirements

  • Leaflet version: tested with 0.7.3(stable)
  • Canvas

Usage

In HTML;

<script type="text/javascript" src="L.TileLayer.SimplePicture.js"></script>

In JS;

window.onload = function() {
        var map = L.map('lmap');
        map.setView([0, 0], 3);

        var tileLayer = L.tileLayer.simplePicture(
                '/img/IMG_1952.jpg',
                {
                attribution : 'It&quot;s a sample'
                }
        );
        tileLayer.addTo(map);
};

Author

Satoshi Tada @pinmarch_t

About

A TileLayer plugin for Leaflet.js, showing a picture file on the tile layer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors