Skip to content

SDaron/Leaflet.Control.View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

##Leaflet Control Views Small pluggin to shift between views for a given map.

###Usage

var map = L.map('map');
map.setView([0,0],0);
viewMenu = L.control.views().addTo(map);

var bruxelles = {
    'center': [[50.839226598386105,4.364662170410156]],
    'zoom': 12
};
var grenoble = {
    'bounds':[[45.068671318263945,5.5707550048828125],[45.27730236908757,5.8495330810546875]]
};

viewMenu.addView(bruxelles,'Bruxelles');
viewMenu.addView(grenoble,'Grenoble');

About

A small plugin for leaflet to switch between stored views

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published