AzureMapsCodeSamples icon indicating copy to clipboard operation
AzureMapsCodeSamples copied to clipboard

atlas.io.read does not load icons from the kmz file

Open NPalCode opened this issue 2 years ago • 1 comments

Hi, I'm currently attempting to load a KMZ file onto a map. This KMZ file contains a KML file and associated icons. While I can successfully load the KMZ file, the icons within it do not appear as expected. You can see the expected and actual outcomes outlined below. Expected: image Actual: image KMZ file that iam using is attached as text file here. BestTrack.txt

References used:

<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>

I see this behavior when i drag the kmz onto this azure sample app https://samples.azuremaps.com/spatial-io-module/drag-and-drop-spatial-files-onto-map

NPalCode avatar Aug 25 '23 21:08 NPalCode

Very odd. I wrote the original code for that module and I just tested the original version I handed off to the Azure Maps team and it worked, but the current live version in Azure Maps only seems to work with some files. I even tried modifying your KMZ to align with the files that worked and it didn't seem to make a difference. Even odder is the source code in both looks identical. I'll do some more testing to see if I can figure this out.

rbrundritt avatar Aug 29 '23 18:08 rbrundritt