Commit Graph

434 Commits

Author SHA1 Message Date
Niels Meijer 63d03f4fcc Split test WMTS capabilities 2020-05-03 10:54:01 +02:00
Niels Meijer 9cab1215c0 Use TileMatrixSetLimit for extent calculation when available. 2020-04-29 16:35:36 +02:00
Niels Meijer d395b54605 Apply projection.getMetersPerUnit() to calculated resolution 2020-04-28 21:43:59 +02:00
Tim Schaub 054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod 6522e6a17f Pass the id field name as a new param 2020-04-03 07:52:51 +02:00
Andreas Hocevar 2401e0af00 Merge pull request #10646 from mike-000/patch-1
Write fill and outline in KML PolyStyle
2020-03-31 23:22:15 +02:00
Andreas Hocevar 0366bca7c1 Merge pull request #10822 from lysek/master
parsing color from IconStyle in KML files
2020-03-27 11:31:49 +01:00
Mateusz Łoskot 98e8bec370 Calculate tile grid extent from extent of bottom-level tile matrix
Prefers extent derived from the tile matrix set in the capabilities
over default projection extent.
2020-03-26 19:17:32 +01:00
Jiri Lysek 2b6e767840 encoding color into KML 2020-03-23 10:10:12 +01:00
Jiri Lysek d5b3d27e62 parsing color from IconStyle in KML files 2020-03-19 13:02:53 +01:00
mike-000 7a77793d69 Write fill and outline in PolyStyle
Write styles based on style objects appropriate for geometry.
Write fill and outline in PolyStyle if false (i.e. non-default)
Handle MultiLineString, MultiPoint and MultiPolygon within heterogenous MultiGeometry when writing features

Add getGeometriesArrayRecursive method to ol/geom/GeometryCollection to allow for nested MultiGeometry

Enhanced write GeometryCollection geometries test

A more rigorous write GeometryCollection geometries test including nested collections (the output is simplified to a single MultiGeomtry)

Add writeFeatures to outline and fill tests, setting geometry for geometry specific tests

Add <fill>0</fill> and <outline>0</outline> to some existing tests
2020-02-12 21:18:57 +00:00
mike-000 47a4a63e3e Test name labels for points in MultiGeometry 2020-02-05 23:51:48 +00:00
mike-000 0fb4b62b9b Test name labels for points in MultiGeometry 2020-02-05 23:26:11 +00:00
mike-000 3c2dfb511a Fix Polystyle outline 0 conflict with Linestyle
Return separate style objects for polygon geometries (including multipolygon and polygons in geometry collections) and other geometries if Polystyle outline is defined as 0
Rearrange code to reduce cloning of styles in createNameStyleFunction

Update Polystyle outline 0 tests
Check for separate style objects applying to LineString and Polygon geometries
Test LineString and Polygon geometries in a collection
2020-02-02 11:28:07 +00:00
mike-000 e2b42c100f Include html character code in text style test 2020-01-19 12:02:16 +00:00
mike-000 bf23dca068 Include html character code in text style test 2020-01-19 11:42:59 +00:00
mike-000 730008cfad Make feature styles compatible with declutter
Update expected result to single style object to reflect change
Remove duplicated test
2020-01-18 20:00:09 +00:00
mike-000 6596a988c0 Add crossOrigin option for icons
Avoid unnecessary tests by using only one test for the default icon crossOrigin,.  In other cases ensure that the specified option is set.
2019-12-12 17:50:50 +00:00
mike-000 f47fa8b407 Add crossOrigin option for icons
Make the crossOrigin setting for icons configurable to avoid errors when KML files reference images when are not CORS enabled
Pass scope in readPlacemark_
and to handle IconStyle in a placemark style map

