So for the development of my app I've been using Esri's basemap. I wanted to switch to bing. This is my import as i saw in another question asked here.

import 'leaflet-bing-layer';

Then this is in my ngOnInit? The map loads fine but none of the other types besides the default Aerial will show up? Any ideas

L.tileLayer.bing('key', {
      type: 'Road'
    }
).addTo(this.map);
  • I was able to switch it to 'Road' by editing the index.js file in the node modules. Will update if I found a way to edit in my component.ts – Petey Nov 8 at 8:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.