ramazanalic / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Icons do not display #190

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Happens if Google Earth is open when network link is opened. 

This is the opposite of issue #188.  #188 talks about what happens if a 
network link is opened when Google Earth is CLOSED.  This issue talks 
about what happens if a network link is opened when Google Earth is OPEN.

Steps to recreate 
1) Open Google Earth. 
2) For the attached example to show data, you need to be zoomed in 
close.  For example,  34.449749°, -118.609749° at a range of 13315m 
works fine. 
2) Open the network link, either from the Google Earth menu or from 
windows explorer. 
3) Do not move the mouse.  Repeat - Keep your hands off the mouse! 
4) The link opens, the polygons are displayed, but the icons are not 
displayed. 
5) Move the mouse. 
6) The icons are displayed. 

Using Google Earth 4.3.7284.3916 (beta)
On Vista
KML generated by asp.net on IIS7

Sample Network link 
----------------------------- 
This is the same code sample as issue #188

<?xml version="1.0" encoding="UTF-8"?> 
<kml xmlns="http://earth.google.com/kml/2.2"> 
  <NetworkLink> 
    <name>Earth Point Townships</name> 
    <description><![CDATA[Zoom in so that 2,000 or fewer townships are 
in view.<br><br>Source: <a target='_blank' href='http:// 
www.geocommunicator.gov/GeoComm/lsis_home/home/index.shtm'>BLM</a><br><br>&
copy;2008 
Earth Point<br><a target='_blank' href='http:// 
www.earthpoint.us'>www.earthpoint.us</a><br><br>For illustration only. 
User to verify all information. <a target='_blank' href='http:// 
www.earthpoint.us'>www.earthpoint.us</a>]]></description> 
    <refreshVisibility>1</refreshVisibility> 
    <Url> 
      <href>http://www.earthpoint.us/Default.aspx? 
RequestID=125163x02877444&amp;</href> 
      <viewRefreshMode>onStop</viewRefreshMode> 
      <viewRefreshTime>5</viewRefreshTime> 
      <viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth], 
[lookatLon],[lookatLat],[lookatRange],[lookatTilt],[lookatHeading]</ 
viewFormat> 
    </Url> 
  </NetworkLink> 
</kml> 

Original issue reported on code.google.com by bill.cl...@earthpoint.us on 6 Sep 2008 at 12:22

GoogleCodeExporter commented 8 years ago
The fix reported by mrtxema for issue #189, "Network link does not refresh" 
also 
fixes the issue here.

Need to add both refreshMode onInterval and a large refreshInterval to the 
network 
link.

<?xml version="1.0" encoding="UTF-8"?> 
<kml xmlns="http://earth.google.com/kml/2.2"> 
  <NetworkLink> 
    <name>Earth Point Townships</name> 
    <description><![CDATA[Zoom in so that 2,000 or fewer townships are 
in view.<br><br>Source: <a target='_blank' href='http:// 
www.geocommunicator.gov/GeoComm/lsis_home/home/index.shtm'>BLM</a><br><br>&
copy;2008 
Earth Point<br><a target='_blank' href='http:// 
www.earthpoint.us'>www.earthpoint.us</a><br><br>For illustration only. 
User to verify all information. <a target='_blank' href='http:// 
www.earthpoint.us'>www.earthpoint.us</a>]]></description> 
    <refreshVisibility>1</refreshVisibility> 
    <Url> 
      <href>http://www.earthpoint.us/Default.aspx? 
RequestID=125163x02877444&</href> 

      <refreshMode>onInterval</refreshMode>
      <refreshInterval>9999</refreshInterval>

      <viewRefreshMode>onStop</viewRefreshMode> 
      <viewRefreshTime>5</viewRefreshTime> 
      <viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth], 
[lookatLon],[lookatLat],[lookatRange],[lookatTilt],[lookatHeading]</ 
viewFormat> 
    </Url> 
  </NetworkLink> 
</kml>

Original comment by bill.cl...@earthpoint.us on 26 Sep 2008 at 2:48

GoogleCodeExporter commented 8 years ago
My fix is reported at issue #188

Original comment by mrtx...@gmail.com on 29 Sep 2008 at 8:58

GoogleCodeExporter commented 8 years ago
Marking fixed, see posted workarounds.

Original comment by api.roman.public@gmail.com on 1 Oct 2008 at 9:27

GoogleCodeExporter commented 8 years ago
Update: This problem also exists if viewRefreshMode is onRequest.  The above 
workaround does not fix the problem.

Original comment by bill.cl...@earthpoint.us on 2 Oct 2008 at 7:11