Make renderIntent private and add a getter

This commit is contained in:
ahocevar
2013-11-11 22:07:18 +01:00
parent 299d729936
commit 0ed208b710
8 changed files with 24 additions and 13 deletions

View File

@@ -275,7 +275,8 @@ ol.renderer.canvas.VectorLayer.prototype.getFeaturesForPixel =
halfWidth, halfHeight, uid, coordinates, j;
for (var id in candidates) {
candidate = candidates[id];
if (candidate.renderIntent == ol.layer.VectorLayerRenderIntent.HIDDEN) {
if (candidate.getRenderIntent() ==
ol.layer.VectorLayerRenderIntent.HIDDEN) {
continue;
}
geom = candidate.getGeometry();