Dazzle
Dazzle

Reputation: 3083

Leaflet legend colours not showing in Chrome

In Chrome, this example works for me

http://leafletjs.com/examples/choropleth/

When I apply this code to a custom map and open it with google chrome, the first colour gets applied and then all remaining colours are classed as colour #2. The HTML/CSS is correct, but it is not applying. It works fine on Firefox, Safari & Chrome on mobile, and it even works fine on other people's Chrome, but the legend is not working on my Chrome in development environment (running on VirtualBox) or production.

I have tried deleting cookies, application data and Chrome is up to date and same version but the code is not being applied properly.

What can I try next?

Upvotes: 0

Views: 316

Answers (1)

Wouter van Gils
Wouter van Gils

Reputation: 11

Yes, this worked for me. Turning hardware accelaration off brings back the colorscale in the legend.

Upvotes: 1

Related Questions