question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problems with adding baidu layer

See original GitHub issue

I want to add a layer with Baidu tiles to OpenLayers, and I saw @tschaub’s #3522Comment I’m using version 6.1.1 and I changed y in tileUrlFunction to -tileCoord[2] - 1. However, only the region of China is rendered correctly. Also, there’s a strip on the right side of the Map. image I don’t know if I made the question clear. Here is the Code: https://codesandbox.io/s/xyz-6zzh6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ahocevarcommented, Feb 4, 2020

See https://codesandbox.io/s/xyz-w6i5o for a working OpenLayers 6.x example using the tile service from the original poster’s code sandbox. It is a slightly modified version of the code mentioned in https://github.com/openlayers/openlayers/issues/3522#issuecomment-570493906. Instead of defining a custom tile function, It uses the auto-generated tile function, but calls it with a different y.

0reactions
stale[bot]commented, Jun 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Baidu Has Problems Not Easily Solved (NASDAQ:BIDU)
The real problems for Baidu are more fundamental: the eroding market share, the source of its revenue and the bad reputation the company...
Read more >
Mixed Precision Training - Baidu Research
It becomes very difficult to train large deep learning models using less than 32 bits for the addition operation. In addition to this...
Read more >
Using Baidu tiles in QGIS? - GIS Stack Exchange
So I just did a bit of Googling and have managed to get the XYZ URL to render in QGIS. However, I think...
Read more >
Add Baidu Map to the page with Leaflet - Medium
Fetch Baidu tiles for the map. The last step is to create a new title layer for storing Baidu tiles' URL and get...
Read more >
Pre-trained Language Model based Ranking in Baidu Search
web search system due to the following challenging issues: (1) ... is warm-initialized with a 12-layer ERNIE 2.0 provided by Baidu. Wenxin 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found