Advanced Draw widget

1225
14
Jump to solution
01-27-2012 05:51 AM
EricVenden
Occasional Contributor II
I'm looking for assistance with the Advanced Draw widget.  I'm trying to add the widget to a FB project and I am wondering where to put the component classes in the project.  Do they go in their own folder(s) or should I add them to existing folders.
Thanks
Eric V
Tags (2)
0 Kudos
14 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Please mark your post as answered so this will not continue to appear in the forum as unanswered.
0 Kudos
JeffersonFerreira_Ferreira
New Contributor III
Dear Colleagues;

I look at all possibilities and can't solve a problem.
I'm translating the Draw Advanced to portuguese and everything is fine, except for the group names displayed at widget window (Basic Text, Basic Markers, Basic Lines and Basic Areas). Seemingly the only way to change these group names is in the xml but I've changed it at the <template name="Circle" description="Basic circle marker" groupname="Basic Markers"....> to groupname="Pontos" and ins't change at widget windows. And ins't nothing else in the source code that I can change to made my customization.

Please, any ideas will be appreciated.

My best regards.
0 Kudos
DonCopple
Occasional Contributor III
Search in the mxml file for the DroDownList id="markerStyle" It is in it's own group.
Below that you'll find the ArrayList of those marker objects name="Circle" etc, etc.  Try changing those object names in that Array list, and see if that works.  Just an idea after quickly looking at the mxml file.  Below is a clip of that array.  Hope that helps.

<s:HGroup width="100%"
    gap="24"
    verticalAlign="middle">
<mx:Label text="{markerStyleLabel}"/>
<s:DropDownList id="markerStyle"
      labelField="name"
      selectedIndex="0">
<s:ArrayList>
  <fx:Object name="Circle" style="{SimpleMarkerSymbol.STYLE_CIRCLE}"/>
  <fx:Object name="Cross" style="{SimpleMarkerSymbol.STYLE_CROSS}"/>
  <fx:Object name="Diamond" style="{SimpleMarkerSymbol.STYLE_DIAMOND}"/>
  <fx:Object name="Square" style="{SimpleMarkerSymbol.STYLE_SQUARE}"/>
  <fx:Object name="Triangle" style="{SimpleMarkerSymbol.STYLE_TRIANGLE}"/>
  <fx:Object name="X" style="{SimpleMarkerSymbol.STYLE_X}"/>
</s:ArrayList>
</s:DropDownList>
</s:HGroup>
0 Kudos
JeffersonFerreira_Ferreira
New Contributor III
Search in the mxml file for the DroDownList id="markerStyle" It is in it's own group.
Below that you'll find the ArrayList of those marker objects name="Circle" etc, etc.  Try changing those object names in that Array list, and see if that works.  Just an idea after quickly looking at the mxml file.  Below is a clip of that array.  Hope that helps.

<s:HGroup width="100%"
    gap="24"
    verticalAlign="middle">
<mx:Label text="{markerStyleLabel}"/>
<s:DropDownList id="markerStyle"
      labelField="name"
      selectedIndex="0">
<s:ArrayList>
  <fx:Object name="Circle" style="{SimpleMarkerSymbol.STYLE_CIRCLE}"/>
  <fx:Object name="Cross" style="{SimpleMarkerSymbol.STYLE_CROSS}"/>
  <fx:Object name="Diamond" style="{SimpleMarkerSymbol.STYLE_DIAMOND}"/>
  <fx:Object name="Square" style="{SimpleMarkerSymbol.STYLE_SQUARE}"/>
  <fx:Object name="Triangle" style="{SimpleMarkerSymbol.STYLE_TRIANGLE}"/>
  <fx:Object name="X" style="{SimpleMarkerSymbol.STYLE_X}"/>
</s:ArrayList>
</s:DropDownList>
</s:HGroup>


Thanks dcopple;

But in fact ins't the dropdown list that I was talking about. It's the text that describes the groups at the widget's main window. There we have "Basic Marks" and a list of template markers; "Basic Lines" and a list of template lines and so on. These group names that was not able to change. And even its components, the templates it self, do not respond to changes in the XML (see attached file). The weird thing is that in my xml I've customized all the default templates names and the mxml says that is the xml commands this:
var templatesXML:XMLList = configXML.defaulttemplates.template;
    for each (var templateXML:XML in templatesXML)
    {
     try
     {
      var template:GraphicTemplate = new GraphicTemplate();
      template.name = templateXML.@name;
      template.description = templateXML.@description;
      template.drawingTool = templateXML.@drawingtool;
      template.groupname = templateXML.@groupname;



There isn't any component or mxml that contain these titles, only the xml.

Any ideas???
Thanks

Jefferson Ferreira Ferreira
Geographer/GIS Analyst
0 Kudos
DonCopple
Occasional Contributor III
sorry, that part I am not sure, will have to look closer into it when I get time.
0 Kudos