Skip to content

All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)

I've been using the staticmaplite library for a while to generate static maps based on OSM tiles.

Recently I started getting the following error when downloading tiles:
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
The OSM team was very responsive when I contacted them and they pointed me to https://operations.osmfoundation.org/policies/tiles/.

Based on that info, I checked how staticmap.php was fetching tiles and noticed that the User-Agent string was hardcoded to "Mozilla/4.0". I fixed this and now I can fetch tiles again. You can get the updated version from here: https://github.com/crox-net/staticmaplite.

  • Twitter
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)
  • Mixx All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)
  • Bloglines All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)
  • Technorati All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)
  • Fark this: All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed)
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at YahooMyWeb
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at Furl.net
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at reddit.com
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at blinklist.com
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at Spurl.net
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at NewsVine
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at Simpy.com
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) at blogmarks
  • Bookmark All-black maps with staticmaplite (OSM static map generation - Access control configuration prevents your request from being allowed) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options