Commit Graph
100 Commits
Author SHA1 Message Date
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 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 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
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 9d8609dd08 Modify and snap to circle in user coordinates
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference

Test circle geometry in a user projection
2019-12-13 16:40:39 +00:00