Variable renaming in examples

This commit is contained in:
Éric Lemoine
2014-02-04 16:41:40 +01:00
parent 169bdbc16f
commit ff11ed2e1e
2 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ var highlightStyleArray = [new ol.style.Style({
})
})];
var featuresOverlay = new ol.FeatureOverlay({
var featureOverlay = new ol.FeatureOverlay({
map: map,
styleFunction: function(feature, resolution) {
return highlightStyleArray;
@@ -79,10 +79,10 @@ var displayFeatureInfo = function(pixel) {
if (feature !== highlight) {
if (highlight) {
featuresOverlay.removeFeature(highlight);
featureOverlay.removeFeature(highlight);
}
if (feature) {
featuresOverlay.addFeature(feature);
featureOverlay.addFeature(feature);
}
highlight = feature;
}