How to: |
The toggleLayer(‘mapId’, ‘layerName’) function toggles the visibility of the specified layer.
function button1_onclick(ctrl) { toggleLayer('mapId', 'layerName'); }
where:
Alphanumeric
Is the unique identifier of the map control. For example, mapcontrol1.
Alphanumeric
Is the unique identifier of a layer within the map. For example, Layer1.
How to: |
The toggleLayer(‘mapId’, ‘layerName’, ‘markerName’) function toggles the visibility of the specified marker.
function button2_onclick(ctrl) { toggleLayer('mapId', 'layerName', 'markerName'); }
where:
Alphanumeric
Is the unique identifier of the map control. For example, mapcontrol1.
Alphanumeric
Is the unique identifier of a layer within the map. For example, Layer1.
Alphanumeric
Is the unique identifier of a marker within the map. For example, redpin.
How to: |
The refreshLayer(‘mapId’, ‘layerName’) function refreshes the specified layer.
How to: |
The panToAddress(‘address’, ‘mapId’, ‘zoom’) function pans to a designated address.
function button4_onclick(ctrl) { panToAddress('address', 'mapId', 'zoom'); }
where:
Alphanumeric
Is the address you want to pan to. For example, 2 Penn Plaza New York NY 10121.
Alphanumeric
Is the unique identifier of the map control. For example, mapcontrol1.
Integer
Is how much you wish to zoom. For example, 7.
How to: |
The panToPoint(‘lat’, ‘long’, ‘mapId’, ‘zoom’) function pans to a designated point based on latitude and longitude coordinates the user enters.
function button5_onclick(ctrl) { panToPoint('lat', 'long', 'mapId', 'zoom'); }
where:
Integer
Is the latitude coordinate of the point you want to pan to. For example, 40.7663277.
Integer
Is the longitude coordinate of the point you want to pan to. For example, -73.9920777.
Alphanumeric
Is the unique identifier of the map control. For example, mapcontrol1.
Integer
Is how much you wish to zoom . For example, 7.
How to: |
The showAllMarkers(‘mapId’) function displays all map markers, even if it was previously hidden.
How to: |
The drawBullseye('mapId', 'lat', 'long', 'selectmarkers', 'units', 'rings', '(list-of-sizes)', '(list-of-colors)') function draws a bullseye at a point on the map. This function has optional parameters to select whether to display markers, the units of measure used for the bullseye, the number of rings, the size of the rings, and the color of the rings.
function button5_onclick(ctrl) { drawBullseye('mapId', 'lat', 'long', 'selectmarkers', 'units', 'rings', '(list-of-sizes)', '(list-of-colors)'); }
where:
Alphanumeric
Is the unique identifier of the map control. For example, mapcontrol1.
Integer
Is the latitude coordinate of the point you want to pan to. For example, 40.7663277.
Integer
Is the longitude coordinate of the point you want to pan to. For example, -73.9920777.
Boolean
Is an operator that, when set to true, selects all markers within the Bullseye.
Alphanumeric
The unit of measure for the Bullseye rings For example, mi for miles.
Integer
The number of rings the bullseye uses. For example, 3.
Integer
A comma separated list of sizes for the bullseye rings. For example, 1, 3, 5.
Alphanumeric
A comma separated list of colors for the bullseye rings. The colors can be RGB values or hexidecimal values. For example, Blue or #FFFF.
WebFOCUS |