Variable renaming in examples
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user