2. Map on print:
The include map on print generates an undefines error at runtime, we called the function from both the creation complete and directionsComplete
directionsID.includeMapOnPrint = true;
- undefined at com.esri.ags.components:irections/set includeMapOnPrint()
at com.esri.ags.components:irections/set _80971302includeMapOnPrint()
There is an issue in the 3.3 version which makes this property unusable. As a workaround you can create your own copy of Directions component (override the getters and setters for includeMapOnPrint) and then use that class. Something like:
package
{
import com.esri.ags.components.Directions;
public class MyDirectionsComponent extends Directions
{
public function MyDirectionsComponent()
{
super();
}
private var _includeMapOnPrint:Boolean;
/**
* @override
*/
override public function get includeMapOnPrint():Boolean
{
return _includeMapOnPrint;
}
/**
* @override
*/
override public function set includeMapOnPrint(value:Boolean):void
{
_includeMapOnPrint = value;
}
}
}
4. iPhone Reverse Directions button:
We are using FB 4.7 to compile an iPhone and iPad app. The iPad version works just fine in regards to this issue, only the iPhone suffers from it. The reverse directions button's hit area covers over the two arrows used to graphically select a start and endpoints. You possibly cannot click any of the two, unless you click add destination, which then removes the reverse directions button. How can we make this button invisible if that is the only solution?
5. Styling the component:
We really would find it very handy if someone can share how to style any of the components. You see in the iPhone snapshot above, the "get directions" button text is huge.
You should be able to achieve both by creating a custom skin.