NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

I have a website and use OpenStreetMap to embed on the site using a html code. This has worked fine until recently when the maps just show as an empty grey box (still with zoom in/out). Are the embedded codes working? Any ideas? I have used different browsers.

Many thanks Tom

asked 13 Sep '16, 07:47

tombomb1's gravatar image

accept rate: 0%

edited 14 Sep '16, 21:59

aseerel4c26's gravatar image

aseerel4c26 ♦


Specifically it's the links to the cycling and transport layers on your site that don't work for me. Taking an example link location from your site:

If I omit the "&layer=cyclemap" off the end it works as an embedded link (but obviously shows the "wrong" map).

(13 Sep '16, 08:24) SomeoneElse ♦

There appears to be a bug in the openstreetmap-website code, where it uses the API Keys correctly in the maps in most places they are used on, but not in the embed maps, which uses its own javascript.

I've opened an issue and hopefully it'll be fixed.

permanent link

answered 21 Sep '16, 19:22

Andy%20Allan's gravatar image

Andy Allan
accept rate: 28%

That's great Andy - thanks for your feedback


(21 Sep '16, 20:37) tombomb1

One of the maintainers has fixed the problem, and it's now deployed. You shouldn't need to change anything to see the fix, just refresh.

(21 Sep '16, 21:59) Andy Allan
permanent link

answered 14 Sep '16, 22:34

yvecai's gravatar image

accept rate: 9%


Indeed. OSM also uses an API key for displaying the cycle layer.

(15 Sep '16, 07:54) scai ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Sep '16, 07:47

question was seen: 4,362 times

last updated: 21 Sep '16, 21:59

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum