Renderable rndCurChild = itrChildren.next();
if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
continue;
IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;
String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();
if (strIdCurChildCur.compareTo(strIdTarget) != 0)
continue;
GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
Angle angLatitudeSource = posSource.getLatitude();
Angle angLongitudeSource = posSource.getLongitude();
// ---
LatLon llnTargetCandidate = itr.next();
boolean blnGotIt = false;
while (itr.hasNext())
{
LatLon llnCur = itr.next();
if (llnCur.getLatitude().compareTo(angLatitudeSource) != 0)
{
llnTargetCandidate = llnCur;
continue;
}
if (llnCur.getLongitude().compareTo(angLongitudeSource) != 0)
{
llnTargetCandidate = llnCur;
continue;
}
blnGotIt = true;
break;
}
if (! blnGotIt)
return true;
if (llnTargetCandidate == null) // !!! should never appear
return true;
// ---
double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer(); // TEMPO, should be related to neighbours
dblZoom /= 100;
if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;