Issue in azure-maps-control integration with Dynamics 365 Ecommerce SDK during release build creation
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 :
Upon further inspection and tracing back from the console error, we found it is due to this statement
Which in the minified files becomes like this:
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:
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