Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better documentation please ? #120

Open
brunob opened this issue Apr 3, 2014 · 4 comments
Open

better documentation please ? #120

brunob opened this issue Apr 3, 2014 · 4 comments
Assignees
Labels

Comments

@brunob
Copy link
Collaborator

brunob commented Apr 3, 2014

Help needed ! It would be great to see a pull request for that :)

@fiskus
Copy link
Contributor

fiskus commented Aug 27, 2014

How about jsdoc? I saw some comments in code which should describe data structure, it's a job for jsdoc.

@techieshark
Copy link

If anyone else finds this issue looking for just a simple example of adding a Google layer, see this example:

https://github.com/shramov/leaflet-plugins/blob/master/examples/google.html

The gist of the code there is basically this (differences are just small clarifications):

<script src="path-to-shramov-leaflet-plugins/layer/tile/Google.js"></script>
<script type='text/javascript'>
var map = new L.Map('map', {center: new L.LatLng(53.9618, 58.4277), zoom: 13});
var osm = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png');
var ggl = new L.Google(); //defaults to SATELLITE
var ggl2 = new L.Google('TERRAIN');
map.addLayer(ggl);
map.addControl(new L.Control.Layers({'Open Street Map': osm, 
                                     'Google Satellite': ggl, 
                                     'Google Terrain': ggl2}, {}));
</script>

And note that the full set of Google tile types are given in /layer/tile/Google.js: SATELLITE, ROADMAP, HYBRID, or TERRAIN.

@brunob brunob self-assigned this Jun 22, 2015
@johnd0e
Copy link
Contributor

johnd0e commented Jun 18, 2019

Documentation for L.BingLayer and L.Yandex can be extracted from my recent commits messages. It'd easy to compile README.md
Edit: Done, see Yandex.md and Bing.md.

@pangoSE
Copy link

pangoSE commented Feb 7, 2020

What about documentation for the permalink script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants