ramazanalic / kml-samples

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

Network link does not refresh. #188

Closed GoogleCodeExporter closed 8 years ago

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

Steps to recreate. 
1) Close Google Earth. 
2) Open the network link from windows explorer. 
3) Google Earth will open, the network is displayed and refreshes 
once. 
4) Move around Google Earth, but the link never refreshes again. 
5) However, if you right click the link and select "refresh" the 
network link then behaves normally - it refreshes after motion has 
stopped. 

Using Google Earth version 4.3.7284.3916 (beta)
KML generated using asp.net on IIS 7 server

Sample Network link 
----------------------------- 
The attached example will generate a refresh from any location or 
altitude.  However, if you want to also see data, you need to be zoomed in 
close over the western United States.  For example,  34.449749°, -
118.609749° at a range of 13315m works fine.  

<?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 5 Sep 2008 at 11:34

GoogleCodeExporter commented 8 years ago
If you add "refreshMode" and "refreshInterval" to the "Link" (formerly known 
as "Url") node the view refresh onStop works fine.
You can define a very high interval in "refreshInterval", so actually only the 
onStop refresh will apply.

Original comment by mrtx...@gmail.com on 26 Sep 2008 at 7:58

Attachments:

GoogleCodeExporter commented 8 years ago
Excellent!

This also fixes the related issue #190, "Icons do not display".

<?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:47

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

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

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:12