mstahv / v-leaflet

Leaflet add-on for Vaadin
Other
43 stars 38 forks source link

Treat jtsPolyLine as linestring instead of as polygon #169

Closed basisbit closed 6 years ago

basisbit commented 6 years ago

In JTS the class LinearRing extends LineString, but in v-leaflet any LinearRing will be converted to a Polygon and JTSUtil.toLinearRing only accepts LPolygon. I don't see any reasons why the mapping should be done differently in v-leaflet then it is done in JTS.

mstahv commented 6 years ago

Thanks, looks good to me!