On which platform is the getFeatureInfo request constructed using Cesium?

Currently, I am working with Cesium and Angular. I am trying to locate where the request URL is generated for GetFeatureInfo in Cesium, but unfortunately I am unable to find it. My goal is to display feature information when clicking on the map. However, the request being sent is using x and y parameters for coordinates, whereas I would prefer to use i and j instead. Additionally, I am interested in extracting the bbox information from this request for display purposes. If anyone has any insights or suggestions, I would greatly appreciate it! Thank you!

Answer №1

The specific request is made within the function pickFeatures in UrlTemplateImageryProvider.js.

This screenshot captures the call stack in this particular example.

Answer №2

Hey there, big shoutout to @ZhefengJin for the help!

I dug into the UrlTemplateImageryProvider.js as per your suggestion, but unfortunately didn't find the answer I was looking for. However, it did lead me to explore the WebMapServiceImageryProvider.js, where I noticed that x and y coordinates were being set using x={i} and y={j} within the pickFeatureParams. I attempted to add a new parameter in this variable, but couldn't figure out why it wasn't working.

Instead, I decided to include my new parameter in the getFeatureInfoParameters with the same value, assuming that it would also be passed through to the webMapServiceImageryProvider and assigned in a similar manner.

Surprisingly, this approach ended up solving my issue.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How to remove a specific type from a generic type in Typescript without using Exclude<>?

I am looking for a solution to prevent my function from working with Moment objects when storing values in local storage. Currently, the function dynamically stringifies and stores values, but I want to exclude Moment objects from being processed. Here is ...

Having trouble resolving all parameters for the service in an Angular2 test with Jasmine mocking

I am currently attempting to create a mock service for testing purposes: Production: @Injectable() export class UserService extends DtoService { // irrelevant details here. } @Injectable() export abstract class DtoService { constructor(private h ...

Formatting numbers in Angular 2 to include a space every three zeros in a money amount

Let's say I have the number 30000 and I want to format it as 30 000. What method should I use to achieve this? Here are more examples: 300000 -> 300 000, 3000000 -> 3 000 000. Just to clarify, this is not about using dots or commas, but rather reco ...

I'm encountering an Unsupported platform error for Angular installation when using [email protected] Does anyone know how to troubleshoot this issue?

C:\Users\vivek>npm install -g @angular/cli C:\Users\vivek\AppData\Roaming\npm\ng -> C:\Users\vivek\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng npm WARN ...

Is it advisable to encapsulate my entire Express server within a TypeScript class?

After working extensively with nodeJs, I have decided to explore developing applications in Typescript. Recently, I came across various blogs (like this one) that recommend wrapping modules and the app's entry point in a class when creating a RESTful ...

Observables waiting inside one another

I've encountered an issue where I need to return an observable and at times, within that observable, I require a value from another observable. To simplify my problem, let's consider the following code snippet: public dummyStream(): Observabl ...

How to retrieve the value of a variable accessible to all users in Angular?

In my code, I am working with a service variable called Users. Service: Users:BehaviorSubject<Array<any>> = new BehaviorSubject([]); I am updating the values in the component using this code: this.Service.Users.next([...this.Service.User ...

Exploring the DynamoDB List Data Type

Currently, I am working on an angular 8 application where I have chosen to store JSON data in a list data type within DynamoDB. Inserting records and querying the table for data has been smooth sailing so far. However, I have run into some challenges when ...

Mastering Interpolation in React with TypeScript is essential for creating dynamic and interactive UI components. By leveraging the

Incorporating and distributing CSS objects through ChakraUI presents a simple need. Given that everything is inline, it seems the main issue revolves around "& > div". However, one of the TypeScript (TS) errors highlights an unexpected flagging of ...

ng2-auto-complete automatically selects default option on a reactive form

I'm currently integrating https://www.npmjs.com/package/ng2-auto-complete into my Angular 5 application and here's how my input is set up: HTML: <input id="shipper" type="text" class="form-control" for ...

Making an Http Get request in Angular 2 by passing a JSON object

How can I make an HTTP GET request and send a JSON object along with it? Here is the JSON object: {{firstname:"Peter", lastname:"Test"} I want to pass this object in the HTTP request to receive a list of matched persons. Is this possible? The example o ...

The juvenile entity does not align with the foundational entity [typescript]

After setting "strict": true in my tsconfig.json, I encountered compiler errors when attempting to run the code. To replicate and explore this issue further, you can try running the following code snippet. The problem arises when the child clas ...

Combining b2c and b2e integration through Azure Active Directory

Is there an efficient method for combining Azure AD b2c and b2e within an Angular application? Can we provide two separate buttons on the login page and redirect users based on their selection? Alternatively, could social login be utilized, keeping in mi ...

Issue with CanActivateChild not being processed

After logging out and navigating to /, I am facing an issue where the canActivateChild guards are not being executed to redirect to the login page. The main requirement is that none of the application should be accessible without first logging in. Below ...

Exploring PrimeNG's method for expanding and collapsing groups

I'm attempting to incorporate two buttons that can be used to either expand or collapse all the groups in my code utilizing primeNG. Below is the functioning code: PLUNKER <p-dataTable [value]="data" sortField="room" rowGroupMode="subheader" grou ...

Using getters in a template can activate the Angular change detection cycle

When using getters inside templates, it seems that Angular's change detection can get stuck in a loop with the getter being called multiple times. Despite researching similar issues, I have not been able to find a clear solution. Background info: I ...

React's setState is not reflecting the changes made to the reduced array

I am currently working on a custom component that consists of two select lists with buttons to move options from the available list to the selected list. The issue I am facing is that even though the elements are successfully added to the target list, they ...

Can conditional content projection (transclusion) be achieved in Angular 2+?

How can I set default content that will only display if content is not transcluded? Consider the following component template: <article> <header> <ng-content select="[header]"></ng-content> </header> < ...

What steps should I take to establish a one-to-one relationship with legacy tables?

As I work on developing a web application (angular, nestjs, typeorm), I am faced with the challenge of linking two legacy user tables together within our existing system. Despite my efforts, I continue to encounter an error message related to column refere ...

Eliminate a descendant of a juvenile by using the identification of that specific juvenile

Here is the current structure I'm working with: I want to figure out how to eliminate any field that has the id 3Q41X2tKUMUmiDjXL1BJon70l8n2 from all subjects. Is there a way to achieve this efficiently? admin.database().ref('UsersBySubjects&ap ...