|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--GLOBALS
Method Summary | |
<static> void
|
clear_coords()
function to be called on mouse exit events. |
<static> void
|
do_query()
function to be called at query time. |
<static> void
|
main_area(a, d, l, n)
function to be called on area events. |
<static> void
|
main_measure(s, t, n, a)
function to be called on measure events. |
<static> void
|
main_mousemove(x, y)
function to be called on mouse move events. |
<static> void
|
main_setbox(minx, miny, maxx, maxy)
function to be called on mouse click/box draw events. |
<static> void
|
map_draw()
function to be called at map draw time. |
Method Detail |
<static> void clear_coords()
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens with these events.
main.setHandler(DBOX_MOUSEEXIT, clear_coords); /**
do_query
<static> void do_query()
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens at query time.
A setup to display query results in a new window might be:
(note the "ms" variable below is a Mapserv object
instance, and "function" is intentionally mispelled to avoid
confusing our documentation generator)
/**
main_area
<static> void main_area(a, d, l, n)
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens with these events.
typically this is where you would do something with the coordinate information generated by dBox. For example, you might convert from pixels to map coordinates and update a page element. You can also do simple feature digitizing using this feature
main.setHandler(DBOX_AREA, main_area); /**
main_measure
<static> void main_measure(s, t, n, a)
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens with these events.
typically this is where you would do something with the coordinate information generated by dBox. For example, you might convert from pixels to map coordinates and update a page element.
main.setHandler(DBOX_MEASURE, main_measure); /**
main_mousemove
<static> void main_mousemove(x, y)
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens with these events.
main.setHandler(DBOX_MOUSEMOVE, main_mousemove); /**
main_setbox
<static> void main_setbox(minx, miny, maxx, maxy)
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens with these events.
typically this is where you would trigger draw or query behaviour within your application.
main.setHandler(DBOX_SETBOX, main_setbox); /**
map_draw
<static> void map_draw()
Must be defined and set (via setHandler) elsewhere in the application, or nothing happens at draw time.
A minimal setup, handling nothing but the map draw, might be:
(note the "ms" variable below is a Mapserv object
instance, and "function" is intentionally mispelled to avoid
confusing our documentation generator)
/**
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |