diff --git a/examples/vector-labels.html b/examples/vector-labels.html index 8312c87256..db16e2f62c 100644 --- a/examples/vector-labels.html +++ b/examples/vector-labels.html @@ -68,7 +68,7 @@
- +

Points

@@ -157,7 +157,7 @@
- +

Lines

@@ -246,7 +246,7 @@
- +

Polygons

diff --git a/examples/vector-labels.js b/examples/vector-labels.js index 88b9e3e3c5..d4dc281292 100644 --- a/examples/vector-labels.js +++ b/examples/vector-labels.js @@ -195,17 +195,17 @@ var map = new ol.Map({ }) }); -var refreshPoints = function() { +$('#refresh-points').click(function() { vectorPoints.setStyle(createPointStyleFunction()); -}; +}); -var refreshLines = function() { +$('#refresh-lines').click(function() { vectorLines.setStyle(createLineStyleFunction()); -}; +}); -var refreshPolygons = function() { +$('#refresh-polygons').click(function() { vectorPolygons.setStyle(createPolygonStyleFunction()); -}; +}); /**