Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display expert distribution map for Monacanthus chinensis
<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
You can’t perform that action at this time.