Right. 2.0 and trunk are not the same. svn switch is my friend.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" style="width:100%">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script src="../lib/OpenLayers.js"></script>
|
||||
<title>XHTML Example</title>
|
||||
<script src="../lib/OpenLayers.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body style="width:100%">
|
||||
<div style="width:100%; height:500px" id="map"></div>
|
||||
@@ -13,5 +14,10 @@
|
||||
map.addLayer(wms);
|
||||
map.zoomToMaxExtent();
|
||||
</script>
|
||||
<p>
|
||||
<a href="http://validator.w3.org/check/referer"><img
|
||||
src="http://www.w3.org/Icons/valid-xhtml10"
|
||||
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -110,6 +110,12 @@ if (typeof(_OPENLAYERS_SFL_) == "undefined") {
|
||||
for (var i = start; i < jsfiles.length; i++) {
|
||||
var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";
|
||||
allScriptTags += currentScriptTag;
|
||||
var currentScriptElem = document.createElement('script');
|
||||
currentScriptElem.type = 'text/javascript';
|
||||
currentScriptElem.src = host + jsfiles[i];
|
||||
|
||||
document.getElementsByTagName("head")[0].appendChild(currentScriptElem);
|
||||
|
||||
}
|
||||
document.write(allScriptTags);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user