AnsweredAssumed Answered

multiple infowindows on map (java script API)

Question asked by naveen1214 on Dec 19, 2014
Latest reply on Jun 24, 2015 by ncameron

Hi,

 

I know its possible to do with flex api.

 

Is it possible to do same with javascript api? I am trying to add info window for each graphic as below.

 

map.infoWindow.setTitle(title);

map.infoWindow.setContent(content); 

map.infoWindow.show(graphic.geometry);

map.graphics.add(graphic);

 

it is adding for first graphic and if I try to add second graphic, the first graphic info window is deleting and it is adding to second graphic.

 

"The map is only allowed to have one info window (singleton design)."  is this statement true for java script api?

 

All answers are greatly appreciated..

 

Thanks.

Outcomes