Display expert distribution map for Monacanthus chinensis
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
<html> | |
<head> | |
<title>Embed map image example</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="expertDistroDiv"> | |
<img src=""/> | |
</div> | |
<script type="text/javascript"> | |
var url = "http://spatial.ala.org.au/layers-service/distribution/map/Monacanthus+chinensis?callback=?"; | |
$.getJSON(url, function(data){ | |
if (data.available) { | |
$("#expertDistroDiv img").attr("src", data.url); | |
} | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment