Mostrar/Ocultar

 Codigo KML de un punto en Google Maps 🗺️ k84 🗺️


Foro de Programación de Google Earth y Maps Foro de Programación de Google Earth y Maps: Foro de Programación con las APIs de Google: Google Earth, Google Maps, KML, Aplicaciones Moviles
SubForos: Kmz - KML
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   ( Ver en el Foro)
 Nombre:  hungaroring.kml
 Tamaño:  4.37 KB
 Descargado:  186 veces
Ir arriba 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   ( Ver en el Foro)
 Tamaño:  38.3 KB
 Visto:  184 veces
Codigo KML de un punto
Codigo KML de un punto
Ir arriba 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 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   ( Ver en el Foro)
 Nombre:  f1 2009 networkfeed.kml
 Tamaño:  520 Bytes
 Descargado:  142 veces

el original.jpg   ( Ver en el Foro)
 Tamaño:  31.39 KB
 Visto:  142 veces
Codigo KML de un punto 1
Codigo KML de un punto 1
Ir arriba Compartir:
Mostrar mensajes de anteriores:   
SubForos: Kmz - KML
 Responder al tema   Versión Imprimible
Todas las horas son GMT + 1 Hora




RSS: Foro de Programación de Google Earth y Maps RSS
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