AnsweredAssumed Answered

MultipleDefine error while executing Heat Map tool from ArcGIS javascript API

Question asked by dfidealista on Sep 4, 2018
Latest reply on Sep 19, 2018 by dfidealista

i have an app made in js that works with arcgis and it looks like:








array, Circle, Color, SimpleFillSymbol, SimpleLineSymbol, PictureMarkerSymbol, SimpleMarkerSymbol, SimpleRenderer,
UniqueValueRenderer, StatisticDefinition, geometryEngine, Graphic, registry, Query, QueryTask, RelationshipQuery, SpatialReference,
Map, esriLang, InfoWindow, InfoTemplate, ContentPane, TabContainer, GraphicsLayer, FeatureLayer, Point, FeatureSet,
BasemapToggle, HomeButton, LayerList, Search, connect, domStyle, dom, on, domConstruct, domClass, number, HeatmapRenderer
) {

map = new Map("map", {
basemap: "gray",
center: [-0.4814900, 38.3451700],
zoom: 11

var flay0H = new FeatureLayer(urlFlay0H, {
id: "Listing_properties_HM",
mode: FeatureLayer.MODE_SNAPSHOT,
visible: false,
outFields: ["*"]



var HeatM = new HeatmapRenderer({
blurRadius: 4,
maxPixelIntensity: 900,
minPixelIntensity: 9,
field: "Precio"

var heat_btn = document.getElementById("heat_btn");
heat_btn. = click5;

function click5() {
if (flay0H.visible == false) {
// flay0H.refresh();
} else {



When i run the tool sometimes an error occurs and i get this message in the console:


This layer only participate in this process so i dont understand what can fail here. Any ideas?Ty.