Link to latest instead of main
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user