Syntax: How to Pan to a Point
IbComposer_panToPoint(lat,long,mapId,zoom);

where:

lat

Integer

Is the latitude coordinate of the point you want to pan to. For example, 40.7663277.

long

Integer

Is the longitude coordinate of the point you want to pan to. For example, -73.9920777.

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

zoom

Integer

Is how much you wish to zoom . For example, 7.


Top of page

Example: Panning to a Point
function button1_onclick(event) {
   var eventObject = event ? event : window.event;
   var ctrl = eventObject.target ? eventObject.target :
   eventObject.srcElement;
   // TODO: Add your event handler code here
   IbComposer_panToPoint(37.0625,-95.677068,'mapcontrol1',5); 
}