digidem / leaflet-bing-layer

Bing Maps Layer for Leaflet v1.0.0
http://digidem.github.io/leaflet-bing-layer/
87 stars 53 forks source link

How to set maxZoom for interpolate after 18 #39

Closed ppKrauss closed 5 years ago

ppKrauss commented 5 years ago

Hi, thanks to offer leaflet-bing-layer, it is great!

I am new here, trying to "zoom in" (by interpolation if not possible more tham 18)...

    var BING_KEY = 'AuhiCJHlGzhg93IqUH_oCpl_-ZUrIE6SPftlyGYUvr9Amx5nzA-WqGcPquyFZl4L'

    var map = L.map('map').setView([1.2862100, 103.8541900], 18)
    map.options.maxZoom = 20;
    map.options.maxNativeZoom = 18;

    var bingLayer = L.tileLayer.bing(BING_KEY).addTo(map)

It is not working (blank image), after 18 (clicking "+")

ppKrauss commented 5 years ago

Hello?

TNLuke commented 5 years ago

I believe there is a previous open issue.

This comment references a workaround but I have not verified.

ppKrauss commented 5 years ago

Thanks @TNLuke (!). Now I am using this clues, https://stackoverflow.com/a/53883145/287948 and it is working fine!