Convert L examples to use strapless template

This commit is contained in:
Tim Schaub
2015-11-15 16:07:32 -07:00
parent 87fcca91bd
commit f88681951a
14 changed files with 99 additions and 134 deletions
+4 -4
View File
@@ -82,11 +82,11 @@ layer0.setMap(map);
function bindInputs(id, layer) {
var idxInput = $('#idx' + id);
idxInput.on('input change', function() {
var idxInput = document.getElementById('idx' + id);
idxInput.onchange = function() {
layer.setZIndex(parseInt(this.value, 10) || 0);
});
idxInput.val(String(layer.getZIndex()));
};
idxInput.value = String(layer.getZIndex());
}
bindInputs(1, layer1);
bindInputs(2, layer2);