• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iTowns / itowns / 10635241580

30 Aug 2024 03:26PM UTC coverage: 86.966% (-2.8%) from 89.766%
10635241580

push

github

jailln
feat(3dtiles): add new OGC3DTilesLayer using 3d-tiles-renderer-js

Deprecate C3DTilesLayer (replaced by OGC3DTilesLayer).
Add new iGLTFLoader that loads gltf 1.0 and 2.0 files.

2791 of 3694 branches covered (75.55%)

Branch coverage included in aggregate %.

480 of 644 new or added lines in 8 files covered. (74.53%)

2144 existing lines in 111 files now uncovered.

24319 of 27479 relevant lines covered (88.5%)

1024.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/src/Parser/KMLParser.js
1
import { kml } from '@tmcw/togeojson';
1✔
2
import GeoJsonParser from 'Parser/GeoJsonParser';
1✔
3
import { deprecatedParsingOptionsToNewOne } from 'Core/Deprecated/Undeprecator';
1✔
4

1✔
5
/**
1✔
6
 * The KMLParser module provides a [parse]{@link module:KMLParser.parse}
1✔
7
 * method that takes a KML in and gives an object formatted for iTowns
1✔
8
 * containing all necessary informations to display this KML.
1✔
9
 *
1✔
10
 * @module KMLParser
1✔
11
 */
1✔
12
export default {
1✔
13
    /**
1✔
14
     * Parse a KML file content and return a [FeatureCollection]{@link
1✔
15
     * module:GeoJsonParser~FeatureCollection}.
1✔
16
     *
1✔
17
     * @param {XMLDocument} kmlFile - The KML file content to parse.
1✔
18
     * @param {ParsingOptions} options - Options controlling the parsing.
1✔
19
     *
1✔
20
     * @return {Promise} A promise resolving with a [FeatureCollection]{@link
1✔
21
     * module:GeoJsonParser~FeatureCollection}.
1✔
22
     */
1✔
23
    parse(kmlFile, options) {
1✔
24
        options = deprecatedParsingOptionsToNewOne(options);
×
UNCOV
25
        return GeoJsonParser.parse(kml(kmlFile), options);
×
UNCOV
26
    },
×
27
};
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc