Skip to content

Map: OSM provider - Add route calculation and rendering - #35108

Open
AlisherAmonulloev wants to merge 6 commits into
feature/26_2_osm-provider-for-dxmap/mainfrom
feature/26_2_osm-provider-for-dxmap/route-calculation-and-rendering
Open

Map: OSM provider - Add route calculation and rendering#35108
AlisherAmonulloev wants to merge 6 commits into
feature/26_2_osm-provider-for-dxmap/mainfrom
feature/26_2_osm-provider-for-dxmap/route-calculation-and-rendering

Conversation

@AlisherAmonulloev

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Failed route calculations currently create phantom routes and fire misleading route-added events.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds callback-driven OSM route calculation and OpenLayers vector rendering, including projection-aware bounds and antimeridian handling.

Changes:

  • Adds route parsing, rendering, styling, lifecycle handling, and viewport fitting.
  • Registers required OpenLayers vector APIs.
  • Expands unit tests, mocks, and Storybook coverage.
File summaries
File Description
osmTests.js Tests OSM route behavior and lifecycle.
openLayersMock.js Mocks vector layers, features, geometry, and styles.
openlayers.register.js Registers OpenLayers vector dependencies.
provider.dynamic.osm.ts Implements route calculation and provider integration.
provider.dynamic.osm.test.ts Tests route-aware bounds.
provider.dynamic.osm.route.ts Parses routes and normalizes longitudes.
provider.dynamic.osm.route.test.ts Tests route parsing and longitude handling.
provider.dynamic.osm.openlayers.utils.ts Extends OpenLayers interfaces and validation.
provider.dynamic.osm.openlayers.utils.test.ts Updates API validation fixtures.
provider.dynamic.osm.openlayers.ts Renders and disposes vector routes.
provider.dynamic.osm.engine.ts Adds route contracts to the engine API.
routes.ts Provides static Storybook route data.
OSMMap.stories.tsx Demonstrates configurable OSM routes.
Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/devextreme/js/__internal/ui/map/provider.dynamic.osm.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Remove-only updates leave auto-adjusted viewports stale, and missing routing configuration can produce duplicate warnings.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread packages/devextreme/js/__internal/ui/map/provider.dynamic.osm.ts
Comment thread packages/devextreme/js/__internal/ui/map/provider.dynamic.osm.ts
@AlisherAmonulloev
AlisherAmonulloev marked this pull request as ready for review September 9, 2026 11:04
@AlisherAmonulloev
AlisherAmonulloev requested a review from a team as a code owner September 9, 2026 11:04
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.

2 participants