WRSC / tracking

WRSC boat tracking system with web dashboard
Other
13 stars 7 forks source link

Add markers: fix coordinate list concatenation #37

Open saerdnaer opened 6 years ago

saerdnaer commented 6 years ago

When saving a polygon to the database, the coordinates are suffixed with to split the individual values. As of now the javascript simply adds a lowerdash () after each value, but it only should use dashes to split the values and not at the end.

as of now:

Latitude: 50.8210729998_50.8222207292_50.8207550.8196023064 Longitude: -1.3146566479299509-1.3128552788100478-1.3105199999999968-1.312321368049993

should be:

Latitude: 50.8210729998_50.8222207292_50.8207550.8196023064 Longitude: -1.3146566479299509-1.3128552788100478-1.3105199999999968-1.312321368049993