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
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
mike-000
e731574e06
Fix disappearing labels when rotation returns to 0
2020-02-20 17:49:05 +00: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
mike-000
1416e30127
Add maxResolution option to createXYZ()
...
include maxResolution in options test
2020-02-17 18:20:50 +00:00
mike-000
fa4fcf3886
add minZoom and maxZoom options
2020-02-17 16:59:40 +00:00
mike-000
4cf093ab75
add minZoom and maxZoom options
2020-02-17 16:58:46 +00:00
mike-000
c5885cc649
add minZoom and maxZoom options
2020-02-17 16:57:00 +00:00
mike-000
d0e439ee80
add minZoom and maxZoom options
2020-02-17 16:55:15 +00:00
mike-000
edb94af314
add minZoom and maxZoom options
2020-02-17 16:53:57 +00:00
mike-000
501546bc44
add minZoom and maxZoom options
2020-02-17 16:52:59 +00:00
mike-000
d102f561f9
add minZoom and maxZoom options
2020-02-17 16:52:12 +00:00
mike-000
265eb5421d
add minZoom and maxZoom options
2020-02-17 16:51:08 +00:00
mike-000
fbaa4da153
add minZoom and maxZoom options
2020-02-17 16:49:47 +00:00
mike-000
3dc4e546bf
add minZoom and maxZoom options
2020-02-17 16:47:55 +00:00
mike-000
2e1e0dba54
document that views must use same projection
2020-02-16 11:11:37 +00:00