Closed miya0001 closed 2 years ago
Thanks, @miya0001!
As documented in https://github.com/mapbox/tippecanoe#geojson-extension, tippecanoe
property should be a property of a Feature
.
maxzoom
, minzoom
, and layer
are documented properties of the tippecanoe
property.
I think kata
can simply pass a given object without checking its content.
Dear @miya0001 and @hfu ,
Greetings! I failed to install kata v1.0.3 in docker and found that npm may not be published yet due to some error. https://github.com/unvt/kata/runs/5814451617?check_suite_focus=true
Could you kindly confirm it? Thank you!
コードについてはまだ初心者の域を出られないので見当違いでしたら恐縮ですが、publish npmの際のエラーで、 src/lib/interfaces.ts(1,25): error TS2307: Cannot find module 'GeoJSON' or its corresponding type declarations. というメッセージが出ているところをみると、 https://github.com/unvt/kata/blob/main/src/lib/interfaces.ts#L1 でGeoJSONではなくてgeojsonと小文字で定義した方が良いのでしょうか?(package.jsonをみるとdevDependenciesで types/geojson と小文字で定義されています。)
※ただし、小文字でgeojsonにするとcommand/filter.tsの中でもlet geojson を定義しているので(forループのなかですが)、重複しないか少し気になりました。
Reviewの時に気がつかなくてすみませんでしたが、 @miya0001 さんにご確認いただけると幸いです。よろしくお願いします。
I have confirmed the cause of the error. By changing the "GeoJSON" to "geojson", the tool works fine.
I will make a pull request.
Thank you!
The
tippecanoe
property should be moved from GeoJSON root to each feature's root?Related: #5