Hi Yves,<br>Yes, you can. The syntax is feature.attributes.<fieldName>, you'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 <<a href="mailto:yjacolin@free.fr">yjacolin@free.fr</a>>:</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 "normal" way? Is it possible to get it<br>with something like "feature.data.<fieldName>" 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>> Are you drawing features in a Vector-type layer ?<br>> If so, is this example usefull ?<br>> <a href="http://openlayers.org/dev/examples/select-feature-openpopup.html">http://openlayers.org/dev/examples/select-feature-openpopup.html</a><br>
><br>> Regards,<br>> Pierre<br>><br>> On Feb 6, 2008 1:02 PM, Jacolin Yves <<a href="mailto:yjacolin@free.fr">yjacolin@free.fr</a>> wrote:<br>> > Hi list,<br>> ><br>> > I would like to test the pop-up feature in openlayers. If I add a GML,<br>
> > KML or some other type of layer. How can I easily retrieve data from the<br>> > GML, KML, after clicking on the map ?<br>> ><br>> > Do I need to retrieve the latLong from the click event, then parse the<br>
> > GML, and then build the content of the pop-up? Or can I retrieve data<br>> > from the GML layer loaded in OL? An another method?<br>> ><br>> > Could you provide some easy exemple for this?<br>> ><br>
> > Sorry if my question seems obvious. I am new in Javascript OO :)<br>> ><br>> > Regards,<br>> ><br>> > Y.<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>
<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> <br>Port +33 6 09 23 21 36<br>Fax +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'actualité d'IGE grâce à notre fil RSS : <a href="http://www.ige.fr/actualites/rss.php">http://www.ige.fr/actualites/rss.php</a>