Mostrar/Ocultar

 Codigo KML de un punto 🗺️ Foro Programación de Google Earth y Maps 🗺️ p84 🗺️


Foro de Programación de Google Earth y Maps Foro de Programación de Google Earth y Maps: Programación con las APIs de Google: Google Earth, Google Maps, KML, Aplicaciones Moviles
SubForos: Kmz - KML
Página 1 de 1 - Tema con 14 Mensajes y 28101 Lecturas
Último Mensaje:
Foro de Programación de Google Earth y Maps Ver más mensajes sobre Codigo KML de un punto en el foro
Autor Mensaje

Eneka
Usuario Habitual

Usuario Habitual
Registrado:
04-07-2009
Mensajes: 43
Visitar sitio web del autor
Votos: 0 👍
Enlaces Re: Codigo KML de un punto
Responder citando
Hola Bezdrum

Como bien has intuido se arregla en kml, si manejas html esto se parece mucho.
Tienes que buscar en el kml la variable

<Style id="msn_ylw-pushpin">
...
...
...
</Style>

Y en medio de estos añadir
<BalloonStyle>
<text><table width="450"><tr><td>$[description]</td></tr></table></text>
</BalloonStyle>


Si tienes muchos
<Style id=....

Y no sabes cual es el que le corresponde, añade <BalloonStyle> a todos los <Style...

Aquí tienes tu Hungaroring resuelto
Toda la info en:http://code.google.com/intl/es/apis/kml/documentation/kmlreference.html#balloonstyle

Salu2
Nk

hungaroring.kml   Google Maps Ver en Google Maps
 Nombre:  hungaroring.kml
 Tamaño:  4.37 KB
 Descargado:  186 veces
Ir arriba Eneka Compartir:

Bezdrum
SuperExpert

SuperExpert
Registrado:
17-02-2011
Mensajes: 463

Votos: 0 👍
Enlaces Re: Codigo KML de un punto
Responder citando
Muchas gracias por tu respuesta, entendí todo y ahora es mejor que antes.
Pero en el menú LUGARES el espacio se queda. Esto es el principal problema.

un poco mejor.jpg   Vista Ampliada Ampliar Imagen
 Tamaño:  38.3 KB
 Visto:  184 veces
Codigo KML de un punto
Codigo KML de un punto
Ir arriba Bezdrum Compartir:

Eneka
Usuario Habitual

Usuario Habitual
Registrado:
04-07-2009
Mensajes: 43
Visitar sitio web del autor
Votos: 0 👍
Enlaces Re: Codigo KML de un punto
Responder citando
Hola Bezdrum

Hay unas lineas de código que te permiten hacer que aparezca o no aparezca en el árbol de lugares, pero que yo entienda el espacio del que hablas corresponde con la descripción del modelo. En el caso concreto como la descripción empieza con una imagen, lo que vemos es un espacio en blanco.

De todas formas como dijo _polifemo si compartes el kml sería más fácil.
No creo que nadie de aquí te robe la idea.

Salu2
Nk
Ir arriba Eneka Compartir:

Bezdrum
SuperExpert

SuperExpert
Registrado:
17-02-2011
Mensajes: 463

