diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 56c182fe92..9e70ca13be 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish on: push: branches: - - todo-change-to-main + - main jobs: publish-npm: diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index ec25d84b0b..ec0bb3172d 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -1448,7 +1448,7 @@ now specify an `extent` instead of `widths`. These settings are used to restrict }); ``` - See https://openlayers.org/en/main/examples/vector-layer.html for a real example. + See https://openlayers.org/en/latest/examples/vector-layer.html for a real example. Note that you no longer need to set a `projection` on the source! @@ -1470,7 +1470,7 @@ now specify an `extent` instead of `widths`. These settings are used to restrict The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library. - See https://openlayers.org/en/main/examples/igc.html for a real example. + See https://openlayers.org/en/latest/examples/igc.html for a real example. * Note about KML @@ -1528,9 +1528,9 @@ now specify an `extent` instead of `widths`. These settings are used to restrict }); ``` - See https://openlayers.org/en/main/examples/vector-osm.html for a real example. + See https://openlayers.org/en/latest/examples/vector-osm.html for a real example. -* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/main/examples/vector-osm.html for an example. +* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/latest/examples/vector-osm.html for an example. #### Change to `ol.style.Icon` diff --git a/changelog/v3.5.0.md b/changelog/v3.5.0.md index a1d3138a59..d3aaef5c75 100644 --- a/changelog/v3.5.0.md +++ b/changelog/v3.5.0.md @@ -53,7 +53,7 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests }); ``` - See https://openlayers.org/en/main/examples/vector-layer.html for a real example. + See https://openlayers.org/en/latest/examples/vector-layer.html for a real example. Note that you no longer need to set a `projection` on the source! @@ -75,7 +75,7 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library. - See https://openlayers.org/en/main/examples/igc.html for a real example. + See https://openlayers.org/en/latest/examples/igc.html for a real example. * Note about KML @@ -133,9 +133,9 @@ The 3.5.0 release includes features and fixes from a whopping 129 pull requests }); ``` - See https://openlayers.org/en/main/examples/vector-osm.html for a real example. + See https://openlayers.org/en/latest/examples/vector-osm.html for a real example. -* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/main/examples/vector-osm.html for an example. +* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/latest/examples/vector-osm.html for an example. ### Change to `ol.style.Icon` diff --git a/doc/tutorials/raster-reprojection.md b/doc/tutorials/raster-reprojection.md index 5dc3d676d0..b068f45e16 100644 --- a/doc/tutorials/raster-reprojection.md +++ b/doc/tutorials/raster-reprojection.md @@ -39,10 +39,10 @@ var map = new Map({ If a source (based on `ol/source/TileImage` or `ol/source/Image`) has a projection different from the current `ol/View`’s projection then the reprojection happens automatically under the hood. ### Examples -- [Raster reprojection demo](https://openlayers.org/en/main/examples/reprojection.html) -- [OpenStreetMap to WGS84 reprojection](https://openlayers.org/en/main/examples/reprojection-wgs84.html) -- [Reprojection with EPSG.io database search](https://openlayers.org/en/main/examples/reprojection-by-code.html) -- [Image reprojection](https://openlayers.org/en/main/examples/reprojection-image.html) +- [Raster reprojection demo](https://openlayers.org/en/latest/examples/reprojection.html) +- [OpenStreetMap to WGS84 reprojection](https://openlayers.org/en/latest/examples/reprojection-wgs84.html) +- [Reprojection with EPSG.io database search](https://openlayers.org/en/latest/examples/reprojection-by-code.html) +- [Image reprojection](https://openlayers.org/en/latest/examples/reprojection-image.html) ### Custom projection The easiest way to use a custom projection is to add the [Proj4js](http://proj4js.org/) library to your project and then define the projection using a proj4 definition string. It can be installed with @@ -125,7 +125,7 @@ Although this is mathematically correct behavior of the inverse transformation, A possible general solution would be to calculate the forward transformation for every vertex as well - but this would significantly decrease performance (especially for computationally expensive transformations). Therefore a recommended workaround is to define a proper visibility extent on the `ol.layer.Tile` in the view projection. -Setting such a limit is demonstrated in the [reprojection demo example](https://openlayers.org/en/main/examples/reprojection.html). +Setting such a limit is demonstrated in the [reprojection demo example](https://openlayers.org/en/latest/examples/reprojection.html). ### Resolution calculation When determining source tiles to load, the ideal source resolution needs to be calculated.