ii_markers.js

markers_add(name, klass, cx, cy, type, size, width)

Creates a marker. The name and klass (class, but that has a special meaning to JavaScript) parameters uniquely identify the marker. Cx and cy are the position of the marker in world coordinates. Type gives the type of marker, i.e how it is drawn on the screen, for drawn markers (as opposed to image markers), size and width control the size and line thickness of the marker.

mk = markers_marker_named(klass, name)

Returns the marker identified by klass and name.

mk = markers_add_display(name, klass, cx, cy, type, size, width)

Combines the markers_add and markers_display functions into one call.

markers_display(mk)

Makes the marker mk visible.

markers_display_all()

Makes all markers visible.

markers_display_byclass(klass)

Makes all markers in class klass visible.

markers_undisplay_all()

Makes all markers (other than static ones defined in the HTML) invisible.

markers_undisplay_byclass(klass)

make all markers in class klass invisible.

markers_undisplay(mk)

Make the marker mk invisible.

markers_remove(mk)

The opposite of markers_add, removes the marker mk from the application.

markers_remove_byclass(klass)

Eliminates all markers in class klass.

markers_clear()

Clear all markers from the system.

mk = markers_find_closest(x, y, close, minpriority, klass)

Returns the marker closest to point (x, y), the remaining parameters are optional and restrict which markers will be considered. If close is not null it is the maximum distance the marker can be from that point. If minpriority is not null it is the minimum priority for eligible markers. If klass is not null, only markers of that class are eligible.

markers_highlight(mk)

If mk is not null, that marker is highlighted by flashing it. If it is null, no marker is highlighted.

markers_move(mk, cx, cy)

Move marker mk to (cx, cy).

markers_position_update(mk)

Ensures that the position available in (mk.cx, mk.cy) is up to date.

markers_set_image(mk, n)

Make marker mk, which should be an image marker, display the nth image from the applet's table of marker images.

markers_set_priority(mk, p)

Change the marker's priority.

markers_set_label(mk, label, align, font)

The text label is displayed alongside the marker. Align should be -1 for left aligned 0 for centred or 1 for right aligned. Font, if not null, is the name of a font to use.

markers_set_popup(mk, text)

The text text is displayed in a popup window when the mouse is inside the hotspot.

markers_set_status(mk, text)

The text text is displayed in the browser's status line when the mouse is inside the hotspot.

markers_set_paintings(mk, paintings)

Repaint the paintable marker mk according to the table paintings.

markers_in_window(mk)

Return true if and only if the marker mk is inside the area represented by the applet window.

Mapping Related Marker Functions