There is an issue loading icon style from KMZ in the azure-maps-spatial-io package method atlas.io.read(string, options) when the Icon href refers to a local resource in the KMZ zip stream instead of an absolute path. E.g. open the file AL142024_004adv_TRACK.kmz, contains the files:
- al142024_004adv_TRACK.kml
- dPoint.png
The KML contains Style element with IconStyle definition:
<Icon>
<href>dPoint.png</href>
</Icon>
Observing the network tab, the library does generate a fetch of each embedded resource as a data uri i.e. data:image/png;base64,... but in the result SpatialDataSet.icons object is empty. It appears the support is already implemented but there is a bug in returning the result.
Reproducible on samples page https://samples.azuremaps.com/spatial-io-module/drag-and-drop-spatial-files-onto-map by dragging the KMZ file onto the map and observing that point features are not styled with the icon symbol.
What is the process to submit such bug reports? This is a closed source library, else I would be happy to try submit the PR to resolve. I've posted the same bug here https://feedback.azure.com/d365community/idea/8be8c1f5-4985-ef11-9443-6045bdb6b57c