Point Layers

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:27, 3 August 2005 (edit)
Nosilleg (Talk | contribs)
(Tools - added Layer Edit (plugin))
← Previous diff
Current revision (11:29, 24 February 2018) (edit) (undo)
Bull (Talk | contribs)
m (Reverted edits by Monday (Talk); changed back to last version by Horizon)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-A '''Point Layer''' Add-On is based around a file and a file set. The file is the XML file that supplies all the location ond configuration data for the Add-On. The file set contains the images for the Add-On including the icon that is displayed in the toolbar.+A '''Point Layer''' Add-On is based around a file and a file set. The file is the XML file that supplies all the location and configuration data for the Add-On. The file set contains the images for the Add-On including the icon that is displayed in the toolbar.
==Tools== ==Tools==
*[http://worldwind.cromsoft.org/index.php?to=tools/addons_creator/infos WW ACID] Add-on maker *[http://worldwind.cromsoft.org/index.php?to=tools/addons_creator/infos WW ACID] Add-on maker
*[[WINK Spots]] Add-On maker *[[WINK Spots]] Add-On maker
-*[[Layer Edit (plugin)]]+*[[Add-on:Layer Edit (plugin)|Layer Edit]]
==XML File== ==XML File==
Line 12: Line 12:
<LayerSet Name="Australian Commonwealth Electorates" ShowOnlyOneLayer="false" ShowAtStartup="false" <LayerSet Name="Australian Commonwealth Electorates" ShowOnlyOneLayer="false" ShowAtStartup="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:noNamespaceSchemaLocation="C:\WorldWind\bin\Debug\Configuration\EarthLayers\LayerSet.xsd">+xsi:noNamespaceSchemaLocation="C:\Program Files\NASA\World Wind 1.3\Config\Earth\LayerSet.xsd">
<Icon ShowAtStartup="true"> <Icon ShowAtStartup="true">
<Name>Canberra</Name> <Name>Canberra</Name>

Current revision

A Point Layer Add-On is based around a file and a file set. The file is the XML file that supplies all the location and configuration data for the Add-On. The file set contains the images for the Add-On including the icon that is displayed in the toolbar.

Contents

[edit] Tools

[edit] XML File

Below is a sample from an Add-On which displays Federal Electorates in Australia.

<?xml version="1.0" encoding="UTF-8"?>
<LayerSet Name="Australian Commonwealth Electorates" ShowOnlyOneLayer="false" ShowAtStartup="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Program Files\NASA\World Wind 1.3\Config\Earth\LayerSet.xsd">
  <Icon ShowAtStartup="true">
    <Name>Canberra</Name>
    <Description>Commonwealth Electorate</Description>
    <Latitude><Value>-35.569567</Value></Latitude>
    <Longitude><Value>148.998003</Value></Longitude>
    <DistanceAboveSurface>100</DistanceAboveSurface>
    <TextureFilePath>Add-ons\Earth\AustralianFederalElectorates\Icons\alp.png</TextureFilePath>
    <TextureWidthPixels>128</TextureWidthPixels>
    <TextureHeightPixels>128</TextureHeightPixels>
    <IconWidthPixels>42</IconWidthPixels>
    <IconHeightPixels>42</IconHeightPixels>
    <ClickableUrl>http://www.aec.gov.au/_content/who/profiles/profiles/c/canberra.htm</ClickableUrl>
  </Icon>
  <ExtendedInfomation>
    <ToolBarImage>Add-ons\Earth\AustralianFederalElectorates\Icons\CoatOfArms.png</ToolBarImage>
  </ExtendedInfomation>
</LayerSet>

Most of the tags above are fairly self explanatory (if you are having difficulty with XML see the W3C XML site). All the fields must be present otherwise World Wind will not be able to load the Add-On (and will throw an error during start-up).

For multiple points in your Add-On simply repeat the icon section.

  <Icon>
    ...
    ...
  </Icon>

[edit] File Placement

The XML file should be placed in the $WorldwindHome/Config/Earth/ folder (change Earth for the appropriate planet if necessary).

The file set should be at the location specified in the <ToolBarImage> and <TextureFilePath> tags.

[edit] See Also

Personal tools