Modify the Display Object
annotate - Writes text
to a panel
Usage: panel[0].annotate(text,keywords)
text - annotation string
Keywords:
lat=, lon= |
center text string at specified latitude and longitude (must be used together) |
line=, element= |
center text string at specified panel line and element (must be used together) |
font= |
name of font; default is system dependent, this uses the default defined in User Preferences |
size= |
size of font; default = size of font defined in user preferences |
color= |
'color name'; default = 'red'
-or-
[R,G,B] fractional scaling factor for each red, green and blue value (0 to 1) |
Example:
panel[0].annotate('EQUATOR',size=20, font='SansSerif.bold', lat=0, lon=-90, color='Green')
setCenter -
Centers the display on a specified latitude/longitude and sets a scaling factor
Usage: panel[0].setCenter(lat,lon,keywords)
lat - centers the display at the specified latitude (no default, required parameter)
lon - centers the display at the specified longitude (no default, required parameter)
Keywords:
scale= |
scale factor for map; default = current scale factor |
Remarks:
Scale factors between 0 and 1 zoom out centered on the specified latitude/longitude and scale factors greater than 1 zoom in.
Example:
panel[0].setCenter(45, -75, scale=20)
setProjection - Sets
the projection of a panel
Usage: panel[0].setProjection(projection)
projection - string specifying the projection;
e.g., 'US>Southeastern U.S.' or the name of the layer returned by createLayer, which uses the default projection of that data
Example:
panel[0].setProjection('US>States>N-Z>Pennsylvania')
setWireframe - Turns
wire frame box on or off
Usage: panel[0].setWireframe(visible)
visible - True displays wire frame box, False turns
off wire frame box
Example:
panel[0].setWireframe(False)
panel[0].setWireframe(True)