NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I try the Example to include a Map in my own Homepage. Last week the example works. This week the example don't work any more...

Have anyone a idea?

Regards Toni

asked 09 Jul '12, 08:26

derdone's gravatar image

accept rate: 0%

edited 10 Jul '12, 16:52

stephan75's gravatar image



It works on my windows XP Google chrome set-up

(09 Jul '12, 08:37) andy mackey

Works for me as well. Please show the code you are using and tell us what exactly does not work.

(09 Jul '12, 08:43) Frederik Ramm ♦

I use exactly the example from openstreetmap with the files ie-map.css, map.css, tom.js.

But no Map is shown. Here is my Example-Page:

(09 Jul '12, 10:06) derdone

The example on the wiki was broken. I have just fixed it.

The reason it became broken suddenly was due to a significant update to OpenLayers which occurred last week. Our example shows you how to include the OpenLayers script directly from, so you automatically use the newest version available (As scai points out) If you wish to avoid any kind of problems caused by updates, you can always download a particular version of the OpenLayers javascript and point to it locally. However linking directly to normally doesn't cause too much fragility. In this case our wiki example was using the class OpenLayers.Control.MouseDefaults which has been dropped. I've fixed the original example, so you can copy that HTML again.

Also see it running here

permanent link

answered 11 Jul '12, 01:05

Harry%20Wood's gravatar image

Harry Wood
accept rate: 14%

edited 11 Jul '12, 01:09


There has been an OpenLayers update. Since you include the OpenLayers scripts directly from, you automatically use the newest version available. Please see the release notes if you need to change something on your script.

permanent link

answered 09 Jul '12, 11:51

scai's gravatar image

scai ♦
accept rate: 23%

yes. This is the cause. I have fixed the example on the wiki

(11 Jul '12, 00:36) Harry Wood

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: 09 Jul '12, 08:26

question was seen: 6,289 times

last updated: 11 Jul '12, 01:09

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum