|
POST
|
Melissa, No the issue you are having with the FlexViewer2.0 locator widget like has to do with line 365 of the LocateWidget.mxml where they are saying that if the WKID of your map is not 4326 than reproject the results of the locator to webmercator. So if your map wkid is anything other than 4326 or 102100 (webmercator) than you will have issues.
... View more
09-08-2010
01:29 PM
|
0
|
0
|
3168
|
|
POST
|
Sonya, The API Team is adding a Navigation widget to the FlexViewer 2.1 that will (Fingers Crossed) be out the end of this month.
... View more
09-08-2010
12:13 PM
|
0
|
0
|
460
|
|
POST
|
Chris, What you would need to do is add extra LODs (Levels of Display) to the map and to do this in the SampleViewer yes you will need the source code, because you would have to add the LODs in by code in the MapManager.
... View more
09-08-2010
12:11 PM
|
0
|
0
|
1182
|
|
POST
|
Jeremy, You need these 2 imports import mx.core.UIComponent;
import mx.controls.Image;
... View more
09-08-2010
09:48 AM
|
0
|
0
|
1813
|
|
POST
|
Naty, Add an id to the minisearch like so: <widgets:MiniSearch id="miniSearch" top ="120" left="50"/> then you need to do call this from where ever this.parentApplication.miniSearch.ti.text = "hello";
... View more
09-08-2010
09:40 AM
|
0
|
0
|
1599
|
|
POST
|
Joshua, I guess it is not clear enough in the DynamicLegendWidget.xml that the only thing you put in there is if you want to exclude a particular map service or map service layer. There is no configuration needed if you want everything to appear in the legend. As the example site shows this widget does not display the symbology in the TOC like in ArcMap but it shows all the visible layers of the map in the widget window. So if you do not have a layer visible than it will not be in the legend.
... View more
09-08-2010
09:08 AM
|
0
|
0
|
1688
|
|
POST
|
Joshua, OK, now we are on the right track. What you have to do to add a widget to the projects module list is this: 1. Right click on the FlexViewer project in the "Package Explorer" window (FlashBuilder) or "Flex Navigator" window (FlexBuilder) and choose properties. 2. In this dialog on the left window find "Flex Modules" and click the add button on the right 3. browse to the widgets/DynamicLegend/DynamicLegendWidget.mxml file and add it. Now when you run the project it will compile the DynamicLegendWidget.swf file.
... View more
09-08-2010
08:35 AM
|
0
|
0
|
2013
|
|
POST
|
Joshua, Like I said (not the precompiled version) If you want to use this widget than you have to compile it and how you compile it is to get the FlexViewer2.0 source code and add it as a project in Flex or Flash Builder. Once you have the FlexViewer2.0 project setup then you can copy in the DynamicLegend widget to the widgets folder, add the DynamicLegendWidget.mxml to your projects modules list and compile the whole FlexViewer2.0 source. Most of the time on the forum and code gallery you are going to find code and sample that will require you to be using the FlexViewer source, and this widget is one of those. You will be limited in what you can do with the viewer if you only use the pre-compiled source.
... View more
09-08-2010
07:52 AM
|
0
|
0
|
2013
|
|
POST
|
Naty, OK I need just a little bit more. Remind me you put the MiniSearch in your Index.mxml right? Does the MiniSearch have an id attribute and if so what is it? Basically we will have to get a reference to the MiniSearch throught the SearchWidget using parrentApplication and then using the id of the minisearch and the id of the textInput.
... View more
09-08-2010
07:45 AM
|
0
|
0
|
1599
|
|
POST
|
Joshua, Most of your questions can be answered by just clicking on the link as it has a working sample website. As far as make a swf that is as simple as adding the code to your FlexViewer2.0 SOURCE code (not the precompiled version) and following the instructions in the readme.txt
... View more
09-08-2010
06:57 AM
|
0
|
0
|
2013
|
|
POST
|
Natty, Can you be a little more specific? Are you wanting to send the image that you got to the MiniSearch or just a string value? I need to have a clear idea of your desired work flow.
... View more
09-08-2010
06:49 AM
|
0
|
0
|
1599
|
|
POST
|
Zahid, Try myMap.validateNow(); before the pdf call.
... View more
09-07-2010
12:15 PM
|
0
|
0
|
803
|
|
POST
|
Stephen, The projected geometry array is in the same order that it was sent so you can just loop though your graphics and update the geometry of those graphics with the new projected geometries.
... View more
09-07-2010
11:52 AM
|
0
|
0
|
1001
|
|
POST
|
Dan, Here is what I did to use a graphic (Spark Primitive Graphic).
<fx:Declarations>
<s:Graphic id="mapOverlay">
<s:Group>
<s:Path id="mapOverlayPath" >
<s:fill>
<mx:SolidColor id="ovlayColor" color="0x000000" alpha="0.8"/>
</s:fill>
</s:Path>
</s:Group>
</s:Graphic>
</fx:Declarations>
//This code called from some function
mapOverlayPath.data = "M 0 0 v " + map.height + " h " + map.width + " v -" + map.height + " v -" + map.width + " M 100 100";
mapOverlayPath.data += " v " + (map.height - 200) + " h " + (map.width - 200) + " v -" + (map.height - 200) + " Z";
map.staticLayer.addElement(mapOverlay);
... View more
09-07-2010
08:53 AM
|
0
|
0
|
693
|
|
POST
|
Natty, Try something like this: loader.contentLoaderInfo.addEventListener(IOErrorE vent.IO_ERROR, imgLoadErrorMethod);
... View more
09-07-2010
04:22 AM
|
0
|
0
|
1599
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|