UNPKG

polygon-offset

Version:

Polygon offsetting algorithm, aimed for use with leaflet

164 lines (163 loc) 2.66 kB
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "Polygon", "coordinates": [[ [ 114.18707728385925, 22.266574756525035 ], [ 114.18727576732635, 22.26637618044986 ], [ 114.187570810318, 22.266693902034877 ], [ 114.18762981891632, 22.266718724003326 ], [ 114.18781220912933, 22.2665846853214 ], [ 114.18817162513733, 22.266435753301998 ], [ 114.18833792209625, 22.26687758449714 ], [ 114.18824672698975, 22.26690737081966 ], [ 114.18818771839142, 22.266788225491567 ], [ 114.18814480304718, 22.26680808305329 ], [ 114.18817698955536, 22.26687758449714 ], [ 114.18813407421112, 22.26689247765919 ], [ 114.18818235397339, 22.266952050291525 ], [ 114.18812334537506, 22.266991765365663 ], [ 114.18804824352264, 22.266862691333507 ], [ 114.18795168399811, 22.26701162289852 ], [ 114.18813407421112, 22.26718041181389 ], [ 114.18835937976837, 22.26696694344565 ], [ 114.18842375278473, 22.267016587281276 ], [ 114.18805897235869, 22.26739387985647 ], [ 114.18762445449829, 22.267061266718283 ], [ 114.18740451335907, 22.26695701467642 ], [ 114.18745815753937, 22.26690240643301 ] ]] } }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [ 114.18617069721222, 22.2687888606752 ], [ 114.18628334999084, 22.268679645596883 ], [ 114.18651401996613, 22.268317249498995 ], [ 114.18673396110535, 22.26794492376338 ], [ 114.18693244457243, 22.267602383211596 ], [ 114.1867446899414, 22.267488202841317 ], [ 114.1867446899414, 22.267388915487086 ], [ 114.18685734272003, 22.26722012682322 ], [ 114.18712019920349, 22.267249913072813 ], [ 114.18721675872803, 22.267254877447133 ], [ 114.18759226799011, 22.267458416642448 ], [ 114.18716311454773, 22.268183212348312 ] ] } } ] }