emilhe / dash-leaflet

MIT License
213 stars 37 forks source link

Google Map API Key #230

Open Krowryy opened 6 months ago

Krowryy commented 6 months ago

Hello !

I’m adding Google maps layers to my application via this layout:

dl.TileLayer(url="https://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}")

That works, but it is illegal. I would prefer to pass my API key to the Google maps server, and hit their API instead of a server directly, so I can be legal and not hit my use limit.

Is there currently a way of doing that via configuration?

Thanks