round numbers
This commit is contained in:
parent
5ff86db265
commit
57050172c8
1 changed files with 5 additions and 1 deletions
|
@ -166,12 +166,15 @@ page << <<EOJ
|
|||
var zoom = map.getZoomForExtent(projBounds);
|
||||
var center = bounds.getCenterLonLat();
|
||||
var marker = $("html_marker").checked;
|
||||
var url = 'http://crschmidt2.dev.openstreetmap.org/export/embed.html?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom;
|
||||
var url = 'http://crschmidt2.dev.openstreetmap.org/export/embed.html?lat='+center.lat.toFixed(5)+'&lon='+center.lon.toFixed(5)+'&zoom='+zoom;
|
||||
if (marker) {
|
||||
url += "&marker=true";
|
||||
}
|
||||
var html = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+url+'"></iframe>';
|
||||
$("export_html_text").value = html;
|
||||
if ($("format_html").checked) {
|
||||
$("export_html_text").select();
|
||||
}
|
||||
}
|
||||
$("html_marker").onclick = htmlBoundsChanged;
|
||||
|
||||
|
@ -201,6 +204,7 @@ page << <<EOJ
|
|||
if ($("format_html").checked) {
|
||||
$("export_html").style.display = "inline";
|
||||
$("export_commit").style.display = "none";
|
||||
$("export_html_text").select();
|
||||
} else {
|
||||
$("export_html").style.display = "none";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue