Commit Graph
100 Commits
Author SHA1 Message Date
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
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 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 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