Votos: 0 👍
Enlaces Re: Codigo KML de un punto
Responder citando
La idea no es mía... Lo dijo antes. Solo quiero coger algunas partes para usarla.
Code::
<br>
            <p align=center><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/logo_McLaren.jpg"></p>
            <font size=6 color="#999999"><b>The Team</b></font>
            <hr>
            <table border="0"padding="0" width = 500>
            <tr>
            <td width=350 align=left><font size=6><b>Vodafone McLaren Mercedes</b></font></td>
            <td width=150 align=right><b><font size=4><a href="http://www.mclaren.com/">Official Team Website</a></font></b></td>
            </tr>
            <tr>
            <td width=350 align=left><font size=4>Woking, Surrey, UK</font></td>
            <td width=150 align=right><a href="http://en.wikipedia.org/wiki/Team_McLaren"><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_Wiki.jpg"></a></td>
            </tr>
            </table>
            <br>
            <br>
            <font size=6 color="#999999"><b>The Car</b></font>
            <hr>
            <table border="0"padding="0" width = 500>
            <tr>
            <td width=50 align=left></td>
            <td width=550 align=left><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_full_McLaren.png"></td>
            </tr>
            <tr>
            <td width=50 align=right>Engine:</td>
            <td width=550 align=left><b>Mercedes-Benz FO 108W</b></td>
            </tr>
            <tr>
            <td width=50 align=right>Chassis:</td>
            <td width=550 align=left><b>McLaren MP4-24</b></td>
            </tr>
            <tr>
            <td width=50 align=right>Tyres:</td>
            <td width=550 align=left><b>Bridgestone</b></td>
            </tr>
            </table>
            <br>
            <font size=6 color="#999999"><b>The Drivers</b></font>
            <hr>
            <br>
            <table border="0"padding="0" width = 500>
            <tr>
            <td width=30 align=left valign=center><font size=4><b>1</b></font></td>
            <td width=50 align=right valign=center><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_helmet_1.png"></td>
            <td width=150 align=left valign=center><font size=4><b>Lewis Hamilton</b></font></td>
            <td width=70 align=right valign=center><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_Britain.png"></td>
            <td width=50 align=left valign=center><b>Britain</b></td>
            <td width=50 align=left valign=center><a href="http://en.wikipedia.org/wiki/Lewis_Hamilton"><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_Wiki.jpg"></a></td>
            </tr>
            </table>
            <table border="0"padding="0" width = 500>
            <tr>
            <td width=30 align=left valign=center><font size=4><b>2</b></font></td>
            <td width=50 align=right valign=center><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_helmet_2.png"></td>
            <td width=150 align=left valign=center><font size=4><b>Heikki Kovalainen</b></font></td>
            <td width=70 align=right valign=center><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_Finland.png"></td>
            <td width=50 align=left valign=center><b>Finland</b></td>
            <td width=50 align=left valign=center><a href="http://en.wikipedia.org/wiki/Heikki_Kovalainen"><img src="http://TheKMZ.co.uk/ge/kmlfiles/f1_2009/images/ico_Wiki.jpg"></a></td>
            </tr>
            </table>
Esto todo esta escrito el el KML original. Se ve en la imagen que no hay espacio entre los equipos.
KML original también lo pongo.

f1 2009 networkfeed.kml   Google Maps Ver en Google Maps
 Nombre:  f1 2009 networkfeed.kml
 Tamaño:  520 Bytes
 Descargado:  142 veces

el original.jpg   Vista Ampliada Ampliar Imagen
 Tamaño:  31.39 KB
 Visto:  142 veces
Codigo KML de un punto 1
Codigo KML de un punto 1
Ir arriba Bezdrum Compartir:

Eneka
Usuario Habitual

Usuario Habitual
Registrado:
04-07-2009
Mensajes: 43
Visitar sitio web del autor
Votos: 0 👍
Enlaces Re: Codigo KML de un punto
Responder citando
Holas Bezdrum

Estoy trabajando en un proyecto parecido y después de darle varias vueltas, hasta donde yo llego, no hay manera

El lenguaje kml es como un html primitivo (mezclado con xml), con estas referencias
code.google.com/ ...rence.html

La única manera es esconder los botones en una carpeta (Folder id="carpeta"), en kml, con lo cual no aparecerían directamente en la sección de lugares.

Si encuentras la formula avisa, porfa

Salu2
Nk
Ir arriba Eneka Compartir:
Mostrar mensajes de anteriores:   
SubForos: Kmz - KML
 Responder al tema   Versión Imprimible
Todas las horas son GMT + 1 Hora
Página 1 de 1 - Tema con 14 Mensajes y 28101 Lecturas - Última modificación: 10/05/2011




RSS: Foro Programación de Google Earth y Maps RSS - Ultimos Mensajes
Cambiar a:  


Puede publicar nuevos temas en este foro
No puede responder a temas en este foro
No puede editar sus mensajes en este foro
No puede borrar sus mensajes en este foro
No puede votar en encuestas en este foro
No Puedes adjuntar archivos en este foro
Tu puedes descargar archivos en este foro



Mostrar/Ocultar Últimas Fotos del Foro