Commit Graph

89 Commits

Author SHA1 Message Date
lucien
81f99f1579 Write placemark's ExtendedData tag after Style tag 2019-05-07 09:02:28 +02:00
Frederic Junod
787fd4aa44 Don't dispatch change events when reading features
Based on initial work by https://github.com/Jinkwon
2019-01-15 09:08:15 +01:00
Frederic Junod
d838de32b7 Rework transformWithOptions
Create one function per input/output type: `transformGeometryWithOptions` and `transformExtentWithOptions`.
2018-12-16 08:28:26 +01:00
Frederic Junod
711afac80f Simplify import path in ol/format/ 2018-11-05 16:26:45 +01:00
ahocevar
9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +02:00
Kevin Schmidt
d6b99a5a25 Fix TS error and prevent extra string conversion 2018-10-01 07:29:16 -06:00
Kevin Schmidt
f8d3c8e140 Fix TypeScript errors in ol/format/KML 2018-09-27 13:33:41 -06:00
Frederic Junod
3c52757f3f Remove wrong Geometry type in KML format 2018-09-11 08:45:16 +02:00
Frederic Junod
a6861f5f49 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-06 16:40:29 +02:00
Frederic Junod
ea616e7751 Don't import ourselves 2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6 Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Frederic Junod
20a347b0c9 Use 'Element' type instead of 'Node' 2018-08-31 11:36:16 +02:00
Tim Schaub
affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12 Use Array<Foo> instead of Array.<Foo> 2018-07-25 18:32:43 -07:00
Tim Schaub
6f22f1b7ac Param name on same line as type 2018-07-23 16:28:22 -07:00
ahocevar
a8bd0c5dd7 Use extends and super for format/KML 2018-07-17 16:59:13 +02:00
Frederic Junod
540b1793e7 Move jsdoc constructor comments 2018-07-17 10:20:26 +02:00
Tim Schaub
d0ab8dce38 Lint removal 2018-07-16 17:57:57 -06:00
Tim Schaub
7b4a73f3b9 Automated class transform
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar
ce97cee6a6 Accept polygons and flat coordinates in MultiPolygon constructor 2018-07-07 17:31:35 +02:00
ahocevar
a09b6c91c9 Accept linestrings and flat coordinates in MultiLineString constructor 2018-07-07 17:01:39 +02:00
ahocevar
3871f7785a Accept flat coordinates for MultiPoint constructor 2018-07-07 16:26:24 +02:00
ahocevar
160f1bc286 Accept flat coordinates in LineString constructor 2018-07-07 16:04:43 +02:00
ahocevar
c0d04ea077 Do not accept null coordinates in Point constructor 2018-07-07 14:48:46 +02:00
ahocevar
1da43d90af Allow flat coordinates for Polygon constructor 2018-07-07 14:16:39 +02:00
ahocevar
28409486a5 Make classes in ol/ available as named exports from ol 2018-06-21 18:08:17 +02:00
ThomasG77
cbaa9a7567 Rename defaultDataProjection to dataProjection #8152 2018-06-18 14:08:50 +02:00
Frederic Junod
972781ea9d Better array typing 2018-06-06 16:14:22 +02:00
ahocevar
64e1139230 Fix remaining type issues 2018-05-17 12:29:22 -05:00
Frederic Junod
8684d4f7c6 Shorter module paths for default exports 2018-04-30 13:15:50 +02:00
ahocevar
9bfdf818e4 Rename Style~Function path type to Style~StyleFunction 2018-04-27 09:30:51 +02:00
ahocevar
59d904e509 Fix some types 2018-04-27 09:30:51 +02:00
ahocevar
440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
Frederic Junod
7cbc22fece Module type for ol.style.* 2018-03-27 15:09:52 +02:00
Frederic Junod
041b612fd9 Module type for ol.format.KML 2018-03-23 08:44:21 +01:00
Frederic Junod
06bd5b4423 Module type for ol.format.XMLFeature 2018-03-23 08:44:21 +01:00
Frederic Junod
813faf1ac2 Move KML typedefs out of src/ol/typedefs.js 2018-03-22 16:47:24 +01:00
Frederic Junod
0477f6cfdf Mark optional property with square brackets 2018-03-19 14:31:04 +01:00
Frederic Junod
3edbbf0b46 Module type for ol.Color 2018-03-19 09:25:45 +01:00
Tim Schaub
25da233921 Adjust indent 2018-03-17 14:24:22 -06:00
Frédéric Junod
ba17527d29 Merge pull request #7974 from fredj/cleanup
Fix spelling
2018-03-12 16:10:22 +01:00
Frédéric Junod
74b3db9363 Merge pull request #7973 from fredj/rm_setAttributeNS
Remove setAttributeNS function from ol/xml
2018-03-12 16:02:58 +01:00
Tim Schaub
cf80733e41 Module type for ol/Feature 2018-03-12 08:32:09 -06:00
Tim Schaub
a743ec3989 Module types for ol/proj 2018-03-12 08:32:09 -06:00
Tim Schaub
ef70d71636 Module types for ol/geom 2018-03-12 08:32:09 -06:00
Frederic Junod
35158efbf0 Fix spelling 2018-03-12 15:18:58 +01:00
Frederic Junod
ac3c114477 Remove setAttributeNS function from ol/xml
And create a const for the `XMLSchema-instance` URI
2018-03-12 09:22:20 +01:00
Tim Schaub
458383c7d3 Move Options to ol/format/KML 2018-03-11 22:11:36 -06:00
Tim Schaub
8eaee5618e Move WriteOptions to ol/format/Feature 2018-03-11 15:55:48 -06:00
Tim Schaub
4eb6603af7 Move ReadOptions to ol/format/Feature 2018-03-11 15:51:16 -06:00