I've been attempting to use assets to display svg icons on my ESRI map. I'm working with Angular9 and the esri js api, trying to add a symbol from a URL.
Locally, the svg appears on the map, but once I build and deploy the project to IIS, it starts looking for the svg in the wrong location.
This is how I'm building: ng build --base-href ./
Deployment at: Https://myserver/gis-ng/
The page for testing and where the map should be visible: Https://myserver/gis-ng/api.html
The svgs are located at:
Https://myserver/gis-ng/assets/icons/*.svg
However, it's searching in:
Https://myserver/assets/icons/*.svg
, which is obviously incorrect.
I tried using --deploy-url, but that didn't resolve the issue.
I'm hoping you can assist me with this problem. Thank you!