MultipleDefine error while executing Heat Map tool from ArcGIS javascript API

09-04-2018 02:21 AM
New Contributor

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.

0 Kudos
4 Replies
Esri Frequent Contributor

It looks like you are using a js library called jszip? If so try loading it before you load the jsapi. 

  <script src=""></script>
  <script src=""></script>
0 Kudos
New Contributor

im not using that js library, my html looks like:

0 Kudos
Esri Frequent Contributor

Can you put together a reproducible test case? If so can you post it here or email?

0 Kudos
New Contributor

Thanks for the reply.

Sorry, here is the test case:  

The error always occurs after filtering any layer. Click on the  icon of the card and write 03003 in the textbox, and then click on the icon of the flame and the error appears.

0 Kudos