I'm stuck with something simple. I'm trying to draw a multilinestring from a GeoJSON file in a Leaflet map. I've taken the GeoJSON data from an application (built with OpenLayers + GeoServer), which is not mine, but the path I want to draw is exactly the same, so those coordinates serve my purpose.
First thing I don't understand is what are all those numbers that appear after longitude and latitude:
{"type":"MultiLineString","coordinates":[[[17.64145777,40.50170982,0],[4.42581744,11.11602236,4519487.27618627],[4.51125612,0,1232693.68416716],[42.92545724,0,0],
If I use the GeoJSON as it is, it shows strange results. See it here: https://codepen.io/Kata3890/pen/gOdmdRq
I tried to get rid of those numbers and use only the long/lat coordinates:
"type":"MultiLineString",
"coordinates":[
[
[
17.64145777,
40.50170982
],
[
17.64256586,
40.50200452
],
but then again the result is a bunch of crossing lines and gaps in the line when I zoom the map: See it here: https://codepen.io/Kata3890/pen/yLxMxPJ
What is wrong here?