Issue in azure-maps-control integration with Dynamics 365 Ecommerce SDK during release build creation

Nandhini Rajavel 0 Reputation points Microsoft Employee
2025-01-30T11:55:18.7266667+00:00

Upon integrating azure-maps-control package with our D365 Ecommerce Online repository, we are facing issues in the release build where the map is not rendering properly and we see console errors such as : User's image

Upon further inspection and tracing back from the console error, we found it is due to this statement
User's image

Which in the minified files becomes like this:
User's image

To mitigate this issue in every file where ever this positionedLines attribute is added inside the shaping object, I modified the object like this in all the instances both in .js and .min.js files as follows:
User's image

User's image

The release build worked without issues after I modified the code like this. However while this can serve as a temporary mitigation, it is not a permanent solution for our D365 Ecommerce customers who are migrating from bing maps to azure maps currently. As I mentioned above the changes are minimal and does not alter the functionality of the module. We request azure maps team to help us on this by giving us a permanent solution by releasing a patch with the above changes where we dont have to use patch package and modify our release pack scripts everytime the customer wants to generate a release build. I would be happy to have a discussion over call to explain the issue further if need be. Thanks

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
780 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.