<div dir="ltr">Mira aquí:<div><br></div><div><a href="http://openlayers.org/dev/examples/kml-layer.js">http://openlayers.org/dev/examples/kml-layer.js</a><br></div><div><br></div><div style>es un ejemplo de como hacerlo. </div>

<div style><br></div><div style>Y aquí tienes mas ejemplos, te recomiendo que revises bien esa documentación, encontrarás información detallada de muchos casos.</div><div style><br></div><div style><a href="http://openlayers.org/dev/examples/">http://openlayers.org/dev/examples/</a><br>

</div><div style><br></div><div style>Saludos.</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Micho García<br>GIS Developer<br><a href="http://michogarcia.org" target="_blank">michogarcia.org</a><br>

<a href="http://geomati.co" target="_blank">geomati.co</a></div></div>
<br><br><div class="gmail_quote">El 10 de mayo de 2013 11:26, geodesman <span dir="ltr"><<a href="mailto:juavafer@hotmail.com" target="_blank">juavafer@hotmail.com</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hola!!<br>
<br>
Estoy intentando añadir a mi openlayers una capa propia *kml. De momento<br>
quiero hacerlo directamente, sin ningun protocolo wfs, pero algo hago mal q<br>
no me funciona.<br>
He intentado de varias formas pero nada:<br>
<br>
        var termino = "<a href="http://localhost/openlayers/MisCapas/CofPol.kml" target="_blank">http://localhost/openlayers/MisCapas/CofPol.kml</a>";<br>
        var capatermino = new OpenLayers.Layer.GML("KML", termino);<br>
y asi:<br>
<br>
       var termino = "C:/openlayers/MisCapas/CofPol.kml";<br>
       var capatermino = new OpenLayers.Layer.GML("KML", termino);<br>
<br>
Gracias por la ayuda!!!<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506.html</a><br>
Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Spanish mailing list<br>
<a href="http://lists.osgeo.org/mailman/listinfo/spanish" target="_blank">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
<a href="http://es.osgeo.org" target="_blank">http://es.osgeo.org</a><br>
<a href="http://twitter.com/osgeoes" target="_blank">http://twitter.com/osgeoes</a><br>
</blockquote></div><br></div>