From 8a6cfefa0771ebcb30a00361861d22bb5205c2c0 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Thu, 1 May 2008 00:00:20 +0000 Subject: [PATCH] larger map link is now raw html for better google-linking capability, rather than generated by javascript --- app/views/export/start.rjs | 15 ++++++++++++-- public/export/embed.html | 40 +------------------------------------- 2 files changed, 14 insertions(+), 41 deletions(-) diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 2a7985037..daa56a676 100644 --- a/app/views/export/start.rjs +++ b/app/views/export/start.rjs @@ -229,12 +229,23 @@ page << <'; + + // Create "larger map" link + var center = bounds.getCenterLonLat(); + var epsg4326 = new OpenLayers.Projection("EPSG:4326"); + var epsg900913 = new OpenLayers.Projection("EPSG:900913"); + + bounds.transform(epsg4326, epsg900913); + var zoom = map.getZoomForExtent(bounds); + + html += '
View Larger Map'; + $("export_html_text").value = html; if ($("format_html").checked) { diff --git a/public/export/embed.html b/public/export/embed.html index 8e4ea2651..ae82eb54a 100644 --- a/public/export/embed.html +++ b/public/export/embed.html @@ -13,49 +13,11 @@