fix Leaflet not saving base layer properly

This commit is contained in:
Stefan Breunig
2013-02-13 19:52:29 +01:00
parent b3ec8ccd48
commit a63370cae9

View File

@ -113,8 +113,10 @@ window.setupMap = function() {
console.log('Remove all resonators'); console.log('Remove all resonators');
}); });
$("[name='leaflet-base-layers']").change(function () {
writeCookie('ingress.intelmap.type', $(this).parent().index()); map.on('baselayerchange', function () {
var selInd = $('[name=leaflet-base-layers]:checked').parent().index();
writeCookie('ingress.intelmap.type', selInd);
}); });
// map update status handling // map update status handling