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

Custom Styling #33

Closed rpascal closed 6 years ago

rpascal commented 6 years ago

Hello,

I am trying to look into doing custom styling on my map. I know it is possible to do using Bing Maps V8 and REST Services, as shown here https://msdn.microsoft.com/en-us/library/mt823632.aspx. Is it possible to do the same sort of thing here? I have been looking all over and have not been able to find a solution. I know there are the predefined imagerySets but I would like to make something custom if I could. If you know whether or not this is possible that would be very helpful thank you!

gmaclennan commented 6 years ago

I just added this is in v3.3.0, just released

rpascal commented 6 years ago

Thank you for updating but that is not exactly what I meant. Do you know if it is possible to do something similar to image So give the custom styles to the url request (various styles given on this page (page)). That way I could define a custom style outside of the predefined Microsoft imagerySets.

gmaclennan commented 6 years ago

Yes that’s it. Pass one of those style strings as options.style and it should work, but only if you use the options.imagerySet which supports dynamic tiles (the ones that end with onDemand)

gmaclennan commented 6 years ago

Let me know I you have any suggestions for improving the Readme on this. Feel free to edit the readme and submit a PR

rpascal commented 6 years ago

I see it now my apologies! Thank you very much I'll try that tonight!