Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare assets on their ID field, not JS object.
As the selected feature is a clone (so it survives e.g. layer reloading from server after a pan), we need to compare the asset ID field instead to see if we already have a match, to prevent a double select(). This also fixes a bug where an auto-selected asset would, after picking a different asset, reshow the selected pin image onmouseout, due to the way OL was storing old hover state internally.
- Loading branch information