This object is in archive! 

BUG: Network Link KML points moving together with a moving screen

elmuSSo shared this problem 11 years ago
Solved

When points read from Network KML are being refreshed and a user will move a screen with a finger, a showed points are not staying at their coordinates, but they are moving with a screen.


HOW TO RECREATE: Find a Network link with big refreshing rate (eg. 3 seconds), find some points that will be refreshed soon, tap a screen and start moving it around for some time ( so the screen will be constantly in a move)

Replies (14)

photo
0

Happens here too, nicely visible with gyntas buddy tracking. When you scroll the map with "unfortunate" timing, the buddys wander all over the place as if by magic :). Positions will be "fixed" by next kml refresh or by zooming the map.

photo
0

Yep, i discovered too.


The buddypoint makes a small move but it was marginal and i had no panic. ;)


because as joeloc wrote: after zoom/refresh it`s fine.


Please mark this tiny "bug" as "to do later" :)

photo
0

If this is happening during time of reloading/refreshing a link, maybe it would a nice idea to erase the old content only when a new will be fully downloaded and ready to display? Sometimes all my online points are disappearing for a while (what should not happen, because this not happen in Google Earth)

photo
1

Ping?

photo
1

It's very difficult to check without your source files because kml networklink works for me.

Only the label wasn't refreshed.

See attached clip.

photo
1

above example:kml file in Locus/mapitems:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <kml xmlns="http://www.opengis.net/kml/2.2">
  3. <NetworkLink>
  4. <name>Menion Pull POI</name>
  5. <flyToView>1</flyToView>
  6. <Link>
  7. <href>http://MYSITE.COM/menion.php</href>;
  8. <refreshMode>onInterval</refreshMode>
  9. <refreshInterval>10</refreshInterval>
  10. </Link>
  11. </NetworkLink>
  12. </kml>

...link to this php file from server:

  1. <?php
  2. //random coords for praha
  3. $d = (time() & 15) / 20000.0;
  4. $lat = 14.440000 + $d;
  5. $lng = 50.064000 + $d;
  6. $mytimestamp = date('l jS \of F Y h:i:s A');
  7. //build the kml
  8. $kml = array('<?xml version="1.0" encoding="UTF-8"?>');
  9. $kml[] = '';
  10. $kml[] = '<Document>';
  11. $kml[] = '<Style id="myicon">';
  12. $kml[] = '<IconStyle>';
  13. $kml[] = 'http://MYSITE.COM/img/userimg/menion.png;';
  14. $kml[] = '<hotSpot x="0.5" y="0" xunits="fraction" yunits="fraction" />';
  15. $kml[] = '</IconStyle>';
  16. $kml[] = '</Style>';
  17. $kml[] = '<Placemark id="Menion">';
  18. $kml[] = '<name>Menion</name>';
  19. $kml[] = '<description><![CDATA[<hr>'.$mytimestamp.'<br>sightseeing tour<br>praha 2014<hr>]]></description>';
  20. $kml[] = '<styleUrl>myicon</styleUrl>';
  21. $kml[] = '<Point>';
  22. $kml[] = '<coordinates>'.$lat.','.$lng.'</coordinates>';
  23. $kml[] = '</Point>';
  24. $kml[] = '</Placemark>';
  25. $kml[] = '</Document>';
  26. $kml[] = '</kml>';
  27. //output the kml
  28. $kmlOutput = join("\n", $kml);
  29. header('Content-type: application/vnd.google-earth.kml+xml');
  30. echo $kmlOutput;
  31. ?>

photo
1

kml in Locus:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <kml xmlns="http://earth.google.com/kml/2.2">
  3. <NetworkLink>
  4. <name>Refresher</name>
  5. <visibility>1</visibility>
  6. <Link>
  7. <refreshMode>onInterval</refreshMode>
  8. <refreshInterval>5</refreshInterval>
  9. <href>https://melda.ru/velobike/VeloBikes-Data.kmz</href>;
  10. </Link>
  11. </NetworkLink>
  12. </kml>

Static kml on server: https://files.melda.ru/hidden/locus-actions/VeloBikes.kml


Video: https://files.melda.ru/hidden/MVI_2583.mp4

photo
1

Evgeny, you bring to light very old problem. It require quite a lot of work and some major changes in system of work with items on a map.


Because this problem is mainly visible in handling of network link (generally everything that dynamically change on map over time, so probably also OSM notes and some others), but it's not so huge problem and because I want to release new version in the end of week, I added this to my TODO list for next version with high priority. And I'll look at it during next week and let you know here. Thanks

photo
1

Is this future major changes in system also make possible to hide automatically all networklinked POIs when I turn off (in "Items" window) original local KML?

(for example, when you turn off kml in example above, you must use "Remove temp map items" to hide POIs. And that is little boring :)

photo
1

Understand. This is not directly connected to issue we talk about, but I'll try to look at it. Maybe it will be more simpler then it looks :)

photo
1

Ping?

photo
1

Hello guys,


quite old problem. Does anyone currently use any KML Network link that may test with latest beta version? From my experience this issue should be finally solved.

photo
1

Last beta (3.16.2.10) doesn't refresh NetworkLink with <refreshMode>onInterval</refreshMode><refreshInterval>5</refreshInterval> at all :(

photo
1

Ah thanks!! Fixed

photo
1

Now it's ok!


Solved.

photo
1

Perfect, thank you Evgeny!

Replies have been locked on this page!