Hi Yves,<br>Yes, you can. The syntax is feature.attributes.&lt;fieldName&gt;, you&#39;ll get the field value for the current feature<br>Is it OK ?<br>If you need an example, i have one not so far...<br>Jean<br><br><div><span class="gmail_quote">2008/2/6, Jacolin Yves &lt;<a href="mailto:yjacolin@free.fr">yjacolin@free.fr</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Pierre,<br><br>Following this example, I have to parse my GML to find the data somewhere I<br>want to show on my tooltips. Is it the &quot;normal&quot; way? Is it possible to get it<br>with&nbsp;&nbsp;something like &quot;feature.data.&lt;fieldName&gt;&quot; to display it in the pop-up ?<br>
<br>Am I clear? I hope so :)<br><br>Y.<br>Le Wednesday 06 February 2008 14:02:48 Pierre GIRAUD, vous avez écrit :<br>&gt; Are you drawing features in a Vector-type layer ?<br>&gt; If so, is this example usefull ?<br>&gt; <a href="http://openlayers.org/dev/examples/select-feature-openpopup.html">http://openlayers.org/dev/examples/select-feature-openpopup.html</a><br>
&gt;<br>&gt; Regards,<br>&gt; Pierre<br>&gt;<br>&gt; On Feb 6, 2008 1:02 PM, Jacolin Yves &lt;<a href="mailto:yjacolin@free.fr">yjacolin@free.fr</a>&gt; wrote:<br>&gt; &gt; Hi list,<br>&gt; &gt;<br>&gt; &gt; I would like to test the pop-up feature in openlayers. If I add a GML,<br>
&gt; &gt; KML or some other type of layer. How can I easily retrieve data from the<br>&gt; &gt; GML, KML, after clicking on the map ?<br>&gt; &gt;<br>&gt; &gt; Do I need to retrieve the latLong from the click event, then parse the<br>
&gt; &gt; GML, and then build the content of the pop-up? Or can I retrieve data<br>&gt; &gt; from the GML layer loaded in OL? An another method?<br>&gt; &gt;<br>&gt; &gt; Could you provide some easy exemple for this?<br>&gt; &gt;<br>
&gt; &gt; Sorry if my question seems obvious. I am new in Javascript OO :)<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt;<br>&gt; &gt; Y.<br>&gt; &gt; --<br>&gt; &gt; Yves Jacolin<br>&gt; &gt; ---<br>&gt; &gt; <a href="http://softlibre.gloobe.org">http://softlibre.gloobe.org</a><br>
&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt; &gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
<br><br><br>--<br>Yves Jacolin<br>---<br><a href="http://softlibre.gloobe.org">http://softlibre.gloobe.org</a><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Information Géographique et Environnement<br>39 chemin Canto Laouzeto<br>
31100 Toulouse<br>France<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>Port&nbsp;&nbsp;+33 6 09 23 21 36<br>Fax&nbsp;&nbsp; +33 5 61 86 09 23<br>Mail : <a href="mailto:jean.pommier@ige.fr">jean.pommier@ige.fr</a><br>Site web : <a href="http://www.ige.fr">www.ige.fr</a><br>
Suivez de près l&#39;actualité d&#39;IGE grâce à notre fil RSS : <a href="http://www.ige.fr/actualites/rss.php">http://www.ige.fr/actualites/rss.php</a>