Make vector-labels example work in advanced mode

This commit is contained in:
Tom Payne
2014-03-23 19:19:09 +01:00
parent 06469ede50
commit 14cca5e2f9
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -68,7 +68,7 @@
</div> </div>
<div class="edit-form"> <div class="edit-form">
<input type="button" value="Refresh" onclick="refreshPoints();" /> <input id="refresh-points" type="button" value="Refresh" />
<h2>Points</h2> <h2>Points</h2>
<div class="edit-form-elem"> <div class="edit-form-elem">
<label>Text: </label> <label>Text: </label>
@@ -157,7 +157,7 @@
</div> </div>
<div class="edit-form"> <div class="edit-form">
<input type="button" value="Refresh" onclick="refreshLines();" /> <input id="refresh-lines" type="button" value="Refresh" />
<h2>Lines</h2> <h2>Lines</h2>
<div class="edit-form-elem"> <div class="edit-form-elem">
<label>Text: </label> <label>Text: </label>
@@ -246,7 +246,7 @@
</div> </div>
<div class="edit-form"> <div class="edit-form">
<input type="button" value="Refresh" onclick="refreshPolygons();" /> <input id="refresh-polygons" type="button" value="Refresh" />
<h2>Polygons</h2> <h2>Polygons</h2>
<div class="edit-form-elem"> <div class="edit-form-elem">
<label>Text: </label> <label>Text: </label>
+6 -6
View File
@@ -195,17 +195,17 @@ var map = new ol.Map({
}) })
}); });
var refreshPoints = function() { $('#refresh-points').click(function() {
vectorPoints.setStyle(createPointStyleFunction()); vectorPoints.setStyle(createPointStyleFunction());
}; });
var refreshLines = function() { $('#refresh-lines').click(function() {
vectorLines.setStyle(createLineStyleFunction()); vectorLines.setStyle(createLineStyleFunction());
}; });
var refreshPolygons = function() { $('#refresh-polygons').click(function() {
vectorPolygons.setStyle(createPolygonStyleFunction()); vectorPolygons.setStyle(createPolygonStyleFunction());
}; });
/** /**