Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Include Page
ContentHeader
ContentHeader

Principle

For the purpose of showing(grey lightbulb) kml/kmz files, it is possible to include a Google Earth API in the wiki. The kml macro is designed to do so (for the public wiki's hosted on http://publicwiki.deltares.nl only). Examples below show how to use the macro. It has several obligatory input arguments:

input argument

type

explanation

url

string

direct (full) url to any kml or kmz file on the internet.

id

string

unique id for the object that contains the Google Earth API. This can be any string that does not have spaces

width

width specification

width of the Google Earth API (either in pixels "400px" or in a percentage of the with of the parenting object "80%")

height

height specification

height of the Google Earth API (in pixels, for example "400px")

lat

float

latitude of the aim of the initial view (decimal degrees)

lon

float

longitude of the aim of the initial view (decimal degrees)

tilt

float

tilt of the initial view (0% - 90%)

rotation

float

rotation of the initial view (degrees)

altitude

float

altitude of the initial viewpoint (ft)

Examples

Example 1

Code Block
{kml:width=450px|height=450px|tilt=70|rotation=210|lat=5.69|lon=53.44|altitude=15418|id=id2|url="http://dtvirt5.deltares.nl/kml/rijkswaterstaat/sedimentatlas_waddenzee/sediment_atlas_waddenzee_EVAII_mud_content.kml"}
kml
altitude15418
rotation210
width450px
lon53.44
tilt70
idid2
url"http://dtvirt5.deltares.nl/kml/rijkswaterstaat/sedimentatlas_waddenzee/sediment_atlas_waddenzee_EVAII_mud_content.kml"
lat5.69
height450px

Example 2

Code Block
{kml:url="http://dtvirt5.deltares.nl/kml/Examples/Ameland - Jarkus Raaien.kmz"|width=450px|height=300px|tilt=70|rotation=210|lat=5.69|lon=53.44|altitude=15418|id=id1}
kml
altitude15418
rotation210
width450px
lon53.44
tilt70
idid1
url"http://dtvirt5.deltares.nl/kml/Examples/Ameland - Jarkus Raaien.kmz"
lat5.69
height300px