Revize f41a4cd3
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/TrackingTool/Upload/GeoJsonIo.ts | ||
---|---|---|
4 | 4 |
|
5 | 5 |
export const exportAsGeoJsonString = (path: PathVariant) => JSON.stringify({ |
6 | 6 |
type: 'FeatureCollection', |
7 |
features: path.filter(item => item.active && isMapPointDisplayable(item)).map((item) => {
|
|
7 |
features: path.filter(item => item.addToPath && isMapPointDisplayable(item)).map((item) => {
|
|
8 | 8 |
const catalogItem = item.catalogItem |
9 | 9 |
return { |
10 | 10 |
type: 'Feature', |
... | ... | |
63 | 63 |
return { |
64 | 64 |
id: generateUuid(), |
65 | 65 |
idx: feature.properties.idx, |
66 |
active: true,
|
|
66 |
addToPath: true,
|
|
67 | 67 |
catalogItem: { |
68 | 68 |
id: catalogItem.id, |
69 | 69 |
name: catalogItem.name, |
Také k dispozici: Unified diff
import menu start
re #9741