Hello,
I have been working inside the GeocoderComponent.mxml to try and change how the InfoWindow looks when it is displayed, so as to not hide the important features the map is displaying. Changing the content alpha didn't look good enough. My other thoughts were to figure out a way to hide the infoWindow after a short period of time (maybe 5 seconds?) or to drop the infoWindow altogether and only display a symbol like a pin. The address entered is not important information, and therefore does not need to take up a bunch of the map's viewing space in the infoWindow.
Does anyone have an idea on how to either hide the infoWindow after a short delay, or make it so that a narrow symbol is displayed that doesn't take up much space, instead of an infoWindow?
This is the function I have been working with, and I believe it would be the right place to add an infoWindow.hide() after a few seconds, I'm just not sure how to do that.
As for showing a symbol instead of an infoWindow, I think that involves a graphicLayer (??) and again I'm not sure where to incorporate that. Any info is greatly appreciated!
Thanks,
David
I have been working inside the GeocoderComponent.mxml to try and change how the InfoWindow looks when it is displayed, so as to not hide the important features the map is displaying. Changing the content alpha didn't look good enough. My other thoughts were to figure out a way to hide the infoWindow after a short period of time (maybe 5 seconds?) or to drop the infoWindow altogether and only display a symbol like a pin. The address entered is not important information, and therefore does not need to take up a bunch of the map's viewing space in the infoWindow.
Does anyone have an idea on how to either hide the infoWindow after a short delay, or make it so that a narrow symbol is displayed that doesn't take up much space, instead of an infoWindow?
This is the function I have been working with, and I believe it would be the right place to add an infoWindow.hide() after a few seconds, I'm just not sure how to do that.
Code:
private function infoWindowShow(point:MapPoint):void
{
map.infoWindow.content = popUpRenderer;
map.infoWindow.contentOwner = popUpRenderer.graphic;
map.infoWindow.show(point);
}
Thanks,
David