Closed baender closed 1 year ago
Ah, yes. That's a bug, it's the type validator that's too strict. However, it won't affect your app in any way (other than raising an error when running in debug mode)
I had the same issue in the debug mode with the hideout argument and the type validator. The problem also occurs with the subdomains argument, when handing a list of subdomains to the TileLayer.
Invalid argument `subdomains` passed into TileLayer.
Expected `string`.
Was supplied type `array`.
Value provided: []
Subdomains code:
dl.TileLayer(url= "...", subdomains=[..., ...])
The Dash debug mode is quite convenient and I would rather not give it up. Maybe there is a way to make the validator less strict or add the allowed types to the validator ... Is it the javascript side validator of the leaflet package?
Should be fixed in 1.0.2
.
When playing around with the interactive GeoJSON example, I stumbled across this error when using
app.run_server(debug=True)
I posted the code here as well but the only change from the example on the website is the debug argument, everything else is identical. Setting the argument to
False
produces the working result.