AnsweredAssumed Answered

Javascript api, info bubbles for stacked graphics

Question asked by alexlambson on Jul 16, 2014
Latest reply on Jul 16, 2014 by alexlambson

Hey guys.

 

Basically, what I need to do is have the left/right arrows of an infobubble cycle between two graphics that are at the same coordinates. I tried putting them on seperate graphic layers, but it did not give me the arrow.

 

Logic

 

See if two markers have the same coordinates -> link their info bubbles if they do.

 

Here is how I am separating the layers.

 

point = new esri.geometry.Point(item.lon, item.lat);  coordinateCheck = item.lat;  graphic = new esri.Graphic(point, symbol);  graphic.setAttributes({'title': checkbox, 'desc': content});  if (usedCoordinates.indexOf(coordinateCheck) > -1){     graphicsLayer2.add(graphic);     console.log('added to layer 2'); } else {     graphicsLayer.add(graphic);     usedCoordinates.push(coordinateCheck);     console.log('added to layer 1 ' + usedCoordinates); } 

 

 

Will this method work? How do I get the stacked markers to link info bubbles.

Outcomes