Looking to set pixel or click tolerance for InfoTemplate

3387
1
05-08-2015 07:30 AM
IanPeebles
Occasional Contributor III

Good morning.  I currently have an application that contains a nice InfoTemplate, which appears when you click on a feature layer.  Is there a way to set the click tolerance for the InfoTemplate?  I did not find anything in the API Reference.

InfoTemplate | API Reference | ArcGIS API for JavaScript

When clicking on the map, you have to be right on the center of the point.  I am wanting to increase the click tolerance in pixels.  Here is a sample from the application and some code.

InfoTemplate_MapSample.jpg

The code behind the InfoTemplate:

var infoTemplate = new InfoTemplate();

infoTemplate.setTitle("GPS Monument - ${STATION_NAME}");

infoTemplate.setContent("<b>Description: </b>${DESCRIPTION}<br/><br/>" +

         "<b>Location: </b>${LOCATION}<br/><br/>" +

         "<b>Specific Location: </b>${SPECIFIC_LOCATION}<br/><br/>" +

         "<b>Northing: </b>${NORTHING}<br/>" +

         "<b>Easting: </b>${EASTING}<br/>" +

         "<b>MSL Elevation: </b>${MSL_ELEVATION}<br/>" +

          "<b>Status: </b>${STATUS}<br/>" +

         "<b>Data Sheet: <a href= ${HYPERLINK} target=_blank ;'>Click for Document</a><br><br>");

Any ideas on how to increase the click tolerance?  Thank you!

1 Reply
TimWitt2
MVP Alum

Ian,

you can specify a tolerance here IdentifyParameters | API Reference | ArcGIS API for JavaScript

But this might mean you need to change your approach on how to bring up a pop-up window.

Tim