|
POST
|
you would only add to the UI elements if you are planning on using the FIXED data grid and would be similar to: <widget left="0" right="0" bottom="0" url="widgets/eSearch/SearchWidgetFixedDG.swf" config="widgets/eSearch/SearchWidgetFixedDG.xml"/>
The actuall eSearchWidget would be put in the widgetcontainer as such: <widget label="Search" left="600" top="50" height="450" preload="open"
icon="assets/images/i_search.png"
config="widgets/eSearch/eSearchWidget.xml"
url="widgets/eSearch/eSearchWidget.swf"/> As long as you have copied the compiled code to the widgets/eSearch folder, it should find it and open it. Should also put a button on the toolbar to re-open it if needed. R_
... View more
01-08-2013
03:48 PM
|
0
|
0
|
2419
|
|
POST
|
M, Looked at your FV app a little and noticed that the NOAA_ESA_FINAL and MMPA_FINAL are the only layers you have a popupcofig file defined for, and they are not turned on/visible. If I turn on either/both of these layers, click on it, I get a popup displayed. R_
... View more
01-08-2013
01:01 PM
|
0
|
0
|
2820
|
|
POST
|
Is there a simple way to pass information from the main config.xml (such as <bing key>, <title>, <subtitle>) to the popuprendereskin? Thanks again, R_
... View more
12-30-2012
12:07 AM
|
0
|
1
|
2172
|
|
POST
|
Flex Viewer 3.0 Running on ArcGIS 10 Hi everyone, sorry for this newbie question but I'm completely stumped - it's obviously something fundamental that I'm forgetting or not grasping. I have a Parcel polygon layer in SDE. In my MXD I have created a successful relate and created a service in ArcServer. When creating the service I specified a map service as well as a feature service. In my flex viewer, no matter what I try I can't get the layer to display unless I set the Type = "dynamic". When I set it to feature it just doesn't draw. What am I doing wrong? This works: <layer label="Parcels" type="dynamic" visible="true" alpha="1.0" popupconfig="popups/PopUp_Fires.xml" url="http://maps/ArcGIS/rest/services/BaseData/Parcels/MapServer"/> But this doesn't: <layer label="Parcels" type="feature" visible="true" alpha="1.0" popupconfig="popups/PopUp_Fires.xml" url="http://maps/ArcGIS/rest/services/BaseData/Parcels/ MapServer/0"/> **It appears the layer is added to the viewer, I can see it in the "More..." list, and I can 'Zoom to' it. however the polygons just aren't there?? I'm trying to get the feature type to work so that I can use Robert's InfoRelate widget.... Thank you for any guidance....I've been working on this for 5-6 hours now but can't see what I'm doing wrong. Steve Not sure if this helps as I am not where I can test, but try the change in red above. The infoRelate widget doesn't require a featureservice, just that you load it as type="feature". R_
... View more
12-28-2012
06:42 PM
|
0
|
0
|
3241
|
|
POST
|
Meg, Not sure which problem you are experiencing, but did you see this post? Look at the bottom, and the link in second post. http://forums.arcgis.com/threads/67032-Flexviewer-3.0-Print-Widget-Custom-Layouts R_
... View more
12-26-2012
06:49 PM
|
0
|
0
|
1244
|
|
POST
|
Ryan, If you need a work around, at the bottom of this post, http://forums.arcgis.com/threads/67106-Enhanced-Search-Widget-Loading-userlist-from-attributtable I posted my python script that gets the uniquevalues and updates the userlist with it (actually updates the eSearchWidget.xml file). not real-time, but can be scheduled to keep your data semi up to date. This code is for arcpy, but shouldn't be too difficult to convert to gp. R_
... View more
12-22-2012
09:50 AM
|
0
|
0
|
2419
|
|
POST
|
Mesud, If you don't want to have to select the Identify button first, you can configure a popup for that layer: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/ That can give you all the same information the ArcMap identify button does (but is configurable) by just clicking on the feature with the default pointer. R_
... View more
12-22-2012
09:21 AM
|
1
|
0
|
759
|
|
POST
|
I removed the title block and added the dpi so didn't have to change the size. If so, remember that it is a widget, as such, the height/width can be handled in the widget tag. No need to edit source: <widget label="Print" left="600" top="80" height="290" width="355"
icon="assets/images/i_print.png"
config="widgets/Print/PrintWidget.xml"
url="widgets/Print/PrintWidget.swf"/> R_
... View more
12-20-2012
02:17 PM
|
0
|
0
|
1172
|
|
POST
|
Excellent work. Everything seems to be getting along just fine now 🙂 R_
... View more
12-20-2012
01:37 PM
|
0
|
0
|
3480
|
|
POST
|
Thank you so much Matt. I was stuck on the same issue too. your post helped me solve the "point-click-update-latlong-coordinate" thing. however though i see another slight problem when the user moves the point. the coordinate wont save. as the coordinate save only "on click". unless of course if the user clicks on the point again after the "moves". is this problem apply to yours too? here is my codes:
//-My changes start-//
public static const LAT:String = "lat";
public static const LON:String = "lon";
public var longitude:String;
public var latitude:String;
import widgets.Coordinate.DegToDMS;
import mx.formatters.NumberBaseRoundType;
private function MapClicked(event:MouseEvent):void
{
var mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
const latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(mapPoint) as MapPoint;
longitude = DegToDMS.format(latlong.x,"lon");
latitude = DegToDMS.format(latlong.y,"lat");
}
//-My changes end-//
private function basewidget_widgetConfigLoaded(event:Event):void
{
numberFormatter.precision = parseFloat("6"); //-My changes-//
map.addEventListener(MapMouseEvent.MAP_CLICK, MapClicked); //-My changes-//
map.addEventListener(MouseEvent.MOUSE_MOVE, MapClicked); // hide map infowindow if any
map.infoWindow.hide();
...................... Don't see a MapMouseEvent.MOUSE_MOVE so maybe the regular MouseEvent.MOUSE_MOVE will work. Guess it can't hurt to try. You may try this. No idea if it will work, but that is what it took to get my coordinatewidget modifications to update on mouse move. Don't know if it will actually give the xy of the "moved" point, or just the cursor location. If not, maybe a MOUSE_UP event will capture the xy when you release it on move...... Just some thoughts, R_
... View more
12-20-2012
12:14 PM
|
0
|
0
|
2232
|
|
POST
|
Ok, in case someone elses wants to have the dpi option as a dropdown with the dpi values set in the configXML, her is how I did it: Added <resolution> tag to the PrintWidget.xml: <resolution>96,150,266,300</resolution> In ExportWebMapForm.mxml, added these vars: private var resol:String;
[Bindable]
private var exportDPI:IList; made this change in the init() function: private function init():void
{
if (configXML)
{
printTask.url = configXML.taskurl;
printTask.getServiceInfo();
printButton.label = configXML.labels.submitlabel[0] || hostBaseWidget.getDefaultString("printSubmitLabel");
//My add
resol = configXML.resolution;
var resolArr:Array = resol.split(",");
exportDPI = new ArrayCollection(resolArr);
// End My Add }
} Then added this mx FormItem: <s:DropDownList id="formatsDDL"
width="100"
dataProvider="{printTask.getServiceInfoLastResult.formats}"
requireSelection="true"/>
</mx:FormItem>
<!--My add-->
<mx:FormItem id="printDPI"
label="Select DPI"
width="100%"
includeInLayout="true"
visible="true">
<s:DropDownList id="dpiDD" width="100"
selectedIndex="0"
requireSelection="true"
dataProvider="{exportDPI}">
</s:DropDownList>
</mx:FormItem>
<!--End My add-->
<s:HGroup id="scaleFI"
Also have to add this to the printParameters: <esri:PrintParameters id="printParameters"
format="{formatsDDL.selectedItem}"
layoutTemplate="{layoutTemplatesDDL.selectedItem}"
map="{hostBaseWidget.map}"
preserveScale="{scaleCheckbox.selected}">
<esri:exportOptions>
<esri:ExportOptions dpi="{dpiDD.selectedItem}"/>
</esri:exportOptions>
<esri:layoutOptions>
<esri:LayoutOptions id="layoutOptions"/>
</esri:layoutOptions>
</esri:PrintParameters> This is for FV3.0. It appears in 3.1 you have to add this import as well (since I couldn't figure out how to get values from the config directly to an IList): import mx.collections.ArrayCollection;
Enjoy, R_
... View more
12-20-2012
10:32 AM
|
0
|
0
|
1172
|
|
POST
|
Was wondering if anyone has gotten this to play nicely with the TOC widget? If I have the TOC open and add a shapefile, I get the null value errors, and the TOC widget loading.swf keep going indefinatly. I get same result with FV3.0 and FV3.1. R_ More on this, it appears to get along with the MapSwitcher more button, the LayerList and Legend widgets (at least, it puts the shapefile name and/or labels name up there an can turn on/off, but no symbology), but doesn't appear to like the TOC, even if all other layer widgets are removed. Also, not sure if it helps, or if it is supposed to work, but in the LayerList or More button, If I select the zoom to option, it zooms to the full extent of the map, not the shapefile.
... View more
12-19-2012
03:07 PM
|
0
|
0
|
3480
|
|
POST
|
Hmm, that is similar errors to what I got when I was trying to load layerlist and mapswitcher and TOC together. Have you tried commenting out the widgets one by one and see if the error/issue goes away? I'd start with legend widget since it seems to be TOC related. In any case, I'd try commenting out the widgets, if that doesn't do it, start with operational layers one by one. Eventually, you should find the culprit. then, maybe figure out why. Could be a corrupt service that needs to be re-built or something. Just a thought from my book of "ESRI testing" 😉 R_
... View more
12-19-2012
12:07 PM
|
0
|
0
|
3162
|
|
POST
|
Thanks Dasa, That did it. Maybe one of these days I'll figure out how to get the array values from the configxml. R_
... View more
12-19-2012
10:50 AM
|
0
|
0
|
1172
|
|
POST
|
Thanks Sarthak, That is what I found by testing and looking at the differences as well. Is there a workaround for non SDE users? Like I said, have not tried to override in the xml yet, but wouldn't really get me what I want anyway. I want to have the tabs appear/dissapear as the layers on toggled on/off (like it currently works with SDE), but with non SDE data. Thanks again, R_
... View more
12-19-2012
10:44 AM
|
0
|
0
|
2056
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
Wednesday
|