src/AircraftTrajectories/Models/Visualisation/KML/AnimationSections/AnnoyanceKMLAnimator.cs
/// <summary>
///  Return a string in KML format containing all pre animation definitions 
///  that are required for the population annoyance
/// </summary>
/// <returns></returns>
Return a string in KML format containing all pre animation definitions
that are required for the population annoyance
Return a string in KML format containing all pre animation definitions that are required for the population annoyance
public string KMLSetup()
        {
            int houseId = 0;
            string setupString = "";
            foreach (double[] row in _populationData)
            {
                houseId++;
                GeoPoint3D geoPoint = _temporalGrid.GetGrid(0).GridGeoCoordinate(row[0], row[1]);
                var coordinates = geoPoint.Longitude + "," + geoPoint.Latitude + ",0";
                setupString += @"
<Placemark>
	<Style>
        <IconStyle id=""house_iconstyle_" + houseId + @""">
            <scale>0.9</scale>
            <Icon>
                <href>" + ImageDefault + @"</href>
            </Icon>
        </IconStyle>
	</Style>
    <Point>
        <coordinates>" + coordinates + @"</coordinates>
    </Point>
</Placemark> 
                ";
            }
            setupString += @"
<Placemark>
	<Style>
        <IconStyle>
            <Icon>
                <href>" + ImageAnnoyed + @"</href>
            </Icon>
        </IconStyle>
	</Style>
    <Point>
        <coordinates></coordinates>
    </Point>
</Placemark> 
            ";
            return setupString;
        }
public string KMLSetup ( ) { int houseId = 0 ; string setupString = " " ; foreach ( double [ ] row in _populationData ) { houseId ++ ; GeoPoint3D geoPoint = _temporalGrid . GetGrid ( 0 ) . GridGeoCoordinate ( row [ 0 ] , row [ 1 ] ) ; var coordinates = geoPoint . Longitude + " " + geoPoint . Latitude + " " ; setupString += @"
<Placemark>
	<Style>
        <IconStyle id=""house_iconstyle_" + houseId + @""">
            <scale>0.9</scale>
            <Icon>
                <href>" + ImageDefault + @"</href>
            </Icon>
        </IconStyle>
	</Style>
    <Point>
        <coordinates>" + coordinates + @"</coordinates>
    </Point>
</Placemark> 
                " ; } setupString += @"
<Placemark>
	<Style>
        <IconStyle>
            <Icon>
                <href>" + ImageAnnoyed + @"</href>
            </Icon>
        </IconStyle>
	</Style>
    <Point>
        <coordinates></coordinates>
    </Point>
</Placemark> 
            " ; return setupString ; }
Return a string in KML format containing all pre animation definitions
that are required for the population annoyance
Return a string in KML format containing all pre animation definitions that are required for the population annoyance
// Load ImageAnnoyed into Google Earth memory
None