GithubHelp home page GithubHelp logo

dlsyaim / leaflet-tilelayer-baidu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from muyao1987/leaflet-tilelayer-baidugaode

1.0 2.0 0.0 8 KB

leaflet 加载百度瓦片地图图层

JavaScript 100.00%

leaflet-tilelayer-baidu's Introduction

#leaflet加载百度地图

  • leaflet加载百度地图 example:
  var layer = L.tileLayer.baidu({ layer: 'vec' });  //百度电子地图
  var layer = L.tileLayer.baidu({ layer: 'img' });             //百度卫星地图
  var layer = L.tileLayer.baidu({ layer: 'vec',bigfont:true });   //百度电子地图-大字体
  var layer = L.tileLayer.baidu({ layer: 'img', bigfont: true });   //百度卫星地图-大字体 
  var layer = L.tileLayer.baidu({ layer: 'time' }) //实时交通信息
  
  map.addLayer(layer);  
  • leaflet加载互联网常见墨卡托坐标系地图,如天地图、高德、谷歌地图,重点在URL地址 example
高德地图: L.tileLayer('http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'; { subdomains: 1234 });
高德影像: L.layerGroup([
     L.tileLayer('http://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'; { subdomains: 1234 });
     L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=cta_w&X={x}&Y={y}&L={z}'; { subdomains: 1234 })
 ])

 天地图: L.layerGroup([
      L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=vec_w&X={x}&Y={y}&L={z}'; { subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] });
      L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=cva_w&X={x}&Y={y}&L={z}'; {  subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] })
 ]);
 天地图影像: L.layerGroup([
     L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}'; {  subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] });
     L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=cia_w&X={x}&Y={y}&L={z}'; { subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] })
 ]);
 天地图地形: L.layerGroup([
    L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=ter_w&X={x}&Y={y}&L={z}'; { subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] });
    L.tileLayer('http://t{s}.tianditu.cn/DataServer?T=cta_w&X={x}&Y={y}&L={z}'; { subdomains: ['0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'] })
 ]);

 Google地图: L.tileLayer('http://mt1.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile');
 Google影像: L.layerGroup([
     L.tileLayer('http://mt1.google.cn/vt/lyrs=s&hl=zh-CN&gl=CN&x={x}&y={y}&z={z}&s=Gali');
     L.tileLayer('http://mt1.google.cn/vt/imgtp=png32&lyrs=h@207000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galil')
 ]);

leaflet-tilelayer-baidu's People

Contributors

muyao1987 avatar

Stargazers

dlsyaim avatar

Watchers

James Cloos avatar dlsyaim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.