Sundsvallskommun / OpenEMap-WebUserInterface

Open eMap user interface for the main map client
GNU Affero General Public License v3.0
4 stars 5 forks source link

DrawPolygon - draws a polygon containing only two points #233

Open anderserla opened 9 years ago

anderserla commented 9 years ago

The following map https://karta.e-tjansteportalen.se/OpenEMap/index.html?permalink=432 contains a invalid polygon in drawLayer: geojson: "{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":"type":"Polygon","coordinates":[[ [582994.432,6921958.0615],[582987.432,6921932.3015],[583020.472,6921909.3415],[583100.272,6921884.1415],[583098.872,6921841.8615],[583115.672,6921843.5415],[583115.952,6921884.4215],[583122.112,6921917.1815],[582994.432,6921958.0615]]]}},{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[ [[583122.112,6921917.1815],[583119.872,6921916.3415],[583122.112,6921917.1815]]]}}]}"