...
There are four parts to the configuration:
Layers
Code Block |
---|
- name: os_raster_road title: os_raster_road sources: [ "chc_os_raster_road" ] |
...
Once these are incorporated into the main configuration file, you can then test it using the MapProxy demo site which should list the layer both in the WMS and WMTS sections. Clicking on the WMTS png
link will bring up an OpenLayers map which uses the specified basemap.
...
Configuring the WMTS Basemap in iShare Studio
Configuring your WMTS basemap for use in iShare is done via iShare Studio and is covered in the following pages:
Increasing the number of
...
Scales for the
...
Basemap
The default scales may not cover the range of scales you wish to provide for your basemap, and MapProxy can help with this. The cache upscale_tiles
as described in the cache documentation can scale tiles up depending on your requirements.
...
This lets MapProxy know that any tiles that cannot be retrieved from the source should be rescaled from the next level up. Please note that this will not happen if there is an error returned from the source, just if the source is limited on what resolutions it can return. Again, please read the documentation for more infoinformation.
Code Block |
---|
sources: src_my_basemap: type: tile grid: grd_my_basemap url: https://mymaps.com/maps/raster/v1/wmts?height=256&width=256&style=default&layer=My_Basemap&version=1.0.0&service=WMTS&Request=GetTile&format=image/png&TileMatrixSet=EPSG:27700&TileMatrix=EPSG:27700:%(z)s&TileRow=%(y)s&TileCol=%(x)s max_res: 0.109375 min_res: 896.0 |
...