/GeoJSON-decoder

geojson 压缩/解压缩工具,使用Mapbox算法压缩path

Primary LanguageHTMLMIT LicenseMIT

geojson-decoder 解压/压缩工具

api

import encoder from 'GeoJSONDecoder';
encoder.encode( {
         "type": "MultiLineString",
         "coordinates": [
             [
                 [100.0, 0.0],
                 [101.0, 1.0]
             ],
             [
                 [102.0, 2.0],
                 [103.0, 3.0]
             ]
         ]
})
encoder.decode({})

注意