I am trying to limit the description of the height of the ball in the following KML for use with Google Maps. In Google Earth, this is accomplished with a div wrapper style element, so the following KML works just fine. However, when using links on Google Maps, the height attribute is removed, which leads to a large balloon when you click on the client.
<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Test Mark</name> <description> <![CDATA[ <div style="height:150px;overflow:auto"> <table> <tr><td>Row 1</td><td>some data</td></tr> <tr><td>Row 2</td><td>some data</td></tr> <tr><td>Row 3</td><td>some data</td></tr> <tr><td>Row 4</td><td>some data</td></tr> <tr><td>Row 5</td><td>some data</td></tr> <tr><td>Row 6</td><td>some data</td></tr> <tr><td>Row 7</td><td>some data</td></tr> <tr><td>Row 8</td><td>some data</td></tr> <tr><td>Row 9</td><td>some data</td></tr> <tr><td>Row 10</td><td>some data</td></tr> <tr><td>Row 11</td><td>some data</td></tr> <tr><td>Row 12</td><td>some data</td></tr> <tr><td>Row 13</td><td>some data</td></tr> <tr><td>Row 14</td><td>some data</td></tr> <tr><td>Row 15</td><td>some data</td></tr> <tr><td>Row 16</td><td>some data</td></tr> <tr><td>Row 17</td><td>some data</td></tr> <tr><td>Row 18</td><td>some data</td></tr> <tr><td>Row 19</td><td>some data</td></tr> <tr><td>Row 20</td><td>some data</td></tr> <tr><td>Row 21</td><td>some data</td></tr> <tr><td>Row 22</td><td>some data</td></tr> <tr><td>Row 23</td><td>some data</td></tr> </table> </div> ]]> </description> <Point> <coordinates>1,23</coordinates> </Point> </Placemark> </kml>
Here 's how KML looks in Google Maps
In my project, it is possible that the tables that I create in the description of the ball can be quite long, so I need to scroll through the contents of the ball.
source share