|
| Button and Tool Examples | Discussion Forum |
| IMF Developer's Guide » Button and Tool Examples |
This document provides example configuration snippets for standard buttons and tools. This is by no means a complete listing of all button and tool capabilities of the IMF. You can easily add new buttons and tools using handlers that you write and images from the Tool Image Gallery or images in your own application directory.
This is not a complete list. A sample set of tools that you can paste into your configuration file is at the bottom of this page.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example toolset:
<tools toolset="default" active="Zoom In" help="$IMF/imfHelp.jsp"> <button name="Full Extent" url="JavaScript:fullExtent();" target="mapFrame" hint="Full Extent" help="$IMF/help/fullExtentButton.txt" status="Zoom to the designed full extent of this map." graphic="$IMF/tools/zoomfull.gif" width="16" height="16"/> <tool name="Zoom In" hint="Zoom In" help="$IMF/help/zoomInTool.txt" status="Zoom in to the point you click or the rectangle that you specify." graphic="$IMF/tools/zoomin_1.gif" active-graphic="$IMF/tools/zoomin_2.gif" width="16" height="16"/> <tool name="Zoom Out" hint="Zoom Out" help="$IMF/help/zoomOutTool.txt" status="Zoom out to the point you click or the zoom the window into an rectangle that you specify." graphic="$IMF/tools/zoomout_1.gif" active-graphic="$IMF/tools/zoomout_2.gif" width="16" height="16"/> <tool name="Pan" hint="Pan" help="$IMF/help/panTool.txt" status="Centre the map at the point you click or drag the map." graphic="$IMF/tools/pan_1.gif" active-graphic="$IMF/tools/pan_2.gif" width="16" height="16"/> <button name="Zoom Previous" url="JavaScript:previousExtent();" target="toolFrame" hint="Zoom Previous" help="$IMF/help/zoomPreviousButton.txt" status="Zoom to the extent of this map before your last extent change." graphic="$IMF/tools/zoomlast.gif" width="16" height="16"/> <button name="Overview Map" url="$IMF/imfIndexMapCrosshair.jsp" target="dataFrame" hint="Overview Map" help="$IMF/help/indexMapButton.txt" status="Displays an overview map showing the location of the map in the main window." graphic="$IMF/tools/toggleov.gif" width="16" height="16"/> <button name="Print" url="$IMF/imfPrintScaledMapForm.jsp" target="dataFrame" hint="Print to PDF" help="$IMF/help/printMapButton.txt" status="Prepares a scaled map in PDF format." graphic="$IMF/tools/print_1.gif" width="16" height="16"/> <button name="Print ArcMap" url="$IMF/imfPrintScaledArcMapForm.jsp" target="dataFrame" hint="Print to PDF" help="$IMF/help/printMapButton.txt" status="Prepares a scaled map in PDF format." graphic="$IMF/tools/print_1.gif" width="16" height="16"/> <button name="Email" url="$IMF/imfEmailButton.jsp" target="dataFrame" hint="Email" help="$IMF/help/emailButton.txt" status="Send this map to someone by e-mail." graphic="$IMF/tools/mail_1.gif" width="16" height="16"/> <button name="Save Session" url="$IMF/imfSessionSaveToServer.jsp" target="dataFrame" hint="Save Session" status="Saves the current map settings for you to restore later." graphic="$IMF/tools/save_1.gif" width="16" height="16"/> <space/> <tool name="Drill Down Identify" hint="Identify visible" help="$IMF/help/drillIdentifyTool.txt" status="Display information about the features for all the visible layers where you click the map." graphic="$IMF/tools/drill_1.gif" active-graphic="$IMF/tools/drill_2.gif" width="16" height="16"/> <tool name="Identify" hint="Identify" help="$IMF/help/identifyTool.txt" status="Display information about the features that you can click the map." graphic="$IMF/tools/identify_1.gif" active-graphic="$IMF/tools/identify_2.gif" width="16" height="16"/> <tool name="Identify Radius" handler="$IMF/imfIdentifyBuffer.jsp" hint="Identify Radius" status="Display information about features within a distance of where you click on the map." graphic="$IMF/tools/identifyradius_1.gif" active-graphic="$IMF/tools/identifyradius_2.gif" width="16" height="16"/> <tool name="Select" hint="Select" help="$IMF/help/selectTool.txt" status="Display information about the features that you can click the map." graphic="$IMF/tools/select_1.gif" active-graphic="$IMF/tools/select_2.gif" width="16" height="16"/> <tool name="Buffer" handler="$IMF/imfSelectByBufferForm.jsp" hint="Buffer" status="Select features within a distance of selected features." graphic="$IMF/tools/buffer_1.gif" active-graphic="$IMF/tools/buffer_2.gif" width="16" height="16"/> <tool name="Measure" hint="Measure Distance" options="units=feet" help="$IMF/help/measureTool.txt" status="Measures the distance between points where you click." graphic="$IMF/tools/measure_1.gif" active-graphic="$IMF/tools/measure_2.gif" width="16" height="16"/> <tool name="Measure Area" hint="Measure Area" options="units=feet" help="$IMF/help/measureAreaTool.txt" status="Measures the area of the polygon you draw." graphic="$IMF/tools/measurearea_1.gif" active-graphic="$IMF/tools/measurearea_2.gif" width="16" height="16"/> <space/> <tool name="Location" hint="XY Location" status="Display the location coordinates at the point you click on the map." graphic="$IMF/tools/addmatch_1.gif" active-graphic="$IMF/tools/addmatch_2.gif" width="16" height="16"/> <space/> <tool name="Point Markup" hint="Point Markup" shape="point" handler="$IMF/imfMarkupToolPoint.jsp" status="Adds user-defined points to the map." help="$IMF/help/markupPointTool.txt" graphic="$IMF/tools/markup_point1.gif" active-graphic="$IMF/tools/markup_point2.gif" width="18" height="18"/> <tool name="Line Markup" hint="Line Markup" shape="line" handler="$IMF/imfMarkupToolLine.jsp" status="Adds user-defined lines to the map." help="$IMF/help/markupLineTool.txt" graphic="$IMF/tools/markup_line1.gif" active-graphic="$IMF/tools/markup_line2.gif" width="18" height="18"/> <tool name="Rectangle Markup" hint="Rectangle Markup" shape="box" handler="$IMF/imfMarkupToolRectangle.jsp" status="Adds user-defined rectangles to the map." help="$IMF/help/markupRectangleTool.txt" graphic="$IMF/tools/markup_rect1.gif" active-graphic="$IMF/tools/markup_rect2.gif" width="18" height="18"/> <tool name="Polygon Markup" hint="Polygon Markup" shape="polygon" handler="$IMF/imfMarkupToolPolygon.jsp" status="Adds user-defined polygon to the map." help="$IMF/help/markupPolygonTool.txt" graphic="$IMF/tools/markup_polygon1.gif" active-graphic="$IMF/tools/markup_polygon2.gif" width="18" height="18"/> <tool name="TextMarkup" hint="Text Markup" shape="point" handler="$IMF/imfMarkupToolText.jsp" status="Adds user-defined text to the map." help="$IMF/help/markupTextTool.txt" graphic="$IMF/tools/markup_text1.gif" active-graphic="$IMF/tools/markup_text2.gif" width="18" height="18"/> <tool name="LabelMarkup" hint="Label Markup" shape="point" handler="$IMF/imfMarkupToolLabel.jsp" status="Adds a label from the feature table of a layer to the map at the point you click." help="$IMF/help/markupLabelTool.txt" graphic="$IMF/tools/markup_label1.gif" active-graphic="$IMF/tools/markup_label2.gif" width="18" height="18"/> <button name="Grid Markup" url="$IMF/imfGridMarkupForm.jsp" target="dataFrame" hint="Grid Markup" status="Adds a user defined grid to the map." help="$IMF/help/markupGridButton.txt" graphic="$IMF/tools/markup_grid1.gif" width="18" height="18"/> <tool name="Erase Markup" hint="Erase Markup" shape="box" handler="$IMF/imfMarkupToolErase.jsp" status="Removes user markup from the map using a point or a box." help="$IMF/help/markupEraseTool.txt" graphic="$IMF/tools/markup_erase1.gif" active-graphic="$IMF/tools/markup_erase2.gif" width="18" height="18"/> <button name="Clear" url="$IMF/imfClear.jsp" target="dataFrame" hint="Clear Selection" help="$IMF/help/clearButton.txt" status="Unselects features and clears user added graphics." graphic="$IMF/tools/clearhighlight_1.gif"/> <space/> <button name="Extract" url="$IMF/imfExtractForm.jsp" target="dataFrame" hint="Extract" status="Extract data to a shapefile." graphic="$IMF/tools/zipship.gif" width="16" height="16"/> <button name="Extract GML" hint="Extract GML" status="Creates a GML file containing features from a layer." help="$IMF/help/extractGmlButton.txt" url="$IMF/imfExtractGmlForm.jsp" target="dataFrame" graphic="$IMF/tools/gml.gif" width="16" height="16"/> <button name="Extract Excel" hint="Extract Excel" help="$IMF/help/extractExcel.txt" status="Creates an Excel file containing attributes from a layer." url="$IMF/imfExtractExcelForm.jsp" target="dataFrame" graphic="$IMF/tools/excel.gif" width="16" height="16"/> </tools>