Friday, February 01, 2008 1:09 PM -
Code-Challenge-Team
Interact with Maptips thru Search Results
By Roy Jackson, GIS Coordinator, Novato, California, USA
Download the script.
Code Summary
The purpose of this sample is to demonstrate a method for interacting with maptips through task results. When a user hovers over the button I add to the task results, the maptip goes into hover mode. When a user clicks the button, the maptip goes into locked mode. When a user mouseouts the button, the maptip dissapears.
This sample uses the TaskResults1_Load and TaskResults1_NodeExpanded events to write the button into the search results for interacting with the maptips.
This sample also uses a good amount of javascript, partially based on the ESRI javascript file display_maptips.js file. The first step here was understanding that
code, which was a challenge.
I have successfully tested this code in IE7 and MFF 2.0.
A sample video of this code is available at http://www.fileden.com/files/2007/2/27/829259/AGS_maptip_interaction.wmv.
I appreciate any feedback or recommendations at gisproblog@gmail.com, as well as your vote for the Developer's Challenge.
This code was written by Roy Jackson in 2007-2008.
INSTALLATION~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add data from C:\Program Files\ArcGIS\DeveloperKit\SamplesNET\data\World to arcmap, or use the attached document and set the path to the data.
save mxd as c:\arcgisserver\maptip_interaction.mxd
create a local service called maptip_interaction
extract the web site to inetpub
edit the web.config, add your arcgis identity
run the application!