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
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
mike-000
f48a1a5f26
remove overlay and html-to-image
2020-02-14 19:49:17 +00:00
mike-000
16e46ea2c0
load polyfill before example specific scripts
2020-02-14 12:15:52 +00:00
mike-000
0b893f11d3
Fix IE compatibility. Add opacity handling.
...
querySelectorAll().forEach() isn't supported by IE.
Add opacity to the vector layer and handle it in the output.
2020-02-13 18:13:07 +00:00
mike-000
f302b5883e
Update jspdf version
2020-02-13 18:06:02 +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
4ce3b3fed1
Show name labels for points in MultiGeometry
2020-02-05 23:18:54 +00:00
mike-000
319b64ed65
Fix for #10611
2020-02-05 20:17:18 +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
e820042748
Fix ol/layer/Graticule rendercomplete problem
...
fix typedef imports
2020-01-26 14:04:05 +00:00
mike-000
a7bdee43b3
Fix ol/layer/Graticule rendercomplete problem
...
Use custom loading strategy to avoid problems caused by calling removeLoadedExtent in the loader function
2020-01-26 13:51:11 +00:00
mike-000
96ebacca1f
Replace Bing layer with MapTiler
2020-01-24 16:34:43 +00:00
mike-000
a9e738c919
Replace Bing layer with MapTiler
2020-01-24 16:33:34 +00:00
mike-000
c9c616bd6f
Replace Bing layer with MapTiler
2020-01-24 16:31:08 +00:00
mike-000
1eac18f94a
Replace Bing layer with MapTiler
2020-01-24 15:51:41 +00:00
mike-000
e11db6de44
Replace Bing layer with MapTiler
2020-01-24 15:49:08 +00:00
mike-000
5830a36131
Convert any html character codes in labels
...
fix typedef
2020-01-20 10:37:04 +00:00
mike-000
83d65b61e1
Convert any html character codes in labels
...
fix typedef
2020-01-20 10:30:44 +00:00
mike-000
c221cc7a46
Convert any html character codes in labels
...
reuse single textarea element
2020-01-20 10:24:57 +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
23858dc09d
Convert any html character codes in labels
2020-01-19 11:28:05 +00:00
mike-000
9493d68217
Make feature styles compatible with declutter
...
Remove type def relating to deleted line
2020-01-18 20:19:56 +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
258bfeaecc
Make feature styles compatible with declutter
...
Return a single style object for image and text for point features as concatenating two styles in an array is not compatible with decluttering
2020-01-18 19:37:18 +00:00
mike-000
3ac33ee723
Replace Bing layer with MapTiler
2020-01-17 21:53:52 +00:00
mike-000
62cd0cbcc9
Replace Bing layer with MapTiler
2020-01-17 21:47:32 +00:00
mike-000
0512c690f8
Fix for reset north when rotation is 360 degrees
...
Animated reset north doesn't work and isn't needed if rotation is 360 degrees (or a multiple of 360)
2020-01-10 13:39:29 +00:00
mike-000
cb665b7ea7
Simplify to return false if layer has no source
2020-01-06 17:31:38 +00:00
mike-000
5b1df4438d
Fix for undefined source in Image layer
...
Prevent error if layer does not have a source. Also clear any existing image if source is set to null or undefined by setSource.
2020-01-01 22:04:10 +00:00
mike-000
f48704cac4
Fix for undefined source in Vector layer
...
A source left or set undefined is equivalent to an empty source so treat it as such to prevent errors in prepareFrame
2020-01-01 21:04:12 +00:00
mike-000
caefe8c85b
Disable image smoothing for the DEM source
2019-12-18 20:49:44 +00:00
mike-000
977b89c99d
Disable image smoothing for the DEM source
2019-12-18 20:40:20 +00:00
mike-000
3bf1931f39
Replace Bing layer with MapTiler
2019-12-15 16:15:51 +00:00
mike-000
122140e9f0
Replace Bing layer with MapTiler
2019-12-15 16:04:46 +00:00
mike-000
ab8e80fc98
Control button span element pointer events
...
Prevent pointer events on span elements within control buttons
2019-12-14 13:47:05 +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
f13ebbee3f
Add crossOrigin option for icons
...
Add * @this {KML} to functions invoked using .call
2019-12-12 17:21:14 +00:00
mike-000
2e544cb677
Circles and custom geometry in user coordinates
...
Pass the view projection to the geometry function so circles and other custom geometry can be given the expected shape/size in the view while being defined in user coordinates.
Add tests to draw circles in a user projection and along both axes
Draw regular polygon in a user projection
Draw box in a user projection
2019-12-10 19:47:37 +00:00
mike-000
35b2a92c10
Include Transform typedef in API
2019-12-05 12:06:03 +00:00
mike-000
2790d50660
Adjust for layer canvas rotation
...
replace missed lines
2019-12-04 23:47:12 +00:00
mike-000
b4ae4ab86f
Adjust for layer canvas rotation
2019-12-04 23:08:29 +00:00
mike-000
aaae50e689
Adjust for layer canvas pixel ratio and rotation
2019-12-04 23:04:44 +00:00
mike-000
10f9a70d5f
Adjust for layer canvas pixel ratio and rotation
2019-12-04 22:59:16 +00:00
mike-000
aaebab2831
Replace Bing layer with MapTiler
2019-12-02 16:40:16 +00:00
mike-000
28818e5b4e
Replace Bing layers with MapTiler
2019-11-26 17:06:14 +00:00
mike-000
8865f22020
Fix trailing space
2019-11-20 18:28:59 +00:00
mike-000
fb7060a4d0
Update tile grid option descriptions
...
In version 6 coordinate increase downwards. Revise the description for "sizes" to better distinguish zoom level and overall grid extents. Remove reference to the "widths" options which was deprecated over 4 years ago.
2019-11-20 18:15:31 +00:00
mike-000
c3153075b2
Update tile grid option descriptions
...
In version 6 coordinate increase downwards. Add a description for "sizes"
2019-11-20 18:02:42 +00:00
mike-000
4fb301e3e5
Fix codesandbox error
...
src="" is not needed and causes an error when the example is opened in codesandbox
2019-11-12 16:38:14 +00:00
mike-000
cf72a649cc
Replace BNG layer source
...
The MapTiler MiniScale source used for the BNG layer is no longer working. The data continues to be available via ESRI UK https://www.arcgis.com/home/item.html?id=5b5ff94ca7414a26b75e0d337a023d38
2019-11-08 15:52:39 +00:00
mike-000
ad6d91b9ae
Treat hsl/hsla as named colors
...
hsl/hsla values produce an assertion error in fromStringInternal_ This simplest solution is to treat them as named colors.
2019-10-25 13:31:18 +01: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
mike-000
ce8b63a67e
Open default attributions links in new tab/window
2019-10-23 12:10:55 +01:00
mike-000
6b25f713cd
Open default attributions links in new tab/window
2019-10-23 12:08:40 +01:00
mike-000
4b79818797
Open default attributions links in new tab/window
2019-10-23 12:03:01 +01:00
mike-000
110c17cf9e
Remove label style caches
2019-10-22 12:04:06 +01:00
mike-000
7edd10d66f
Test that label text is set in styles
2019-10-21 16:00:54 +01:00
mike-000
2b1417df3f
Revise the description of applyTransform
...
Revise the description of applyTransform and transformFn (loosely based on that used in ol/extent) to avoid any misunderstanding that the function is called inside a forEach method.
2019-10-16 13:59:38 +01:00
mike-000
937f7f613e
Resolve constraints using anchor
...
Resolve constraints using anchor if view state is the result of cancelling an animation with anchor
2019-10-12 21:13:34 +01:00
mike-000
046b78cca7
Document the OSM crossOrigin default
2019-10-11 18:16:19 +01:00
mike-000
2a2cc40d42
Correct the defaulting of maxZoom
...
Only default if undefined as maxZoom: 0 should be valid as it is for all other tile sources
2019-10-10 14:08:10 +01:00