shramov / leaflet-plugins

Plugins for Leaflet library
http://psha.org.ru/b/leaflet-plugins.html
MIT License
722 stars 288 forks source link

Is Bing tile working? #139

Closed walterfn2 closed 10 years ago

walterfn2 commented 10 years ago

Hello,

It seems that Bing tile is not working with latest Leaflet. Please check your bing.html.

Thanks

brunob commented 10 years ago

Hi, as far as i know, latest stable version of Leaflet is 0.7.3, and bing script works well with it. Are you talking about this version, or maybe about the 0.8-dev version that is not released ?

walterfn2 commented 10 years ago

Thanks for fast response.

Yes, I'm trying with 0.7.3. It simply shows no map (grey color) once Bing is selected, when I switch to OSM, it shows map without problems.

brunob commented 10 years ago

You should provide a jsfiddle or an example page showing your bug. You can see the script working well here :

http://www.geodiversite.net/spip.php?page=carte

walterfn2 commented 10 years ago

Please check: http://jsfiddle.net/rwjbmqzm/6/

If I change map.addLayer(bing); to map.addLayer(osm); it loads OSM layer and works without issues. Bing layer is not loaded if map.addLayer(bing);

walterfn2 commented 10 years ago

Sorry, please check this: http://jsfiddle.net/rwjbmqzm/8/

brunob commented 10 years ago

Console show me this warning :

Leaflet Bing Plugin Error - Got metadata: Access was denied. You may have entered your credentials incorrectly, or you might not have access to the requested resource or operation.

Are you sure your bing key is valid ? ^^

walterfn2 commented 10 years ago

Oh, this was my key issue... LOL

Thanks a lot!

brunob commented 10 years ago

You're welcome, closing issue ;)

asbajaj001 commented 10 years ago

hi there, where can I find the Leaflet 0.7.3 version that is working for Bing? I neither can see OSM or Bing working. Here is what I did for each of the two versions I downloaded: downloaded the latest version and 1.1.0 and then changed the Bing Maps API key in the bing.html file under examples - no luck, all gray page for both OSM and Bing. Thanks for your help in advance, aditya