Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport master] Set top-left corner coordinate to get pixel perfect render #10553

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
extends: CONST_vars.yaml

vars:
# To use an other SRID you should change:
# - vars.srid
# - vars.alternate_projections
# - vars.resolutions
# - vars.extent
# - vars.tilesOrigin
# - vars.interfaces_config.default.constants.gmfOptions.view.center
# - vars.interfaces_config.default.constants.gmfOptions.wmtsTopLeft
# - vars.interfaces_config.default.constants.gmfVectorTilesOptions.tileGrid.origin
srid: &srid {{cookiecutter.srid}}

main_ogc_server: source for image/png
Expand All @@ -15,6 +24,9 @@ vars:

extent: &extent [2420000, 1030000, 2900000, 1350000]

# Origin of the tiles [left, top]
tilesOrigin: &tilesOrigin [2420000, 1350000]

# The application's default language. This is the language used by
# the application if no specific language is specified in the URLs.
# This also defines the language used for the text search.
Expand All @@ -41,6 +53,8 @@ vars:
resolutions: *resolutions
extent: *extent
geolocalisation: True
# Used to get pixel perfect render on WMTS layers [left, top]
wmtsTopLeft: *tilesOrigin
gmfElevationOptions:
layers: [aster, srtm]
gmfSearchOptions:
Expand All @@ -51,7 +65,7 @@ vars:
projection: EPSG:{srid}
tileGrid:
extent: *extent
origin: [2420000, 1350000]
origin: *tilesOrigin
resolutions: *resolutions
routes:
fulltextsearchUrl:
Expand Down
Loading