[OSM-talk-fr] JOSM et vue sat
Hervé Le Roy
hleroy at hleroy.com
Ven 7 Aou 08:46:17 UTC 2009
2009/8/7 Yann Coupin <yann at coupin.net>:
> Cette URL marche dans Firefox, mais dans mon souvenir il faut être en
> Mercator pas en WGS84 pour que ça ne sorte pas une image route...
Je suis bien en Mercator. Voilà une sortie complète de la console,
pour les développeurs qui lisent cette liste:
java -Xmx800M -jar josm-snapshot-1822.jar
loading AgPifoJ
loading PicLayer
loading validator
loading waydownloader
loading wmsplugin
loading cadastre-fr
Pluging "cadastre-fr" started...
current cache directory: C:\Documents and
Settings\herve.leroy\Application Data\JOSM\plugins/cadastrewms/
shortcut F11 already redefined; do not change
GET http://api.openstreetmap.org/api/capabilities... OK
Communication Útablie avec http://api.openstreetmap.org/api en
utilisant le protocole de version 0.6
GET http://api.openstreetmap.org/api/0.6/map?bbox=2.110919952392578,48.858559939112574,2.119932174682617,48.862343268380975
Silent shortcut conflict: 'properties:edit' moved by 'menu:PicLayer' to 'Alt+D'.
Silent shortcut conflict: 'subwindow:conflict' moved by
'menu:Cadastre' to 'Alt+Maj+C'.
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.0927964,48.8425490,2.1116504,48.8549559&srs=EPSG:4326&width=500&height
=499
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.0927964,48.8673597,2.1116504,48.8797604&srs=EPSG:4326&width=500&height
=499
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.0927964,48.8549559,2.1116504,48.8673597&srs=EPSG:4326&width=499&height
=499
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.1116504,48.8549559,2.1305044,48.8673597&srs=EPSG:4326&width=499&height
=500
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.1116504,48.8425490,2.1305044,48.8549559&srs=EPSG:4326&width=500&height
=500
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=utf-8">
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=3LbAXA7V34HlYed5sgRo3TUd0jKLxkdGpeVisDrKem3B7M9zyesqJBwMQpu7Jg--"></script>
<SCRIPT TYPE="text/javascript">
function init()
{
var url = location.href;
var queryStringPos = url.indexOf("?");
if(queryStringPos != -1)
{
url = url.substring(queryStringPos + 1);
var variables = url.split("&");
for (i = 0; i < variables.length; i++)
{
if( !variables[i] )
continue;
var keyValue = variables[i].split("=");
eval ('var '+keyValue[0].toLowerCase()+'="'+keyValue[1]+'"');
}
}
var d = document.getElementById('map');
if(!bbox || !width || srs != "EPSG:4326")
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>Invalid parameters";
}
else
{
var coords = bbox.split(",");
var trlon  = Number(coords[0]), trlat = Number(coords[1]);
var bllon  = Number(coords[2]), bllat = Number(coords[3]);
if(bllon > trlon) {var tmp = bllon; bllon = trlon; trlon = tmp; }
if(bllat > trlat) {var tmp = bllat; bllat = trlat; trlat = tmp; }
d.innerHTML = "";
height = (height ? height : width) + 'px';
try
{
var points = new Array();
points[0] = new YGeoPoint(trlat, trlon);
points[1] = new YGeoPoint(bllat, bllon);
// other map types work as well but only satellite allowed
for use with OSM!
var map = new YMap(d, YAHOO_MAP_SAT, new YSize(width, height));
map.removeZoomScale();
var zac = map.getBestZoomAndCenter(points);
var level = zac.zoomLevel-1;
var levels = map.getZoomValidLevels();
if(levels[0] > level)
level = levels[0];
map.drawZoomAndCenter(zac.YGeoPoint,level);
// Get the on-screen coordinates of the points
xy0 = map.convertLatLonXY(points[0]);
xy1 = map.convertLatLonXY(points[1]);
// Recenter the stuff to have exact edges
cx = map.convertXYLatLon(new
YCoordPoint((xy0.x+xy1.x)/2.0, (xy0.y+xy1.y)/2.0));
map.drawZoomAndCenter(cx,level)
// Create a new size for the map. This makes the need of
clipping the image unnecessary.
new_width = Math.abs( xy0.x - xy1.x);
new_height = Math.abs( xy0.y - xy1.y);
// Apply the new width-height
map.resizeTo(new YSize(new_width, new_height));
d.style.width = new_width;
d.style.height = new_height;
window.moveTo(0,0);
window.resizeTo(new_width, new_height);
}
catch(err)
{
d.innerHTML = "<P ALIGN=\"center\">ERROR<BR>"+err;
}
}
}
</SCRIPT>
</head>
<body style="margin:0px">
<div style="width:200px; height:200px; background-color:red"
id="map"><P ALIGN="center">ERROR</div>
<SCRIPT TYPE="text/javascript">init();</SCRIPT>
</body>
</html>
Image couldn't be fetched:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=2.1116504,48.8673597,2.1305044,48.8797604&srs=EPSG:4326&width=500&height
=500
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Plus d'informations sur la liste de diffusion Talk-fr