1
我使用的Wordpress插件在每个<item>
的末尾添加<georss:point>
数据到标准RSS提要。如何自定义来自kmlLayer的infoWindow内容
当作为kmlLayer
添加到Google地图时,它一切正常,默认显示RSS提要中的<title>
和<description>
字段。
但是,我想要显示来自RSS提要的其他数据,例如一个链接回到原来的帖子,和一个图像。我添加了<author><name>my name</name></author>
作为实验,在<georss:point>
之前添加 - 但它不会显示在叠加层中。
请问我的饲料必须格式化正是因为每:
{
author: {
email: "[email protected]",
name: "Mr Nobody",
uri: "http://example.com"
},
description: "description",
id: "id",
infoWindowHtml: "html",
name: "name",
snippet: "snippet"
}
以定制infoWindow
内容,还是有办法从RSS Feed中获取额外的数据和操作infoWindow
显示之前的内容?
有关信息,这里的饲料产量:
<item>
<title>Helen Robotham profiled on Italian Vogue</title>
<link>http://blogs.fashion.arts.ac.uk/snapshot/2010/03/22/helen-robotham-profiled-on-italian-vogue/</link>
<comments>http://blogs.fashion.arts.ac.uk/snapshot/2010/03/22/helen-robotham-profiled-on-italian-vogue/#comments</comments>
<pubDate>Mon, 22 Mar 2010 09:36:07 +0000</pubDate>
<dc:creator>alastair</dc:creator>
<guid isPermaLink="false">http://www.fashion.arts.ac.uk/snapshot/?p=1746</guid>
<description><![CDATA[MA Fashion Artefact alumna Helen Robotham has a detailed profile on vogue.it, complete with biography and gallery. Helen graduated in 2009 and last May won the Fashion Fringe at Covent Garden Accessories Award. View course information]]></description>
<content:encoded><![CDATA[<p><img class="alignnone size-large wp-image-1747" src="http://blogs.fashion.arts.ac.uk/snapshot/files/2010/03/vogue-it-robotham-469x288.jpg" alt="" width="469" height="288" /></p>
<p><a href="http://www.fashion.arts.ac.uk/courses/postgraduate/ma_fashion_artefact.htm">MA Fashion Artefact</a> alumna Helen Robotham has a detailed <a href="http://www.vogue.it/en/talents/graduated-from/2010/03/helen-robotham">profile on vogue.it</a>, complete with biography and gallery. Helen graduated in 2009 and <a href="http://www.fashion.arts.ac.uk/snapshot/2009/05/helen-robotham-wins-fashion-fringe/">last May won</a> the Fashion Fringe at Covent Garden Accessories Award.</p>]]></content:encoded>
<wfw:commentRss>http://blogs.fashion.arts.ac.uk/snapshot/2010/03/22/helen-robotham-profiled-on-italian-vogue/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<author><name>name</name></author>
<georss:point>45.4636889 9.1881408</georss:point>
<georss:featurename>Milan, Italy</georss:featurename>
<link rel="enclosure" type="image/jpeg" href="http://farm1.static.flickr.com/74/228310988_33a56d0108_o.jpg" />
</item>