3

I am using this leaflet plugin to render bing aerial map as a base layer onto a leaflet map.

baseMapUrl = new L.BingLayer(bing_key);
map.addLayer(baseMapUrl);

But I am unable to find a way to render the bing maps with labels. This post describers some of the different bing map options, including "Aerial Map Style with labels"

4

Looking into the plugin there appears you can also pass in options when creating the key. One of the options is called "type" and is set to Aerial by default. That is Bing Maps without labels. To get labels you need to change this to AerialWithLabels. For example:

baseMapUrl = new L.BingLayer(bing_key, {type: 'AerialWithLabels'});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.