Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 513 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 513 Bytes

##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');