Difference between revisions of "Custom Placemark Template"

From SailBlogs Support Wiki
Jump to: navigation, search
m (Reverted edits by Etalofec (Talk); changed back to last version by Tharincar)
 
Line 1: Line 1:
=[http://utugijynure.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
 
Standard [[Google Earth]] KML template for a placemark by SailBlogs:
 
Standard [[Google Earth]] KML template for a placemark by SailBlogs:
  
<pre>
+
<pre>
&lt;Placemark&gt;
+
<Placemark>
&lt;description&gt;
+
<description>
&lt;![CDATA[&lt;br&gt;
+
<![CDATA[<br>
&lt;table cellpadding=2 cellspacing=0 border=0 width=100%&gt;
+
<table cellpadding=2 cellspacing=0 border=0 width=100%>
&lt;tr&gt;&lt;td valign=top&gt;[%thumb%]&lt;br&gt;
+
<tr><td valign=top>[%thumb%]<br>
 
[%pData%]
 
[%pData%]
&lt;br&gt;
+
<br>
&lt;br&gt;
+
<br>
&lt;img src=&quot;http://www.sailblogs.com/xplot/maps/sb_map_logo.png&quot;&gt;&lt;/td&gt;
+
<img src="http://www.sailblogs.com/xplot/maps/sb_map_logo.png"></td>
&lt;td valign=top&gt;
+
<td valign=top>
&lt;i&gt;Post Date:&lt;/i&gt;&amp;nbsp;[%postDate%]&lt;br&gt;
+
<i>Post Date:</i>&nbsp;[%postDate%]<br>
&lt;b&gt;[%postTitle%]&lt;/b&gt;&lt;br&gt;
+
<b>[%postTitle%]</b><br>
[%postBody%]&lt;br&gt;
+
[%postBody%]<br>
&lt;a href='[%postURL%]'&gt;[%blogLinkText%]&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;]]&gt;
+
<a href='[%postURL%]'>[%blogLinkText%]</a></td></tr></table>]]>
&lt;/description&gt;
+
</description>
&lt;name&gt;&lt;![CDATA[[%markTitle%]]]&gt;&lt;/name&gt;
+
<name><![CDATA[[%markTitle%]]]></name>
&lt;styleUrl&gt;[%pointType%]&lt;/styleUrl&gt;
+
<styleUrl>[%pointType%]</styleUrl>
&lt;Style&gt;&lt;geomScale&gt;[%pointScale%]&lt;/geomScale&gt;&lt;/Style&gt;
+
<Style><geomScale>[%pointScale%]</geomScale></Style>
&lt;Point&gt;
+
<Point>
&lt;coordinates&gt;[%long%],[%lat%],0&lt;/coordinates&gt;
+
<coordinates>[%long%],[%lat%],0</coordinates>
&lt;/Point&gt;
+
</Point>
&lt;/Placemark&gt;
+
</Placemark>
&lt;/pre&gt;
+
</pre>

Latest revision as of 16:25, 8 December 2010

Standard Google Earth KML template for a placemark by SailBlogs:

<Placemark>
	<description>
		<![CDATA[<br>
		<table cellpadding=2 cellspacing=0 border=0 width=100%>
		<tr><td valign=top>[%thumb%]<br>
		[%pData%]
		<br>
		<br>
		<img src="http://www.sailblogs.com/xplot/maps/sb_map_logo.png"></td>
		<td valign=top>
		<i>Post Date:</i> [%postDate%]<br>
		<b>[%postTitle%]</b><br>
		[%postBody%]<br>
		<a href='[%postURL%]'>[%blogLinkText%]</a></td></tr></table>]]>
	</description>
	<name><![CDATA[[%markTitle%]]]></name>
	<styleUrl>[%pointType%]</styleUrl>
	<Style><geomScale>[%pointScale%]</geomScale></Style>
	<Point>
		<coordinates>[%long%],[%lat%],0</coordinates>
	</Point>
</Placemark>