Map API
  Map Machine new user?
Log In
 
 








Function  Example
search(address,postcode,map_width)

-Enables search on address, postcode and zooms the map to the area. The map_width parameter determines the width of map i.e. zoomlevel. 
Javascipt: 
function thisMovie(movieName) {
 var isIE = navigator.appName.indexOf("Microsoft") != -1;
 if (isIE){
  return window[movieName] }
 else{ return document[movieName]}
}
function search(){  
  thisMovie("mapViewer").search(document.getElementById("address").value, document.getElementById("postcode").value,3000);
 }
html:
 Address: <input id='address' type="text" />
 Postcode: <input id="postcode" type="text" />

 <input id="search_btn" onClick="search()" type="button" value="Search" />
zoomPoint(UTM_xcoord,UTM_ycoord,map_width)

-Enables zoom to a utm coordinate. The map_width parameter determines the width of map i.e. zoomlevel. 
Javascipt: 
function thisMovie(movieName) {.. (see above code)
function zoomPoint(){
 flashMovie = thisMovie("mapViewer");
  flashMovie.zoomPoint(document.getElementById("x").value,document.getElementById("y").value,200);
}
html:
 x: <input id='x' type="text" />
 y: <input id="y" type="text" />
setPointAndZoom(UTM_xcoord,UTM_ycoord)

Enables zoom to a utm coordinate and draws a point at the coordinate. 
function thisMovie(movieName) {.. (see above code )
function setPointAndZoom(){
 thisMovie("mapViewer").setPointAndZoom(document.getElementById("x").value,document.getElementById("y").value);
}
html:
 x: <input id='x' type="text" />
 y: <input id="y" type="text" />
resetPoints()
Resets all points on the map.
function reset(){ thisMovie("mapViewer").resetPoints(); }