{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3361","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3361/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3361/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3361/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3361","id":67115046,"number":3361,"title":"Baidu layer (plugin)","user":{"login":"dandv","id":33569,"avatar_url":"https://avatars.githubusercontent.com/u/33569?v=3","gravatar_id":"","url":"https://api.github.com/users/dandv","html_url":"https://github.com/dandv","followers_url":"https://api.github.com/users/dandv/followers","following_url":"https://api.github.com/users/dandv/following{/other_user}","gists_url":"https://api.github.com/users/dandv/gists{/gist_id}","starred_url":"https://api.github.com/users/dandv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandv/subscriptions","organizations_url":"https://api.github.com/users/dandv/orgs","repos_url":"https://api.github.com/users/dandv/repos","events_url":"https://api.github.com/users/dandv/events{/privacy}","received_events_url":"https://api.github.com/users/dandv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-08T12:11:56Z","updated_at":"2015-04-08T12:22:27Z","closed_at":"2015-04-08T12:22:27Z","body":"For the Greater China region, a Baidu Map plugin, [similar to Pavel Shramov's plugins](http://leafletjs.com/plugins.html) for Googel and Bing, would be very helpful.\r\n\r\nI've created a Wikipedia page about [Baidu Maps and their BD-09 coordinate system](https://en.wikipedia.org/wiki/Baidu_Maps#Coordinate_system.\r\n\r\nBaidu has an [extensive API](http://developer.baidu.com/map/) with large rate limits. The documentation is in Chinese, but installing the Google Translate extension makes it relatively readable.\r\n\r\nSo far I've found the API for returning tiles. They're branded with Baidu's logo, but hopefully someone else can pick up from here.\r\n\r\n```js\r\n\"http://api.map.baidu.com/staticimage?center=\"\r\n  + lon + \",\" + lat \r\n  + \"&width=\" + width + \"&height=\" + width + \"&zoom=\" + zoom;\r\n```\r\n\r\nResult of http://api.map.baidu.com/staticimage?center=121,31&width=300&height=300&zoom=15:\r\n\r\n\r\n![Baidu map tile](http://api.map.baidu.com/staticimage?center=121,31&width=300&height=300&zoom=15)\r\n\r\nhttps://github.com/sureleo/leaflet-baidu seems like the most promising project to incorporate.\r\n\r\nRandom code that adds a Baidu layer to OpenLayers:\r\n\r\n* https://github.com/shitao1988/baidu/blob/master/OpenLayers.Baidu.js\r\n\r\n* https://github.com/Cao-Bin/cao-bin.github.io/blob/47467436705438a77c661d8511b8ae7ede336f76/article/2015/02/ol2baidumap/index.html#L83\r\n\r\n* https://github.com/talk2js/project/blob/master/talk2gis/WebRoot/js/lib/talk2js/gis/openlayers/layer/Baidu.js"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/90897047","html_url":"https://github.com/Leaflet/Leaflet/issues/3361#issuecomment-90897047","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3361","id":90897047,"user":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T12:22:27Z","updated_at":"2015-04-08T12:22:27Z","body":"Thanks a lot for the suggestion. This is an issue tracker though — it's for tracking Leaflet core issues. Plugin requests like this should go to a forum or our UserVoice page."}}