PDA

View Full Version : Adding a static image


Efrain
07-11-2007, 03:35 PM
Hi everyone!

I need to show an image when approaching to a certain point and have succeeded by using the xml placemark template posted in Tomservo's blog. However the image rotates around it's central axis when moving in circles. Is there any way of showing a vertical image that does not change in aspect or size? It should be something like a screenoverlay that appears only if you are near a given point.

This is the xml code I have used:

<?xml version="1.0" encoding="utf-8"?>

<LayerSet Name="prova" ShowOnlyOneLayer="false" ShowAtStartup="false" InfoUri="www.hola.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\WorldWind\bin\Debug\Configuration\Ear thLayers\LayerSet.xsd">
<ChildLayerSet Name="prova2" ShowOnlyOneLayer="true" ShowAtStartup="true">
<Icon ShowAtStartup="true" >
<Name>intent</Name>
<Latitude>
<Value>0</Value>
</Latitude>
<Longitude>
<Value>0</Value>
</Longitude>
<MinimumDisplayAltitude>1000</MinimumDisplayAltitude>
<MaximumDisplayAltitude>6000</MaximumDisplayAltitude>
<DistanceAboveSurface>100</DistanceAboveSurface>
<RotationDegrees>0</RotationDegrees>
<TextureFilePath>c:\planol.jpg</TextureFilePath>
<TextureWidthPixels>128</TextureWidthPixels>
<TextureHeightPixels>128</TextureHeightPixels>
<IconWidthPixels>300</IconWidthPixels>
<IconHeightPixels>250</IconHeightPixels>
</Icon>
</ChildLayerSet>
</LayerSet>

Thanks a lot!

withak
07-11-2007, 04:38 PM
You could probably do that with a plugin. Extend the screenoverlay class to render or not based on the camera lat/lon.