-
Notifications
You must be signed in to change notification settings - Fork 37
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
Comments
Yes, and it prints "Security Violation" to the error log. Very strange, considering it works with standard tiles from osm.org. |
OK, there seems to be a problem with crossOrigin. Is there any way to solve this problem clientside or should I suggest the provider of the tileserver to modify the response headers? |
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. |
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). |
Doesn't work for me with secured tiles. Is this problem solved? Any advice? |
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.
The text was updated successfully, but these errors were encountered: