Select to view content in your preferred language

How does one make the "highlight" for the infoWindow a different shape

643
1
Jump to solution
08-14-2017 04:19 AM
MatthewDewell
Deactivated User

I'm making an infoWindow for a circle/point on my map in a graphics layer.  The point plots fine, and when I click on the point it brings up the infoWindow/InfoTemplate fine.  The one problem I am having is that there is a box drawn around my point that is very large, the "highlight", and it is much larger than the point.   I would actually like it to be a circle for the shape of the "highlight" an have it be closer to the point that was clicked on.  Does anyone have any idea, how to change the shape, and how to bring the size down?

Thank You

0 Kudos
1 Solution

Accepted Solutions
MatthewDewell
Deactivated User

Never mind.  I figured it out.  I did the following:

var infoWindowSymbol = new esri.symbol.SimpleMarkerSymbol();

infoWindowSymbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE);

infoWindowSymbol.setSize(30);

infoWindowSymbol.setColor(new Color([255,255,0,0.2]));

this.map.infoWindow.markerSymbol = infoWindowSymbol;

View solution in original post

0 Kudos
1 Reply
MatthewDewell
Deactivated User

Never mind.  I figured it out.  I did the following:

var infoWindowSymbol = new esri.symbol.SimpleMarkerSymbol();

infoWindowSymbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE);

infoWindowSymbol.setSize(30);

infoWindowSymbol.setColor(new Color([255,255,0,0.2]));

this.map.infoWindow.markerSymbol = infoWindowSymbol;

0 Kudos