Introduction
The starting point for using the QuickMap® API is the Map class. These pages discuss how it can be used.
Hello Map
The best place to start is with an example. Here we have a simple code example that displays a map centred on Sydney, Australia.
function init() {
// set centre of the map to -33.866774, 151.207108, which is the centre of Sydney,
// and the zoom level to 15.
var locationToCentreOn = new MapDS.LatLng( -33.866774, 151.207108 );
var map = new MapDS.Maps.Map( "map", { zoom:15, centre:locationToCentreOn } );
}
window.onload = init;You can view this example and use the code however you will need to have a valid API key.
To get started using this API, you will first need credentials (register here) and then follow these steps for referencing the API within your JavaScript. Note that this would normally be written in a single line but split here for easier viewing.
<script
type="text/javascript"
src="http://apps.nowwhere.com.au/MDSQuickMap/MapControl.ashx?key=YOUR_API_KEY_HERE">
</script>