Last active
August 29, 2015 14:17
-
-
Save keithamoss/c4fb821e66e06d8ff193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (url) { | |
console.log(url); | |
$.ajax(url, { | |
success: function(response) { | |
popup.show(evt.coordinate, response); | |
}, | |
error: function() { | |
alert("Failed querying layer."); | |
} | |
}); | |
//var prettyCoord = ol.coordinate.toStringHDMS(ol.proj.transform(evt.coordinate, 'EPSG:3857', 'EPSG:4326'), 2); | |
//popup.show(evt.coordinate, '<div><h2>Coordinates</h2><p>' + prettyCoord + '</p></div>'); | |
//var url = data.url + "&output=embed"; | |
// popup.show(evt.coordinate,'<iframe id="content" src="about:blank"></iframe>'); | |
// $("#content").attr("src",url) | |
// //popup.show(evt.coordinate,'<iframe seamless src="' + url + '"></iframe>'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment