Closed ppKrauss closed 5 years ago
Try this:
var bingLayer = L.tileLayer.bing({
bingMapsKey: 'XXX',
imagerySet: 'Road'
});
Thanks! Yes, it was in 2018, after some digging I get the same kind of solution,
const BING_KEY = 'AuhiCJHlGzhg93IqUH_oCpl_-ZUrIE6SPftlyGYUvr9Amx5nzA-WqGcPquyFZl4L'
,MAPBOX_KEY = 'eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'
,MAPBOX_URL = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.';
var attribMapBase = ' <a href="http://www.openstreetmap.com.br/CLP">OSM and CLP</a> contribs | ';
var bing_options = {
bingMapsKey: BING_KEY,
//imagerySet: 'RoadOnDemand',
attribution: attribMapBase+' BING',
culture: 'pt-BR',
maxNativeZoom: 19,
maxZoom: 21 // see https://stackoverflow.com/a/53883145/287948 and https://github.com/digidem/leaflet-bing-layer/issues/39
};
the demo and the
tileLayer.bing(MyBingMapsKey).addTo(map)
example say nothing about how to use options... Please show at README a good example, with standard (e.g. "attribution") and exclusive (e.g. "bingMapsKey" or "culture") parameters.