We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48fa44e + afc097f commit 71817afCopy full SHA for 71817af
tabs/gps.js
@@ -229,8 +229,8 @@ TABS.gps.initialize = function (callback) {
229
var feature = mapHandler.forEachFeatureAtPixel(mapHandler.getEventPixel(evt.originalEvent), function(feature, layer) {
230
return feature;
231
});
232
-
233
- if (feature) {
+
+ if (feature && feature.get('data') && feature.get('name')) {
234
TABS.gps.toolboxAdsbVehicle.setContent(
235
`icao: <strong>` + feature.get('name') + `</strong><br />`
236
+ `lat: <strong>`+ (feature.get('data').lat / 10000000) + `</strong><br />`
0 commit comments