NOTICE: help.openstreetmap.org 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. http://wiki.openstreetmap.org/wiki/DE:Karte_in_Webseite_einbinden 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

derdone
16111
accept rate: 0%

edited 10 Jul '12, 16:52

stephan75's gravatar image

stephan75
12.6k556210

1

It works on my windows XP Google chrome set-up

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

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:

http://www.diashow.com/test/

(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 openlayers.org, 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 openlayers.org 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
9.5k2588128
accept rate: 14%

edited 11 Jul '12, 01:09

-1

There has been an OpenLayers update. Since you include the OpenLayers scripts directly from openlayers.org, 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 ♦
33.3k21309459
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×535
×122
×111
×1

question asked: 09 Jul '12, 08:26

question was seen: 6,439 times

last updated: 11 Jul '12, 01:09

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