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: [email protected] To: [email protected] 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
