4445464748495051525354
LayerList layers = wwd.getModel().getLayers(); for (Layer l : layers) { if (l instanceof PlaceNameLayer) compassPosition = layers.indexOf(l); } layers.add(compassPosition, layer); }