Just to verify, you created a custom component that uses Bing Maps Web SDK directly and it loads initially, then somehow is being cleared.
- Is the map still visible and just the pins missing, or is the map not displayed either?
- If the map is not displayed, inspect the DOM elements to see if it is still loaded and have width/height. It's possible the map was resized to a zero width/height for some reason.
If you are just adding pins to a map, have you considered using the built in map component for Power Apps: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/geospatial-component-map