Test crossOrigin option for icons
Add tests for IconStyle in style maps and shared styles
2019-10-24 11:04:47 +01:00
ahocevar 6252e92555 Make this a non-breaking change 2019-08-08 13:23:03 +02:00
Kai Volland bebd7b6b26 Changes to parsing of KML displayName
To avoid loss of information the behaviour
of parsing the displayName (if a name attribute is
also given) is changed.
2019-08-08 13:14:39 +02:00
Michael Parry a8e31dddee FIx #9510: EsriJSON readGeometry should not mutate input 2019-07-14 18:56:49 +02:00
Lutz Helm 018a7e2753 Remove superfluous comma 2019-07-02 13:50:29 +02:00
Lutz Helm 0507132a21 Correct and test IIIF version 3 image info parser 2019-07-02 13:21:09 +02:00
Lutz Helm cc976dd4ad Adjust IIIF info parsing to 3.0-beta spec
- respect `preferredFormats`
- correct compliance level profile formats and features
2019-07-01 17:51:52 +02:00
Tim Schaub 08c494dd11 Allow an arbitrary tag to be used as feature id 2019-06-24 12:01:12 -06:00
ahocevar 76f44efbb6 Add support for tile pixels to feature formats 2019-06-14 14:28:37 +02:00
Andreas Hocevar 1fc75fdc68 Merge pull request #9500 from edellucien/kml_extended_data
KML string validation with extendedData
2019-05-16 09:20:03 +02:00
Lutz Helm c2cbae95c6 Fix codestyle in IIIFInfo tests 2019-05-09 18:00:18 +02:00
Lutz Helm b36ad87cb5 Extend IIIFInfo tests 2019-05-09 18:00:18 +02:00
Lutz Helm 7bfaa3b6ad Refactor IIIFInfo and add tests 2019-05-09 18:00:18 +02:00
lucien 81f99f1579 Write placemark's ExtendedData tag after Style tag 2019-05-07 09:02:28 +02:00
ahocevar b2722542fe Simplify vector tile projection handling 2019-03-10 09:37:58 +01:00
Niels Charlier 594a921598 Enable parsing complex features 2018-10-16 08:26:41 +02:00
NielsCharlier 2005c82dd2 add GML3.2 format 2018-10-16 08:26:41 +02:00
NielsCharlier 6252404d5b Fix GML Format featureMember tag 2018-10-16 08:25:53 +02:00
Matthias Schiffer 321166849b Consistently use lowercase HTML tag names
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
ahocevar 95533bef66 Fix WKT geometry type lookup and tests 2018-07-18 15:40:39 +02:00
Frederic Junod 6006a9d9b5 Allow unprefixed WMTS tileMatrix identifiers
`ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet` fails when tileMatrix identifiers
are not prefixed by their tileMatrixSet identifier.

Original code by @filipheymans
2018-04-19 11:48:42 +02:00
Tim Schaub 2abc524147 Named exports from ol/format/xsd 2018-02-19 09:58:50 -07:00
Nicholas L 7097b530f3 Rename extent 2018-02-19 20:33:03 +13:00
Frederic Junod 48bb187075 Add named export for WFS.writeFilter function 2018-02-14 11:12:56 +01:00
Tim Schaub 881caec464 Merge pull request #7814 from tschaub/unstatic-private
Remove more private static members
2018-02-12 05:55:53 -07:00
Tim Schaub 7383371d58 Remove private static members from MVT format 2018-02-11 11:19:20 -07:00
Frederic Junod 276d6a5dc5 Remove ol.FeatureStyleFunction support 2018-02-11 17:52:46 +01:00
Tim Schaub 099cd21c5b Remove private static members from KML format 2018-02-10 10:11:55 -07:00
Tim Schaub c6d19c431d Rename _ol_format_GML_ to GML 2018-02-08 11:52:43 -07:00
raiyni 4449da3e63 named exports from ol/xml 2018-02-07 14:42:01 -06:00
Marc Jansen 7f6780b7fb Use named exports from filter module 2018-02-06 07:47:54 +01:00
Frederic Junod 106fe3c138 Rename _ol_format_WMTSCapabilities_ to WMTSCapabilities 2018-01-15 10:26:36 +01:00