WhirlyGlobe
WhirlyGlobe copied to clipboard
Sphere selection not working on Android
Should work. Doesn't seem to. The AutoTester entry should trigger it.
I have found a partial solution to this issue which may help in finding a proper fix. In the latest edition of WhirlyGlobe, adding the following line to addShapes in RenderController.java allows for ShapeSphere selection; but only while the sphere in question has the globe behind it.
for (Shape shape : shapes) {shape.setSelectID(Identifiable.genID());}
This should be added immediately below taskMan.addTask(() -> {
If the sphere is outside the perimeter of the globe, however, selection still does not trigger userDidSelect.
This functionality works without issue on iOS.