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 |
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 answered 11 Jul '12, 01:05 Harry Wood |
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. answered 09 Jul '12, 11:51 scai ♦ yes. This is the cause. I have fixed the example on the wiki
(11 Jul '12, 00:36)
Harry Wood
|
It works on my windows XP Google chrome set-up
Works for me as well. Please show the code you are using and tell us what exactly does not work.
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/