Comments (2)
If your concern is about using all the physical pixels available on a high dpi device, then this is already in place (see the QgisXYZDataSource
). The pixelRatio
is detected/managed by OpenLayers, multiplied with the default tile size (which is 265px in a xyz source) and also passed to the qgis-js renderXYZTile
-function to be taken into account for symbols and fonts. So on a HighDPI device (window.devicePixelRatio
= 2) one will get 512px (physical pixels) tiles which will be rendered to 256 CSS pixels (the same principle as demonstrated in the High DPI WMTS example)
If your concern is about the amount of parallel renderXYZTile
-function calls, we could also go for a custom and dynamic TileGrid with an increased tile size on large maps. But this would mean that we're not in the commonly used XYZ scheme anymore and that the layer has to be recreated when the map size changes (demonstrated in the WMS 512x256 Tiles example)
We could also try to make the QgisCanvasDataSource
cache the rendered tiles, as demonstrated in the Tiled WMS example.
from qgis-js.
Related Issues (20)
- Make sure labels and symbols do not get cut off in XYZ Tiles mode HOT 5
- Support for FeatureInfo (Identify tool)
- Make map view more responsive (larger map view) - or full-screen mode HOT 1
- Map themes in QGIS should be exposed to the JS API HOT 1
- Viewer in full screen shows with black background
- @qgis-js/utils is not usable for external projects HOT 1
- Layer opacity below 1 results in unwanted graying effect HOT 1
- QGIS layers within layer groups with visibility=false cannot be displayed HOT 2
- Expose QgsLayerTree in the API HOT 2
- Relative SVG files do not render HOT 9
- integrating qgis into expressJs based web application for tiff images HOT 3
- Global Variables not supported HOT 2
- qgis-js/utils - loadLocalProject does not handle promise rejections HOT 2
- qgis-js/utils - loadRemoteProjects cannot handle files in subdirectories HOT 2
- Loading expressions throws RuntimeError HOT 4
- Loading a project fails with RuntimeError: index out of bounds HOT 4
- Can projects ship thier own fonts? HOT 2
- Labels are rendered too small on high DPI devices HOT 4
- Colors in QGIS wasm in chromium look less bright (washed out) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-js.