Skip to content

Commit 55e0355

Browse files
committed
fix UT。review by songyumeng.
1 parent 2b56cd6 commit 55e0355

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/iclient9-openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59874,7 +59874,7 @@ var MapExtend = exports.MapExtend = function () {
5987459874

5987559875
this.forEachFeatureAtPixelDefault(pixel, callback, opt_options);
5987659876

59877-
var layerFilter = opt_options.layerFilter ? opt_options.layerFilter : function () {
59877+
var layerFilter = opt_options && opt_options.layerFilter ? opt_options.layerFilter : function () {
5987859878
return true;
5987959879
};
5988059880

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlayers/core/MapExtend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export var MapExtend = function () {
1212

1313
this.forEachFeatureAtPixelDefault(pixel, callback, opt_options);
1414

15-
const layerFilter = opt_options.layerFilter ? opt_options.layerFilter : () => {
15+
const layerFilter = (opt_options && opt_options.layerFilter) ? opt_options.layerFilter : () => {
1616
return true;
1717
};
1818

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy