dceejay / RedMap

A web map app for Node-RED to put blobs on
Apache License 2.0
107 stars 60 forks source link

BAD DATA when speed is added to data #237

Closed DRazumovskiy closed 8 months ago

DRazumovskiy commented 11 months ago

Hi, I have a similar issue as one reported in Issue #169 with BAD DATA thrown in console when speed is added to payload.

All cases that I tried:

  1. Payload does not contain speed - no errors
  2. Payload contains speed represented by decimal number - BAD DATA in console
  3. Payload contains speed and the value is 0 - BAD DATA in console
  4. After the map is loaded the object is shown with heading marker: image after the first data update the heading marker disappears: image

This is a JSON with speed that causes BAD DATA: {"name":"Maria Pinta","lat":44.001767,"lon":9.685178,"hdg":164,"speed":3.2,"label":"Maria Pinta","icon":"ship","iconColor":"#35ADF8","color":"#44803F","layer":"barche","ricevuto":"0 sec fa","skipper":"Senza skipper"}

This is a JSON without speed that does not cause errors: {"name":"Magialla","lat":44.079665,"lon":9.831423,"hdg":0,"label":"Magialla","icon":"ship","iconColor":"#D8D8D8","color":"#A3A3A2","layer":"barche","ricevuto":"7 min fa","skipper":"Senza skipper"}

Originally posted by @DRazumovskiy in https://github.com/dceejay/RedMap/issues/169#issuecomment-1583156864

dceejay commented 10 months ago

Which version of the node are you using. If I test the payload above that you say fails - it works for me...

image
dceejay commented 8 months ago

Closing as no follow up