AnsweredAssumed Answered

TooltipDialog is not a constructor

Question asked by xylochic627 on Sep 23, 2016
Latest reply on Sep 23, 2016 by xylochic627

I am trying to add the tooltips feature to my map, following the sample code for the Feature Layer Hover. I have everything added in, but I am receiving an error that states 'TooltipDialog is not a constructor'. I've double-checked my require and function statements at the beginning of my .js file and all of the necessary items are listed. Has anyone else run into this with this particular sample?


Here's the bulk of my code for the feature layer hover. I've called in the feature layer and created the necessary symbols in other portions of my .js file.

tooltips.setRenderer(new SimpleRenderer(tooltipFill));

var dialog = new TooltipDialog({
          id: "tooltipDialog",
          style: "position: absolute; width: 250px; font: normal normal normal 10pt Helvetica;z-index:100"

mapMain.on("load", function (){;"mouse-out", closeDialog);

tooltips.on("mouse-over", function (evt){
     var parksTooltips = "${NAME}";
     var content = esriLang.substitute(evt.graphic.attributes, parksTooltips);
     var highlightGraphic = new Graphic(evt.graphic.geometry, tooltipFill);;


domStyle.set(dialog.domNode, "opacity", 0.85);{
     popup: dialog,
     x: evt.pageX,
     y: evt.pageY

function closeDialog() {;