Skip to content

Vector overlay#656

Open
baruchInsert-tech wants to merge 52 commits intoCesiumGS:mainfrom
baruchInsert-tech:vector-overlay
Open

Vector overlay#656
baruchInsert-tech wants to merge 52 commits intoCesiumGS:mainfrom
baruchInsert-tech:vector-overlay

Conversation

@baruchInsert-tech
Copy link

@baruchInsert-tech baruchInsert-tech commented Jan 27, 2026

Description

Issue number or link

Author checklist

  • I have submitted a Contributor License Agreement (only needed once).
  • I have done a full self-review of my code.
  • I have updated CHANGES.md with a short summary of my change (for user-facing changes).
  • I have added or updated unit tests to ensure consistent code coverage as necessary.
  • I have updated the documentation as necessary.

Remaining Tasks

Testing plan

@baruchInsert-tech baruchInsert-tech marked this pull request as draft January 27, 2026 08:54
@j9liu
Copy link
Contributor

j9liu commented Jan 30, 2026

Thank you so much for the contribution @baruchInsert-tech! Just to confirm, would you like a review on this PR? I see that it's marked "Draft", so we weren't sure if it was still in progress.

@baruchInsert-tech baruchInsert-tech marked this pull request as ready for review February 1, 2026 07:22
@baruchInsert-tech
Copy link
Author

Thank you so much for the contribution @baruchInsert-tech! Just to confirm, would you like a review on this PR? I see that it's marked "Draft", so we weren't sure if it was still in progress.

Hello!
this PR is ready for review.
Thank you!

@asafMasa
Copy link

asafMasa commented Feb 4, 2026

@j9liu @kring can you please review this PR?

@asafMasa
Copy link

Thank you so much for the contribution @baruchInsert-tech! Just to confirm, would you like a review on this PR? I see that it's marked "Draft", so we weren't sure if it was still in progress.

Hi @j9liu , is there any update on this PR review?
Do you have an estimation when it can be reviewed?
It solves a long standing issue in unity - https://community.cesium.com/t/display-geojson-data-on-map/27125
Thanks.

@j9liu
Copy link
Contributor

j9liu commented Feb 10, 2026

Hi @asafMasa, sorry for the delay. Our team hasn't had bandwidth in the past few weeks, but I definitely want someone to take a look by next week at the latest.

@baruchInsert-tech
Copy link
Author

Thanks @j9liu and @azrogers for picking this up and slotting it into the March release milestone! Looking forward to the review, happy to make any changes needed to get this merged.

@j9liu j9liu self-requested a review February 23, 2026 21:26
Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @baruchInsert-tech, sorry about the delay on this review!

I didn't get to everything today, but I think I got through most of the important parts. It looks like there's a lot of comments but it's mostly cleanup and questions about API design decisions that were made. I'm planning to do a second pass after this first one is addressed!

/// </summary>
/// <param name="url">The URL to load the GeoJSON from.</param>
/// <returns>A task that resolves to the loaded CesiumGeoJsonDocument, or null if loading failed.</returns>
public static async Task<CesiumGeoJsonDocument> LoadFromUrlAsync(string url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an example of how to use this async action? I've only had experience with Unity Coroutines, so I'm a little unfamiliar with using async/await directly. :o

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Unity, you can use async/await directly in MonoBehaviour methods. For example:

async void Start()                                                                                                      
{
      var document = await CesiumGeoJsonDocument.LoadFromUrlAsync("https://example.com/data.geojson");
      if (document != null && document.IsValid())
      {
          var root = document.GetRootObject();
          // Style features, then assign to overlay
          overlay.document = document;
      }
  }

Under the hood, LoadFromUrlAsync wraps the callback-based LoadFromUrl in a TaskCompletionSource, so the await resumes on the main thread once the native async load completes. it works the same as coroutines but with a more concise syntax.

Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @baruchInsert-tech for the quick turnaround! I have another round of feedback but it's mostly cleanup.

Feel free to push additional commits instead of force pushing the branch; it helps us identify the diffs more easily for next time :)

@baruchInsert-tech
Copy link
Author

@j9liu All new comments were addressed and done!
waiting for further instructions

Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @baruchInsert-tech again for the quick changes! This is looking great, Just a few extra pointers:

  1. #665 is merged, so you can remove CesiumColor32 now.
  2. The C++ files need some formatting to pass/run on CI.
  3. The .meta files for the new classes can be pushed to this branch. We include them in our history because it helps with version control and future compatibility issues.

We could probably merge this today once all these points are addressed. Thanks again!

@baruchInsert-tech
Copy link
Author

Thanks @baruchInsert-tech again for the quick changes! This is looking great, Just a few extra pointers:

  1. Make Reinterop skip attributes with 'Ignore' attribute #665 is merged, so you can remove CesiumColor32 now.
  2. The C++ files need some formatting to pass/run on CI.
  3. The .meta files for the new classes can be pushed to this branch. We include them in our history because it helps with version control and future compatibility issues.

We could probably merge this today once all these points are addressed. Thanks again!

@j9liu Ive changed and addressed all of the comments.
(deleted cesiumcolor32, formatted the files and added new meta files and changed the code according to the latest comments)
please let me how can i help to continue with the PR!

Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @baruchInsert-tech, this looks great! I'm just waiting for CI to pass before we merge, but I don't expect there to be any changes you have to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants