我正在使用Wordpress插件,在每个<georss:point>
的末尾将<item>
数据添加到标准RSS Feed中。
以kmlLayer
的形式添加到Google地图后,一切正常,默认显示RSS Feed中的<title>
和<description>
字段。
但是,我想要显示来自RSS提要的其他数据,例如返回原始帖子的链接和图像。我添加了<author><name>my name</name></author>
作为实验,在<georss:point>
之前添加了 - 但它没有显示在叠加层中。
我的Feed必须完全符合以下格式:
{
author: {
email: "nobody@google.com",
name: "Mr Nobody",
uri: "http://example.com"
},
description: "description",
id: "id",
infoWindowHtml: "html",
name: "name",
snippet: "snippet"
}
为了自定义infoWindow
内容,还是有办法在infoWindow
显示之前从RSS源获取额外数据并操纵内容?
有关信息,请参阅Feed输出:
<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>
答案 0 :(得分:-2)