All Projects → muyao1987 → Leaflet Tilelayer Baidugaode

muyao1987 / Leaflet Tilelayer Baidugaode

leaflet 加载百度瓦片地图图层 以及高德 、天地图等国内常用地图

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Leaflet Tilelayer Baidugaode

Tieba sign
📱 百度贴吧多线程扫码登陆 / 自动签到 / 自动打码
Stars: ✭ 142 (-18.86%)
Mutual labels:  baidu
Tera
An Internet-Scale Database.
Stars: ✭ 1,846 (+954.86%)
Mutual labels:  baidu
China Domain Allowlist
常用中国网站白名单,纯列表,用于 SwitchyOmega,控制不走代理的网站。
Stars: ✭ 166 (-5.14%)
Mutual labels:  china
Area Puppeteer
基于 puppeteer 的中国行政区域抓取爬虫
Stars: ✭ 144 (-17.71%)
Mutual labels:  china
Mapbox.js
Mapbox JavaScript API, a Leaflet Plugin
Stars: ✭ 1,819 (+939.43%)
Mutual labels:  leaflet
Vue Ba
vue 百度统计埋点插件
Stars: ✭ 155 (-11.43%)
Mutual labels:  baidu
Vcards
📡️ vCards 中国黄页 - 优化 iOS/Android 来电、信息界面体验
Stars: ✭ 1,934 (+1005.14%)
Mutual labels:  china
Trojan R
轻量高效的 Trojan 代理,使用 Rust 实现
Stars: ✭ 174 (-0.57%)
Mutual labels:  china
Node Tileserver
A lightweight tileserver based on NodeJS for serving bitmap and vector tiles.
Stars: ✭ 148 (-15.43%)
Mutual labels:  leaflet
Covid 19 Timeline
以 社会学年鉴模式体例规范地统编自2019年末起新冠肺炎疫情进展的时间线。
Stars: ✭ 1,887 (+978.29%)
Mutual labels:  china
Pci China
Policy Change Index for China (PCI-China)
Stars: ✭ 146 (-16.57%)
Mutual labels:  china
Ai
像查询数据库一样优雅调用人工智能API
Stars: ✭ 147 (-16%)
Mutual labels:  baidu
Holiday Cn
📅🇨🇳 中国法定节假日数据 自动每日抓取国务院公告
Stars: ✭ 157 (-10.29%)
Mutual labels:  china
Crawler China Mainland Universities
中国大陆大学列表爬虫
Stars: ✭ 143 (-18.29%)
Mutual labels:  china
Id Card Of China
🆔一个基于「公民身份号码」规则获取身份证号码中包含的基础信息组件(PHP)
Stars: ✭ 167 (-4.57%)
Mutual labels:  china
Covid 19 Timeline
请关注端点星案和张展。// 以社会学年鉴模式体例规范地统编自2019年末起武汉新冠肺炎疫情进展的时间线(2019年12月1日-2020年4月24日)。感谢志愿者的辛劳操作。A sociology timeline (2019.12.1-2020.4.24) on how Wuhan Coronavirus break and spread, edited by anonymous volunteers.
Stars: ✭ 142 (-18.86%)
Mutual labels:  china
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+1022.29%)
Mutual labels:  leaflet
Vue Baidu Map
Baidu Map components for Vue 2.x
Stars: ✭ 2,191 (+1152%)
Mutual labels:  baidu
Elixir China Companies
A list of companies of China currently using Elixir in production
Stars: ✭ 170 (-2.86%)
Mutual labels:  china
Potatso
Potatso is an iOS client that implements Shadowsocks proxy with the leverage of NetworkExtension framework. ***This project is unmaintained, try taking a look at this fork https://github.com/shadowcoel/shadowcoel instead.
Stars: ✭ 1,925 (+1000%)
Mutual labels:  china

Leaflet加载国内百度、高德、谷歌、天地图等地图

加载百度地图

在线Demo

  //注意将map的crs赋值 crs: L.CRS.Baidu 详情请阅读示例页面 
var map = L.map('map', {
	crs: L.CRS.Baidu,
	minZoom: 3,
	maxZoom: 18,
	attributionControl: false,
	center: [31.834912, 117.220102],
	zoom: 12
});


//控制地图底图
L.control.layers({
	"百度地图": L.tileLayer.baidu({ layer: 'vec' }).addTo(map),
	"百度卫星": L.tileLayer.baidu({ layer: 'img' }),
	"百度地图-大字体": L.tileLayer.baidu({ layer: 'vec', bigfont: true }),
	"百度卫星-大字体": L.tileLayer.baidu({ layer: 'img', bigfont: true }),
	"自定义样式-黑色地图": L.tileLayer.baidu({ layer: 'custom', customid: 'dark' }),
	"自定义样式-蓝色地图": L.tileLayer.baidu({ layer: 'custom', customid: 'midnight' }) //自定义样式地图,customid可选值:dark,midnight,grayscale,hardedge,light,redalert,googlelite,grassgreen,pink,darkgreen,bluish
}, {
	"实时交通信息": L.tileLayer.baidu({ layer: 'time' })
}, { position: "topright" }).addTo(map);

加载天地图、高德、谷歌地图

加载互联网常见墨卡托坐标系地图,如天地图、高德、谷歌地图。重点在URL地址。

高德在线Demo谷歌在线Demo天地图在线Demo

//控制地图底图
var baseLayers = {
	"高德地图": 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" }).addTo(map),
	"高德影像": L.layerGroup(
		[
			L.tileLayer('http://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', { subdomains: "1234" }),
			L.tileLayer('http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8', { subdomains: "1234" })
		]
	),
	//天地图tk可以换成自己申请的key
	"天地图": L.layerGroup([
		L.tileLayer('http://t{s}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] }),
		L.tileLayer('http://t{s}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] })
	]),
	"天地图影像": L.layerGroup([
		L.tileLayer('http://t{s}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] }),
		L.tileLayer('http://t{s}.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] })
	]),
	"天地图地形": L.layerGroup([
		L.tileLayer('http://t{s}.tianditu.gov.cn/ter_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ter&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] }),
		L.tileLayer('http://t{s}.tianditu.gov.cn/cta_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=56b81006f361f6406d0e940d2f89a39c', { subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'] })
	]),

	"Google地图": L.tileLayer('http://mt1.google.cn/vt/[email protected]&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&[email protected]&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galil')
	]),

	"GeoQ ": L.tileLayer('http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}'),
	"GeoQ 藏蓝": L.tileLayer('http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'),
	"GeoQ 灰": L.tileLayer('http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}')
};

L.control.layers(baseLayers, {}, { position: "topright" }).addTo(map);

其他

更多Leaflet示例请点击: http://mars2d.cn

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].