Leaflet Map API with Google Satellite Layer

前端 未结 6 1989
刺人心
刺人心 2020-12-02 04:53

I\'m very interested in the Leaflet Map API.

However, I need to be able to use the Google Satellite Layer. I have not been able to find an example on how to add a Go

6条回答
  •  渐次进展
    2020-12-02 05:36

    Google title layer with Traffic

    var googleTraffic = L.tileLayer('https://{s}.google.com/vt/lyrs=m@221097413,traffic&x={x}&y={y}&z={z}', {
            maxZoom: 20,
            minZoom: 2,
            subdomains: ['mt0', 'mt1', 'mt2', 'mt3'],
        });
    

    Please see their General Terms

    Hope someone helps this

提交回复
热议问题