Problems loading kml file with many entities.

Hi,

1. Is there a way to load kml asynchronously, so the screen won't freeze while parsing it?

2. I'm trying to load a kml file with over 3000 entities, but the process crushes after a few seconds and get the following error: 'glDrawElemenstInstancedANGLE: attempt to access out of range vertices in attribute 1'. I should say that it works fine with smaller amount of entities.
The kml file is just 3000 placemarks in positions - [(0,0),(0.01,0.01),(0.02,0.02),....,(29.99,29.99)], like this:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Style id="GroundStation">
      <BalloonStyle>
        <text>
          <![CDATA[<table style='color:white'><tr><td><b>Type</b></td><td>\[Role\]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Status&lt;/b&gt;&lt;/td&gt;&lt;td&gt;[Status]</td></tr><tr><td><b>Country</b></td><td>$[Country]</td></tr></table><div style='position:absolute; right:0; bottom:0;'><a href="http://www.agi.com"><img style='height:24px;' src='http://www.agi.com/images/layout/agi-logo-top2.gif'/></a></div>]]>
        </text>
        <bgColor>#ff673005</bgColor>
        <textColor>#ffffffff</textColor>
      </BalloonStyle>
      <IconStyle>
        <Icon>
          <href>GroundStation.png</href>
        </Icon>
      </IconStyle>
    </Style>
    <Placemark>
      <name>MACRES Ground Receiving Station</name>
      <styleUrl>#GroundStation</styleUrl>
      <Point>
        <coordinates>0,0</coordinates>
      </Point>
      <ExtendedData>
        <Data name="Role">
          <value>Ground Station</value>
        </Data>
        <Data name="Status">
          <value>Active</value>
        </Data>
        <Data name="Country">
          <value>Malaysia</value>
        </Data>
      </ExtendedData>
    </Placemark>
    <Placemark>
      <name>MACRES Ground Receiving Station</name>
      <styleUrl>#GroundStation</styleUrl>
      <Point>
        <coordinates>0.01,0.01</coordinates>
      </Point>
      <ExtendedData>
        <Data name="Role">
          <value>Ground Station</value>
        </Data>
        <Data name="Status">
          <value>Active</value>
        </Data>
        <Data name="Country">
          <value>Malaysia</value>
        </Data>
      </ExtendedData>
    </Placemark>
    <Placemark>
      <name>MACRES Ground Receiving Station</name>
      <styleUrl>#GroundStation</styleUrl>
      <Point>
        <coordinates>0.02,0.02</coordinates>
      </Point>
      <ExtendedData>
        <Data name="Role">
          <value>Ground Station</value>
        </Data>
        <Data name="Status">
          <value>Active</value>
        </Data>
        <Data name="Country">
          <value>Malaysia</value>
        </Data>
      </ExtendedData>
    </Placemark>
    <!--
    .
    .
    .
    .
    .
    -->
    <Placemark>
      <name>MACRES Ground Receiving Station</name>
      <styleUrl>#GroundStation</styleUrl>
      <Point>
        <coordinates>29.99.,29.99</coordinates>
      </Point>
      <ExtendedData>
        <Data name="Role">
          <value>Ground Station</value>
        </Data>
        <Data name="Status">
          <value>Active</value>
        </Data>
        <Data name="Country">
          <value>Malaysia</value>
        </Data>
      </ExtendedData>
    </Placemark>
  </Document>
</kml>

Hi there,

This doesn’t sound like a size/performance issue, as we’re regularly able to handle 3000 placemarks or more. I would guess that there’s something irregular about your kml file – I would recommend double-checking it.

Thanks,

  • Rachel