Syntax: How to Draw a Bullseye
IbComposer_drawBullseye(mapId,lat,long,selectmarkers,units,rings,[list-of-sizes],[list-of-colors]);

where:

mapId

Alphanumeric

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

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.

selectmarkers

Boolean

Is an operator that, when set to true, selects all markers within the Bullseye.

units

Alphanumeric

The unit of measure for the Bullseye rings For example, mi for miles.

rings

Integer

The number of rings the bullseye uses. For example, 3.

list-of-sizes

Integer

Is an optional parameter, as a comma (,) separated list of sizes for the bullseye rings. For example, 1, 3, 5.

list-of-colors

Alphanumeric

Is an optional parameter, as a comma (,) separated list of colors for the bullseye rings. The colors can be RGB values or hexadecimal values. For example, Blue or #FFFF.


Top of page

Example: Drawing a Bullseye
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_drawBullseye('mapcontrol1',37.0625,-95.677068,'true','mi',3);
}