AnsweredAssumed Answered

Javascript API - applying tooltips

Question asked by oliviag12 on Nov 10, 2014
Latest reply on Nov 11, 2014 by AHarshe-esristaff

At the moment I have 3 menu items that draw a line, point or area on a map. I'm using

 

  esri.bundle.toolbars.draw.addPoint = "Click the map at the location you want to search";

 

as a tooltip for drawing the point.

 

However for the draw area and line I want a different tooltip for each so that it reads:

"Click to start drawing a search line" for a line and "Click to start drawing a search area"; for an area.

 

At the moment this is the code that's used so that the line tool tip reads as area. Is there a way to distinguish between the two?

  esri.bundle.toolbars.draw.addPoint = "Click the map at the location you want to search";

  esri.bundle.toolbars.draw.start = "Click to start drawing a search area";

  esri.bundle.toolbars.draw.resume = "Click to continue drawing your search area";

  esri.bundle.toolbars.draw.finish = "Click to continue drawing or Double-click to finish";

  esri.bundle.toolbars.draw.complete = "Click to continue drawing or Double-click to finish";

  esri.bundle.widgets.legend.NLS_noLegend = "Legend will appear here when search results are displayed on the map.";

 

 

  map = new esri.Map("map", {

  logo : false

  });

 

 

Any help appreciated!

Outcomes