Comments (6)
Oh, the parameters
may not be suitable. For example, I need to modify the BBox parameters because I will be performing a coordinate transformation, so supporting customtags
would be convenient for me to rewrite the bbox
from cesium.
I commit a PR for this issue, I really need this change to facilitate my implementation of a feature,Many thanks.
from cesium.
Hi @itancc! Thanks for the interest!
There is a parameters
option which lets you append additional query parameters. Is that sufficient for your use? If not, could you please explain your use case a bit further?
from cesium.
Here is some pseudo-code:
const imageryProvider = new WebMapServiceImageryProvider({
parameters: {
bbox: "{customBBox}",
},
// @ts-ignore
customTags: {
customBBox: (
imageryProvider: ImageryProvider,
x: number,
y: number,
level: number
) => {
const rect = imageryProvider.tilingScheme.tileXYToRectangle(x, y, level);
// here I can do some custom logic, like transforming the bounding box
const customRect = transformBboxFunction(rect);
return `${customRect.west},${customRect.south},${customRect.east},${customRect.north}`
},
},
});
from cesium.
For example, I need to modify the BBox parameters because I will be performing a coordinate transformation,
Thanks @itancc. This may be a bit of an edge case in my opinion. Given that you're re-writing one of the existing parameters, it may be better for you to use UrlTemplateImageryProvider
directly.
from cesium.
I hope to make the most of some optimizations available in the existing WmsMapServiceImageryProvider, such as cache, which I find excellent! If I switch to using UrlTemplateImageryProvider, I might need to rewrite a whole set of code similar to WmsMapServiceImageryProvider. So, it would be convenient if such an option could be provided. Also, this shouldn't be disruptive, right?
from cesium.
Related Issues (20)
- Render polygons according to orientation and kilometers HOT 2
- Add support for glTF KHR_materials_anisotropy extension
- Property Textures refer to all meshes
- InterpolateHeight compute height and returns undefined HOT 2
- Support For PBF HOT 5
- When using polygon to draw an arch, it will collapse. HOT 2
- `scene.pickPosition` not work on `entity.point` HOT 1
- Camera stops working close to ground HOT 3
- Cesium version 1.117, RuntimeError :nFailed to load glTF\nFailed to load vertex buffer\nDraco decoder could not be initialized. HOT 6
- Unable to exclude particle system from scene.sampleHeight HOT 1
- An error occurred while rendering. Rendering has stopped. HOT 5
- When I picked up a 3Dtile, an error occurred HOT 5
- Error: Uncaught (in promise): [object Undefined] HOT 3
- Update CodingGuide with standard styling for compiler directives
- Sourcemap of `Cesium.js` (iife) points to missing source files HOT 2
- Normalization error in image-based lighting
- Add support for glTF KHR_materials_clearcoat extension HOT 1
- GeoJSON Point types don't map correctly in 2D if clampToGround is true HOT 1
- clamp_to_ground doesn't work, point can't clamp to 3dtile HOT 2
- Invalid requests sent out for voxel content HOT 1
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 cesium.