Skip to content

Instantly share code, notes, and snippets.

@keithamoss
Last active August 29, 2015 14:17
Show Gist options
  • Save keithamoss/c4fb821e66e06d8ff193 to your computer and use it in GitHub Desktop.
Save keithamoss/c4fb821e66e06d8ff193 to your computer and use it in GitHub Desktop.
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