Commit Graph
100 Commits
Author SHA1 Message Date
mike-000 342b69fe92 fix prettier 2020-06-18 15:42:48 +01:00
mike-000 64167a5d7e Use condition instead of setActive and listeners 2020-06-18 15:31:33 +01:00
mike-000 3acb0b28de Add condition option 2020-06-18 15:17:55 +01:00
mike-000 e3a89a2e55 test clipping with rotation 2020-06-16 13:24:52 +01:00
mike-000 0747f44e4a test clipping with rotation 2020-06-16 12:29:15 +01:00
mike-000 014f17d14b correct clipping with rotation 2020-06-16 12:20:50 +01:00
mike-000 db074a27e6 correct scalebar box sizing 2020-05-30 12:26:12 +01:00
mike-000 cf0e650435 allow scale to be two dimensional
add getScaleArray() method

test two dimension scale icons
test two dimension scale text

add example of icon and label scaling
use smaller icon and larger interval
test two dimensional scale icons
test two dimensional scale icons
2020-05-20 09:54:47 +01:00
mike-000 9a8b9d8ade add Image source imageSmoothing option
Add Image smoothing checkbox to example

Test imageSmoothing option
2020-05-09 10:41:20 +01:00
mike-000 7f99ce46bb set background fill style for each label
add check for declutter
2020-05-05 16:22:58 +01:00
mike-000 d72c7fdc13 set background fill style for each label 2020-05-05 13:04:25 +01:00
mike-000 960abdbec1 Revert dummy parameter change
fix typo
2020-05-04 17:14:57 +01:00
mike-000 e0047139e1 Revert dummy parameter change 2020-05-04 17:11:16 +01:00
mike-000 c0577c3293 Include context options in reprojection cache key
fix prettier
2020-05-04 16:45:29 +01:00
mike-000 76d2d6e737 Include context options in reprojection cache key
override the inherited getKey() method
2020-05-04 16:27:27 +01:00
mike-000 9e160e75f9 Include context options in reprojection cache key
use reprojection tileCoordKey instead of source key
2020-05-04 14:31:46 +01:00
mike-000 9bf037947c Include context options in reprojection cache key
fix prettier
2020-05-04 12:53:24 +01:00
mike-000 b2a1540ee0 Include context options in reprojection cache key 2020-05-04 12:47:15 +01:00
mike-000 62f150176a add dummy parameter to url to avoid shared cache
fix prettier
2020-05-01 12:28:07 +01:00
mike-000 7a46b3a61a add dummy parameter to url to avoid shared cache 2020-05-01 12:06:38 +01:00
mike-000 bf77f59656 revert change to IMAGE_SMOOTHING_DISABLED 2020-04-30 21:33:00 +01:00
mike-000 8415627731 Test log2 function
use string to test NaN
2020-04-30 19:39:33 +01:00
mike-000 f91e51c28b Test log2 function
fix typo
2020-04-30 19:11:41 +01:00
mike-000 d3507e5c5e replace Math.log2 with log2 from ol/math 2020-04-30 19:07:20 +01:00
mike-000 bce9730644 Test log2 function 2020-04-30 19:03:37 +01:00
mike-000 8076a5126d Add log2 function 2020-04-30 18:44:49 +01:00
mike-000 48e938e235 Define browser specific IMAGE_SMOOTHING_DISABLED
fix prettier
2020-04-30 16:56:02 +01:00
mike-000 3c1e00a3ec Define browser specific IMAGE_SMOOTHING_DISABLED
Avoid msImageSmoothingEnabled if the browser does not need it
2020-04-30 16:49:05 +01:00
mike-000 c515183bad Use explicit test for image smoothing disabled
fix prettier
2020-04-30 16:27:43 +01:00
mike-000 fc2fe25e69 Use explicit test for smoothing disabled 2020-04-30 16:23:39 +01:00
mike-000 3643f9ec98 Use BrokenDiagonalRendering with contextOptions
Apply the BrokenDiagonalRendering processing if opt_contextOptions is set to avoid color distortion along reprojection edges
2020-04-30 13:04:30 +01:00
mike-000 51ad3824e3 correctly close bold font tag 2020-04-30 10:24:59 +01:00
mike-000 6519b54647 fix prettier 2020-04-17 00:08:11 +01:00
mike-000 71b866947f read and set features in custom tileLoadFunction 2020-04-17 00:01:28 +01:00
mike-000 7d2e367fd0 fix prettier 2020-04-16 22:18:40 +01:00
mike-000 25b0cce8ed fix prettier 2020-04-16 22:13:12 +01:00
mike-000 3bac7acb48 Use the tile coordinate as a pseudo URL
Use the unique tile coordinate as a pseudo tile URL instead of a GeoJSON data URL which may not be unique
2020-04-16 21:40:38 +01:00
mike-000 a1dd9cacf7 fix return type 2020-04-04 14:00:20 +01:00
mike-000 fb84426411 use constant for default dpi 2020-04-03 17:17:11 +01:00
mike-000 6aa953b571 base minWidth on default dpi & remove setMinWidth 2020-04-03 17:11:25 +01:00
mike-000 6006fb2c03 base minWidth on default dpi & remove setMinWidth 2020-04-03 17:11:20 +01:00
mike-000 362df3439e update description 2020-04-02 23:51:36 +01:00
mike-000 74ba208c22 test imageSmoothing: false without reprojection 2020-04-02 23:18:10 +01:00
mike-000 dd95d60c2e test imageSmoothing: false without reprojection 2020-04-02 23:17:10 +01:00
mike-000 dfcc649c59 Merge branch 'master' into patch-4 2020-04-02 22:37:36 +01:00
mike-000 f4a3a3bc70 remove prerender context setting 2020-04-02 22:32:30 +01:00
mike-000 5ad788194e remove prerender context setting 2020-04-02 22:30:08 +01:00
mike-000 b866a447c2 assign tile source context options to context 2020-04-02 22:28:09 +01:00
mike-000 5c848ac1b9 make context options available to renderer 2020-04-02 20:10:07 +01:00
mike-000 0ba659b6af make context options available to renderer 2020-04-02 20:09:58 +01:00
mike-000 1cd4d37c45 change option name to imageSmoothing 2020-04-02 18:44:07 +01:00
mike-000 23fe5463fa use dom-to-image-more 2020-04-02 14:59:58 +01:00
mike-000 ab006abf25 use dom-to-image-more 2020-04-02 14:59:57 +01:00
mike-000 b56ca954d5 avoid classname conflict with example template 2020-04-02 14:59:55 +01:00
mike-000 e6658aec1e add domtoimage 2020-04-02 14:59:54 +01:00
mike-000 e2ac566c05 Correct resolution used for scale. Add dpi option.
Also add setDpi and setMinWidth methods

Add Print to scale example
2020-04-02 14:59:54 +01:00
mike-000 82dd764d13 Replace Bing layer with MapTiler 2020-03-31 22:37:51 +01:00
mike-000 7b55fe381e Replace Bing layer with MapTiler 2020-03-31 22:36:07 +01:00
mike-000 3c0ff15414 Cap Longitudes and replace Bing with MapTiler 2020-03-31 22:32:02 +01:00
mike-000 bfca3cf713 change loader check back to equal extents 2020-03-31 17:00:12 +01:00
mike-000 929b9f4068 change loader check back to equal extents 2020-03-31 16:55:23 +01:00
mike-000 149ca7efad return previous extent if extents are approx equal 2020-03-31 16:26:30 +01:00
mike-000 2c7f58dbed remove unused import 2020-03-31 16:03:14 +02:00
mike-000 6013763480 replace containsExtent with equals in strategy 2020-03-31 16:03:14 +02:00
mike-000 99a1641afe remove duplication 2020-03-31 16:03:13 +02:00
mike-000 e3ad05f805 Include center at right edge in calculations 2020-03-31 16:03:13 +02:00
mike-000 660845f5b8 Include center at right edge in calculations 2020-03-31 16:03:13 +02:00
mike-000 48b79cf7d1 only use one extent if two are passed 2020-03-31 16:03:12 +02:00
mike-000 3d8495742b Simplify following renderer changes 2020-03-31 16:03:11 +02:00
mike-000 0c9324f398 Test extents passed to loader 2020-03-31 16:03:10 +02:00
mike-000 67c37c2163 Test extents passed to loader 2020-03-31 16:03:10 +02:00
mike-000 3b760dc308 Use getLoadWrapX() to determine extent to load 2020-03-31 16:03:10 +02:00
mike-000 b560dab513 Set loadWrapX: false in source 2020-03-31 16:03:09 +02:00
mike-000 f6bbf414a8 Add loadWrapX option and getter 2020-03-31 16:03:09 +02:00
mike-000 f6ede1a9c0 handle wrapX without calculating excess meridians
override extent validation only if the extent includes parts of two worlds
2020-03-31 16:03:08 +02:00
mike-000 516a75ae22 Always load frameState extent for graticule layers
reorder and comment
2020-03-31 16:03:08 +02:00
mike-000 bad0ff38ca handle wrapX without calculating excess meridians
avoid calculating more meridians or longer parallels than necessary when viewport extent includes a wrapped world
2020-03-31 16:03:08 +02:00
mike-000 772741cd0e Always load frameState extent for graticule layers
do not call graticule loader with wrapped projection extent
2020-03-31 16:03:06 +02:00
mike-000 c3d9ac6265 Fix description 2020-03-25 12:55:57 +00:00
mike-000 874b850d76 Merge branch 'master' into patch-4 2020-03-11 17:10:03 +00:00
mike-000 4ca966bd92 show labels in wrapped worlds
test labels in wrapped world
2020-03-11 16:06:31 +00:00
mike-000 7c22b5a238 Improve the calculation of projection extent
fix quotes
2020-03-09 16:09:07 +00:00
mike-000 230c6b011e Improve the calculation of projection extent
Add show graticule option
2020-03-09 15:24:01 +00:00
mike-000 6019a61cca Add show graticule option 2020-03-09 14:54:24 +00:00
mike-000 9d0b139432 Ensure example opens at correct zoom
wrapX: false not needed for consistency with OL5
2020-03-05 17:41:33 +00:00
mike-000 408eac2524 Replace Bing layer with MapTiler 2020-03-05 15:27:18 +00:00
mike-000 737c30fedc Replace Bing layer with MapTiler 2020-03-05 15:25:48 +00:00
mike-000 c4d864ed45 Replace Bing layer with MapTiler 2020-03-05 15:21:11 +00:00
mike-000 315db526c9 Replace Bing layer with MapTiler 2020-03-05 15:17:34 +00:00
mike-000 ce6d7bd55c Fix "Cannot read property 'anchor' of undefined"
replace unnecessary filter with for loop and break
2020-02-29 10:12:48 +00:00
mike-000 5ba978311e Fix "Cannot read property 'anchor' of undefined" 2020-02-28 21:47:22 +00:00
mike-000 7af9697b40 Merge branch 'master' into patch-4 2020-02-28 12:20:06 +00:00
mike-000 203f557883 Ensure example opens at correct zoom
Set multiWorld: true so view opens at zoom 2 on wide displays
Set wrapX false on source
2020-02-27 20:53:58 +00:00
mike-000 b8e34ef5bf rename some variables and add comments 2020-02-27 19:12:40 +00:00
mike-000 ac2b58c554 test using extra stops for extent transform
correct coordinate order
2020-02-27 12:19:31 +00:00
mike-000 633396e7df test using extra stops for extent transform 2020-02-27 12:12:57 +00:00
mike-000 591e5ce01b More validation. Handle voids in some projections.
Handle NaN latitude transform results at void centers of some projections (e.g. Pole LAEA).
Clamp latitudes to not go beyond the poles when calculating intervals.
Further improve polar projections by checking if extent contains max and min intersection coordinates when calculating max and min.
2020-02-26 22:17:49 +00: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
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