Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Permalink code has been moved to its own file, removed dead code

Mike McGannd024b23189e5
diff --git a/js/sote.js b/js/sote.js
index 55b9be0a7..41823e44f 100644
--- a/js/sote.js
+++ b/js/sote.js
@@ -37,48 +37,6 @@ function showOverlay(){
this.overlay.beforeShowEvent.subscribe(function(e){$("#"+overlay_id).css("display","block");})
}
-function showPermalink(){
- if(this.permOverlay === undefined){
- this.permOverlay = new YAHOO.widget.Panel("panel_perm", {width:"300px", zIndex:1020, visible:false } );
- var item = "<div id='permpanel' >"+
- "<!-- <h3>Permalink:</h3> -->"+
- "<span style='font-weight:400; font-size:12px; line-spacing:24px; '>Copy and paste the following link to share this view:</span>" +
- "<input type='text' value='' name='permalink_content' id='permalink_content' />" +
- "</div>";
- this.permOverlay.setHeader('&nbsp;&nbsp;&nbsp;&nbsp;Permalink');
- this.permOverlay.setBody(item);
- this.permOverlay.render(document.body);
- }
- var qs = "?";
- var comps = REGISTRY.getComponents();
- for (var i=0; i < comps.length; i++) {
- if(typeof comps[i].obj.getValue == 'function'){
- qs+= comps[i].obj.getValue() + "&";
- }
- }
-
- var map = SOTE.util.extractFromQuery("map",qs);
- var products = SOTE.util.extractFromQuery("products",qs);
- var time = SOTE.util.extractFromQuery("time",qs);
- var s = SOTE.util.extractFromQuery("switch",qs);
-
-
- qs = "?map="+map+"&products="+products+"&time="+time+"&switch="+s;
-
- var url = window.location.href;
- var prefix = url.split("?")[0];
- //alert(prefix);
- prefix = (prefix !== null && prefix !== undefined)? prefix: url;
-
- $('#permalink_content').val(prefix+qs);
-
- this.permOverlay.show();
- this.permOverlay.center();
-
- document.getElementById('permalink_content').focus();
- document.getElementById('permalink_content').select();
-}
-
function showRubberBand(){
rb.draw("map");