Commit Graph

27863 Commits

Author SHA1 Message Date
Andreas Hocevar 59f14eaa2e Merge pull request #10738 from ahocevar/textbackground-declutter
Fix text background decluttering
2020-02-26 14:47:25 +01:00
Andreas Hocevar a03cfa35ed Store copies of background points for decluttering 2020-02-26 13:30:00 +01:00
mike-000 adcf57ef20 Better validation to handle polar projections
For some projections (e.g. polar) the maximum or minimum values may be at the center.
To improve the display for polar projections take validated center values into account when calculating max and min.
2020-02-25 13:47:02 +00:00
Maximilian Kroeg b25fc6741e Add tests for ol/source/Cluster~Cluster#setSource 2020-02-25 11:15:56 +01:00
Maximilian Kroeg 01b3f9a97b Allow cluster source to unlisten from its source
This adds a setSource method to change or remove the cluster source's source.
2020-02-25 10:33:02 +01:00
mike-000 9039e2629b fix trailing space 2020-02-24 21:57:22 +00:00
mike-000 737f3a5066 Handle view projections crossing dateline
Use custom toLonLat transform to return wrapped longitudes for extents if view projection crosses the dateline.
Enhance the validation for center and extents to avoid proj4 errors.
2020-02-24 21:53:53 +00:00
Andreas Hocevar e02ede8f76 Merge pull request #10725 from openlayers/dependabot/npm_and_yarn/elm-pep-1.0.6
Bump elm-pep from 1.0.4 to 1.0.6
2020-02-24 11:45:51 +01:00
Frédéric Junod 58ef1ab166 Merge pull request #10726 from openlayers/dependabot/npm_and_yarn/sinon-9.0.0
Bump sinon from 8.1.1 to 9.0.0
2020-02-24 09:17:30 +01:00
dependabot-preview[bot] 89b5adc601 Bump sinon from 8.1.1 to 9.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 8.1.1 to 9.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v8.1.1...v9.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 08:07:24 +00:00
dependabot-preview[bot] c987b1f1b0 Bump elm-pep from 1.0.4 to 1.0.6
Bumps [elm-pep](https://github.com/ahocevar/elm-pep) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/ahocevar/elm-pep/releases)
- [Commits](https://github.com/ahocevar/elm-pep/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 08:06:23 +00:00
mike-000 6ae6d0b835 Optional extra stops to refine extent transforms
Add optional extra stops to refine some non-parallel transforms

Refine extent transforms use by Gratucule by using 32 points (8 per side) instead of the standard corners only transform
Update Graticule class description with current limitations

Correct projection extent in Mollweide example and revise opening zoom level correspondingly
2020-02-23 19:13:06 +00:00
Maximilian Krög c2505f938e Remove measuring code 2020-02-22 14:30:44 +01:00
Maximilian Krög 6b9a35b7b9 Always sort top level matches before member matches 2020-02-22 14:30:25 +01:00
Maximilian Krög df8c0f3e6f Avoid deprecated jquery :eq selector 2020-02-22 01:07:43 +01:00
Maximilian Krög bf2a7bd21a Allow toggel on whole title, add toggle transition 2020-02-22 01:07:41 +01:00
Maximilian Krög ee8ec6f03a Shorter css paths in navigation 2020-02-21 22:58:05 +01:00
Maximilian Krög b46b250d75 On toggle when searching show unfiltered instead of hiding all 2020-02-21 22:58:05 +01:00
Maximilian Krög 2dec296aae Use css to show / hide items; track matched items
... to improve search speed.

Instead of marking all items as hidden, and then marking the matched
ones again, this keeps track of all matched items and only
removes those that no longer match and adds those that previously did
not match.
2020-02-21 22:57:53 +01:00
Maximilian Krög 646ecfd405 Weight function prefer classes over modules 2020-02-21 22:56:54 +01:00
Maximilian Krög 99d9a9ff86 Use strict mode 2020-02-21 22:56:54 +01:00
Maximilian Krög 15beb1f2c6 Put more weight on the base name 2020-02-21 22:56:53 +01:00
Maximilian Krög b613e8e77f Fix regex dot escape 2020-02-21 22:56:53 +01:00
Maximilian Krög ccafb4b91d Improved weight function.
++++ Full match from start to end
+++  Full match between word boundaries
++   Begin matches at word boundary, multiple matches are better
+    Matches somewhere

Classes with (multiple) members matching at the beginning are
weighted higher.
2020-02-21 22:56:51 +01:00
Maximilian Krög 1b4ed08bc5 Indent line-wrapped class names 2020-02-21 22:55:32 +01:00
Maximilian Krög cc561dab8e Allow word wrap before '.' and '~' in class names 2020-02-21 22:55:32 +01:00
Maximilian Krög 8b857eed26 Change prettyname of classes
Now also includes the class name if it is different than its module name.
`ol/source/Vector` -> `ol/source/Vector~VectorSource`.
2020-02-21 22:55:32 +01:00
Maximilian Krög 7640bcd163 Only match the displayed name of items when searching
Currently the search term is matched against the longname of members.
Because of this most members are matched when searching for a
class / module and also searching for 'mod' matches everything as
all longnames start with 'module:'
2020-02-21 22:55:32 +01:00
Maximilian Krög d3b9b25429 Search if the search input is not empty after page loads
Firefox remembers input on the same page if a normal reload is performed.
In this case the results for the search term should be shown automatically.
2020-02-21 22:55:32 +01:00
Maximilian Krög f7871d6103 Store search data in lowercase and compare in lowercase
This way we can do the search case-sensitive after only converting
the search term to lowercase.
2020-02-21 22:55:32 +01:00
Maximilian Krög b9455bfad9 Remove unnecessary / duplicate code. 2020-02-21 22:55:31 +01:00
Maximilian Krög 2b8582fcad Catch errors when search term is an invalid regular expression
On error search escape special characters, with only '.' matching
any characters.
2020-02-21 22:50:57 +01:00
Maximilian Krög d56513b722 Add code to measure search function speed 2020-02-21 22:50:57 +01:00
Maximilian Krög 99ecce2a87 Provide the searchTerm as argument to doSearch function 2020-02-21 22:50:57 +01:00
Maximilian Krög b919074aa3 Skip searches when typing fast / slow cpu. 2020-02-21 22:50:57 +01:00
Maximilian Krög 6187118166 Hide member-lists, show current item when clearing input 2020-02-21 22:50:57 +01:00
Maximilian Krög f5a996a64e Highlight current anchor with css instead of js.
The `:target` selector is supported by all browsers.
2020-02-21 22:50:57 +01:00
Andreas Hocevar 05d3386995 Merge pull request #10715 from mike-000/patch-8
Fix disappearing graticule labels when rotation returns to 0
2020-02-20 21:21:17 +01:00
mike-000 e731574e06 Fix disappearing labels when rotation returns to 0 2020-02-20 17:49:05 +00:00
Andreas Hocevar c20e5bf58a Merge pull request #10713 from mike-000/patch-7
Draw graticule labels in a postrender function
2020-02-20 17:10:08 +01:00
mike-000 59142f800c Draw labels in a postrender function 2020-02-20 15:50:10 +00:00
mike-000 bc2c49165e Draw labels in a postrender function 2020-02-20 15:39:08 +00:00
mike-000 00275f1a67 Draw labels in a postrender function 2020-02-20 15:25:32 +00:00
mike-000 3558dbe235 Draw labels in a postrender function 2020-02-20 14:43:48 +00:00
mike-000 a74d33dafb Draw labels in a postrender function 2020-02-20 14:12:37 +00:00
mike-000 c28793ae04 Draw labels in a postrender function
Position labels relative to the viewport when view is rotated
2020-02-20 13:31:41 +00:00
Andreas Hocevar 4a11bcccbb Merge pull request #10711 from ahocevar/optional-args
Make sure that optional args are typed accordingly
2020-02-20 12:50:48 +01:00
Andreas Hocevar 608d515f1f Make sure that optional args are typed accordingly 2020-02-20 12:39:31 +01:00
Andreas Hocevar ef63644211 Merge pull request #10710 from ahocevar/fix-stylefunction-type
Fix stylefunction return type
2020-02-20 12:35:52 +01:00
Andreas Hocevar 6b9791eeed Fix stylefunction return type 2020-02-20 11:47:42 +01:00