Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grayscaling does not work with some tiles #5

Open
rurseekatze opened this issue Apr 4, 2014 · 5 comments
Open

Grayscaling does not work with some tiles #5

rurseekatze opened this issue Apr 4, 2014 · 5 comments

Comments

@rurseekatze
Copy link

Grayscaling does not work with tiles from http://a.www.toolserver.org/tiles/osm-no-labels/10/530/340.png.

Example: Visit http://www.openrailwaymap.org/ and select the "Mapnik no-labels Grayscale" layer from the layerselection. You will see just an empty background.

@Zverik
Copy link
Owner

Zverik commented Apr 7, 2014

Yes, and it prints "Security Violation" to the error log. Very strange, considering it works with standard tiles from osm.org.

@rurseekatze
Copy link
Author

OK, there seems to be a problem with crossOrigin.
I think this is related to this problem: http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html

Is there any way to solve this problem clientside or should I suggest the provider of the tileserver to modify the response headers?

@Nakaner
Copy link

Nakaner commented Jan 14, 2015

I have noticed that the gray layers at OpenRailwayMap (Mapnik gray and Mapquest gray) are not visible if the plugin HTTPSeverywhere works. If I look into the Firefox console, I do not see HTTP GET requests for map tiles of tiles.openstreetmap.org while moving the map. I only see HTTP GET request for tiles.openrailwaymap.org (this layer is not gray-converted).

Layers which are not converted from RGB to gray are shown as usual.

@nebadom
Copy link

nebadom commented Feb 2, 2016

I tried using this with the following map:

http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg

And indeed It showed some diagonals tiles wrong. Then I moved to:

http://tile.openstreetmap.org/{z}/{x}/{y}.png

And it worked pretty good. My approach is a little bit different because I'm caching the first 3 zoom levels on my own server to reduce bandwith consumption to openstreemap (it's more of an ethical matter than technical) and I also comprised the png images by my own, reducing them up to the 35% of the original size. This way the images are served faster and more reliable.

Yes, this works. And it works real good. It is a fair alternative to the old Acetate (Hillshading).

@ghost
Copy link

ghost commented Oct 28, 2018

Doesn't work for me with secured tiles. Is this problem solved? Any advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants