[Spanish] añadir kml desde localhost

Antonio Santiago asantiagop at gmail.com
Fri May 10 05:01:40 PDT 2013


Hola,
si escribes http://localhost/openlayers/MisCapas/CofPol.kml en tu navegador
te devuelve algo?

Con el codigo que te ha pasado Wladimir deberia funcionarte. Piensa que las
peticiones se hacen via AJAX (por HTTP) asi que tienes que tener tu
servidor bien configurado y tambien definido el PROXY en la configuracion
de OpenLayers.

Saludos y animo


2013/5/10 geodesman <juavafer at hotmail.com>

> muchas gracias!!! ahora el visor me va, me carga la capa en el desplegable
> pero no aparece....
>
> No he instalado ningun protocolo, de momento queria evitarlo a ver si
> conseguia hacerlo directamente. Es por eso q no me aparece??
>
> Date: Fri, 10 May 2013 03:54:06 -0700
> From: ml-node+s1560n5052531h31 at n6.nabble.com
> To: juavafer at hotmail.com
> Subject: Re: añadir kml desde localhost
>
>
>
>         Hola Juanjo,
>
> El OpenLayers.Layer.GML está deprecated. Otra cosa es que un KML no es un
> GML por lo tanto igual no te funcionaria por no son el mismo formato.
>
> Debes usar esta forma para llamar al KML.
>
>
> En el parametro url puedes poner directamente el link a tu recurso
> "/openlayers/MisCapas/CofPol.kml"
>
>
> var kml = new OpenLayers.Layer.Vector("KML", {
>   strategies: [new OpenLayers.Strategy.Fixed()],
>      protocol: new OpenLayers.Protocol.HTTP({
>      url: "http://localhost/openlayers/MisCapas/CofPol.kml",
>
>      format: new OpenLayers.Format.KML({
>      extractStyles: true,
>      extractAttributes: true
>      })
>    })
> });
> map.addLayer(kml);
>
> Saludos,
> Bolo
>
>
>
>
> El 10 de mayo de 2013 12:26, geodesman <[hidden email]> escribió:
>
> se ven bien y casan. las capas wms son el OSM y google streets que aunque
> vienen en 90013 soportan 4326. Y la otra es la orto de  la comunidad
> valenciana q tambien soporta el 4326 asi q por ese lado todo bien. EL kml
> pues en 4326.
>
>
>
>
> estoy convencido en q hago defino mal o el path no lo pongo bien
>
>
>
> Date: Fri, 10 May 2013 03:00:59 -0700
>
> From: [hidden email]
>
> To: [hidden email]
>
> Subject: Re: añadir kml desde localhost
>
>
>
>
>
>
>
>         2013/5/10 geodesman <[hidden email]>:
>
>
>
> > No me muestra ningun error, simplemente no funcioa el visor. Tengo tres
> capas wms añadidas y van perfectamente, pero cuando activo esta ultima
> simplemente el visor se queda en blanco y solo aparece el titulo y el marco.
>
>
>
>
> >
>
>
>
>
>
> Eso tiene toda la pinta de que la capa se muestra, pero en blanco (por
>
>
>
> eso dejan de verse las otras). ¿Has comprobado que las proyecciones
>
>
>
> son las correctas? ¿Has comprobado a poner esas capas WMS con esta
>
>
>
> capa KML en otro visor (qgis, gvsig,...) y ver si se ven bien juntas?
>
>
>
>
>
> > El kml lo he hecho yo y en el GIS y en googleearth lo veo perfectamente
>
>
>
> >
>
>
>
> > Gracias!
>
>
>
> _______________________________________________
>
>
>
> Spanish mailing list
>
>
>
> http://lists.osgeo.org/mailman/listinfo/spanish
>
> http://es.osgeo.org
>
> http://twitter.com/osgeoes
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>                 If you reply to this email, your message will be added to
> the discussion below:
>
>
> http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052520.html
>
>
>
>
>
>
>
>
>                 To unsubscribe from añadir kml desde localhost, click here.
>
>
>
>                 NAML
>
>
>
>
>
>
>
>
>
> --
>
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052527.html
>
>
> Sent from the OSGeo Spanish Local Chapter mailing list archive at
> Nabble.com.
>
> _______________________________________________
>
> Spanish mailing list
>
> http://lists.osgeo.org/mailman/listinfo/spanish
>
> http://es.osgeo.org
>
> http://twitter.com/osgeoes
>
>
>
> --
> Saludos,
>
> Bolo
> www.geoinquiets.cat
>
>
>
> _______________________________________________
>
> Spanish mailing list
>
> http://lists.osgeo.org/mailman/listinfo/spanish
> http://es.osgeo.org
> http://twitter.com/osgeoes
>
>
>
>
>
>
>
>
>
>
>
>                 If you reply to this email, your message will be added to
> the discussion below:
>
> http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052531.html
>
>
>
>                 To unsubscribe from añadir kml desde localhost, click here.
>
>                 NAML
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/a-adir-kml-desde-localhost-tp5052506p5052536.html
> Sent from the OSGeo Spanish Local Chapter mailing list archive at
> Nabble.com.
> _______________________________________________
> Spanish mailing list
> http://lists.osgeo.org/mailman/listinfo/spanish
> http://es.osgeo.org
> http://twitter.com/osgeoes
>



-- 
|----------------------------------------------------------------
| OpenLayers Cookbook: *http://kcy.me/ar2b*
| Web Page: http://www.acuriousanimal.com
| Blog: http://www.acuriousanimal.com/blog
| Twitter: @acanimal <http://twitter.com/#%21/acanimal>
|----------------------------------------------------------------
|   _      __
|  /_)    (_ ` _   _  _)_ o  _   _   _
| / /  o .__) (_( ) ) (_  ( (_( (_( (_)
|                                 _)
|----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/spanish/attachments/20130510/1fc9e3e8/attachment.html>


More information about the Spanish mailing list