display current figurefigureMATLABmatlab m-fileplot
Hello,
I am currently doing some work in Matlab script (m file). It will generate a lot of figure when I run the file, but I only want it to display only the last figure.
According to the code, getFeaturesAtCoordinate needs a method containsXY on the geometry class to works. But this function is not defined for point geometry and the parent class return always falsesee here.
May be the use of ol.source.Vector.getClosestFeatureToCoordinate is more appropriate for a list of point features.
Or you can provide a buffer around the coordinate of your point and use ol.source.Vector.forEachFeatureInExtent (unstable)
Best Answer