@@ -265,22 +265,22 @@ discard block |
||
| 265 | 265 | var entityid = entity.id; |
| 266 | 266 | var lastupdateentity = entity.properties.lastupdate; |
| 267 | 267 | <?php |
| 268 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
| 269 | - // Remove flights not in latest CZML |
|
| 268 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
| 269 | + // Remove flights not in latest CZML |
|
| 270 | 270 | ?> |
| 271 | 271 | if (lastupdateentity != lastupdate) { |
| 272 | 272 | viewer.dataSources.get(dsn).entities.remove(entity); |
| 273 | 273 | czmlds.entities.removeById(entityid); |
| 274 | 274 | } |
| 275 | 275 | <?php |
| 276 | - } else { |
|
| 276 | + } else { |
|
| 277 | 277 | ?> |
| 278 | 278 | if (parseInt(lastupdateentity) < Math.floor(Date.now()-<?php if (isset($globalMapRefresh)) print $globalMapRefresh*2000; else print '60000'; ?>)) { |
| 279 | 279 | viewer.dataSources.get(dsn).entities.remove(entity); |
| 280 | 280 | czmlds.entities.removeById(entityid); |
| 281 | 281 | } |
| 282 | 282 | <?php |
| 283 | - } |
|
| 283 | + } |
|
| 284 | 284 | ?> |
| 285 | 285 | } |
| 286 | 286 | } |
@@ -718,12 +718,12 @@ discard block |
||
| 718 | 718 | } |
| 719 | 719 | |
| 720 | 720 | <?php |
| 721 | - if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM)) { |
|
| 721 | + if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM)) { |
|
| 722 | 722 | ?> |
| 723 | 723 | update_atcLayer(); |
| 724 | 724 | setInterval(function(){update_atcLayer()},<?php if (isset($globalMapRefresh)) print $globalMapRefresh*1000*2; else print '60000'; ?>); |
| 725 | 725 | <?php |
| 726 | - } |
|
| 726 | + } |
|
| 727 | 727 | ?> |
| 728 | 728 | |
| 729 | 729 | function iconColor(color) { |