A step-by-step guide for getting started with the Whereis® Javascript API. Learn how to create a simple web page for mobile devices that contains a full-screen WhereIs® API mobile-optimised map.
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<script type="text/javascript"
src="http://au.com.sensis.ems.task.api.ems.sensis.com.au/v2/web/js/ems/?libraries=mobile&token=<YOUR_TOKEN>"></script>
<script type="text/javascript">
var map = null;
window.onload = function() {
map = new EMS.MobileMap("map");
}
</script>
<style>
html, body {
height:100%;
width:100%;
padding:0;
margin:0
}
#map {
height:100%;
width:100%
}
</style>
</head>
<body>
<div id="map"></div>
</body>
</html>