Convert V examples to strapless template

This commit is contained in:
Tim Schaub
2015-11-16 18:03:55 -07:00
parent baed03d50d
commit 8bd97532df
8 changed files with 64 additions and 89 deletions

View File

@@ -185,17 +185,20 @@ var map = new ol.Map({
})
});
$('#refresh-points').click(function() {
vectorPoints.setStyle(pointStyleFunction);
});
document.getElementById('refresh-points')
.addEventListener('click', function() {
vectorPoints.setStyle(pointStyleFunction);
});
$('#refresh-lines').click(function() {
vectorLines.setStyle(lineStyleFunction);
});
document.getElementById('refresh-lines')
.addEventListener('click', function() {
vectorLines.setStyle(lineStyleFunction);
});
$('#refresh-polygons').click(function() {
vectorPolygons.setStyle(polygonStyleFunction);
});
document.getElementById('refresh-polygons')
.addEventListener('click', function() {
vectorPolygons.setStyle(polygonStyleFunction);
});
/**