Merge pull request #3084 from openlayers/v3.1.x

Changes from the v3.1.x branch.
This commit is contained in:
Tim Schaub
2015-01-05 10:22:14 -07:00
3 changed files with 11 additions and 3 deletions

9
changelog/v3.1.1.md Normal file
View File

@@ -0,0 +1,9 @@
# 3.1.0
## Summary
This is a patch release to fix an issue with the select interaction in the 3.1.0 release.
## Changes
* [#3082](https://github.com/openlayers/ol3/pull/3082) - Correct arguments for forEachGeometryAtPixel. ([@tschaub](https://github.com/tschaub))

View File

@@ -1,6 +1,6 @@
{
"name": "openlayers",
"version": "3.1.0",
"version": "3.1.1",
"description": "Build tools and sources for developing OpenLayers based mapping applications",
"keywords": [
"map",

View File

@@ -125,14 +125,13 @@ ol.renderer.Map.prototype.forEachFeatureAtPixel =
function(coordinate, frameState, callback, thisArg,
layerFilter, thisArg2) {
var result;
var extent = frameState.extent;
var viewState = frameState.viewState;
var viewResolution = viewState.resolution;
var viewRotation = viewState.rotation;
if (!goog.isNull(this.replayGroup)) {
/** @type {Object.<string, boolean>} */
var features = {};
result = this.replayGroup.forEachGeometryAtPixel(extent, viewResolution,
result = this.replayGroup.forEachGeometryAtPixel(viewResolution,
viewRotation, coordinate, {},
/**
* @param {ol.Feature} feature Feature.