How to hide a marker when user go out of fixed range of distance?
Hi,
I am having trouble in hiding a marker when user go out of range in which a model is rendered. I have seen setOnlyRenderWhenWithin() but its only for rendering. Is there any method for hiding the marker if user go out of range?
Thanks in advance for the answer.
There isn't currently a method for this - feel free to fork the library, and create a pull request with the feature
Hello, I try to do the same thing as you. I want to hide the view when it exceeds a certain distance. Knowing that the max distance is refreshed by the user thanks to a seekbar. I use setOnlyRenderWhenWithin, but when I update the distance thanks to the seek bar nothing happens the view is always displayed
do you have to remove the node from the scene and then add it with the new setOnlyRenderWhenWithin value for actualize the max distance ?
thanks if you have a solution.
what is the use for location.setDistanceLimit(int distance) method?
is this cannot be used for the asker's purpose?
Hello,
the only solution I found for this problem is to remove the markers from the mLocationMarker list reset the set OnlyRenderWhenWithin and re add to the marker list
sorry for my bad english..