Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pauldendulk
Copy link
Member

@pauldendulk pauldendulk commented Sep 29, 2025

I prefer the simpler ISample interface over the IMapControlSample interface. In this PR I changed it in a few samples where this was immediately possible.

In others I will have to rewrite a bit more. I have an idea of how to do this in the editing samples. In the rasterization samples I would need to send the pixelDensity as part of FetchInfo.

@pauldendulk pauldendulk added the PR type: 🧪 Sample Add or update a sample. label Sep 29, 2025
@pauldendulk pauldendulk requested a review from Copilot September 29, 2025 20:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reworks sample interfaces by migrating from IMapControlSample to ISample interface. The changes streamline the sample architecture by replacing the synchronous Setup method with an asynchronous CreateMapAsync method and eliminating direct dependency on IMapControl.

  • Replaced IMapControlSample interface with ISample interface across multiple sample classes
  • Changed from synchronous Setup(IMapControl) method to asynchronous CreateMapAsync() method
  • Removed direct IMapControl dependencies and updated refresh calls to use event parameters

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
CustomStyleSample.cs Updated interface and method signatures, reorganized field placement
RasterizingTileLayerWithThousandsOfPolygonsSample.cs Migrated to ISample interface with async method pattern
RasterizingTileLayerGeoJsonSample.cs Updated interface and reorganized imports
EditingSample.cs Removed IMapControl field dependency and updated refresh calls to use event map reference

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pauldendulk pauldendulk merged commit 1e777ed into main Sep 30, 2025
5 checks passed
@pauldendulk pauldendulk deleted the sample/interfaces branch September 30, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR type: 🧪 Sample Add or update a sample.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants