Closed vvizden closed 3 years ago
Hi,
when using the ol map instance method forEachFeatureAtPixel, the console printed the error:
forEachFeatureAtPixel
TypeError: Cannot read property 'slice' of null at Map.PluggableMap.getCoordinateFromPixelInternal
Please review the example.
Because i use the pixel_ instead of pixel, maybe the pixel_ is null at some point, so just add a null value checking.
pixel_
pixel
Hi,
when using the ol map instance method
forEachFeatureAtPixel
, the console printed the error:Please review the example.