|
POST
|
Mattias, That is one I currently have at about 98% complete and is my current focus. You will see this one real soon.
... View more
10-05-2010
04:03 AM
|
0
|
0
|
1862
|
|
POST
|
Alex, Yes the enhanced search widget is on my migration list. I can not give a time line right now though as other tasks have my attention and priority. But it will be soon.
... View more
10-04-2010
06:02 PM
|
0
|
0
|
1862
|
|
POST
|
Mattias, This is probably not the most elegant solution but it will require the least amount of changes to the framework. In the WidgetManager change line 66 from private to public. public var controlContainer:Group; Then in the MapManger.mxml add this to your context menu item click function for (var c:int = 0; c < ViewerContainer.getInstance().widgetManager.controlContainer.numElements; c++){
try{
var cw:* = ViewerContainer.getInstance().widgetManager.controlContainer.getElementAt(c);
System.setClipboard(cw.coords.text);
} catch(error:Error){}
}
... View more
10-04-2010
06:28 AM
|
0
|
0
|
1859
|
|
POST
|
Tony, Well over a year or more ago there was some discussion on just that the legality of using Google and particularly Bird's eye view data (Pictometry) inside a flex site and the popular route was that as long as you opened this data in a separate window and clearly indicated the origin of that data that you were OK. Now just last week I tried to dig into this when Frank showed his version that had Google street view and Bird's Eye inside a flex popup window, but could not find anything concise on the issue from Pictomerty or Microsoft. So I am going to continue to play it safe and open only Google Street View in a completely separate browser window.
... View more
10-01-2010
12:23 PM
|
0
|
0
|
1801
|
|
POST
|
Marc, The reason it shows up on my identify tool is the fact that I am letting the FlexViewer framework handle the mouse interaction with the map and there for uses the drawTool (not the widget) to capture the mouse click and the drawTool is the component that has draw tips in the 2.x version of the API. The Draw/Measure Widget in the viewer is not like ArcMap where you select the measure tool and start drawing on the map and get the measurements back. The measurement portion works in conjunction with the graphic drawn on the screen. When you complete your drawing and have checked the measurement option then a text label of the measurement will be added to the map along with the graphic. Sorry if you already knew this and I am misunderstanding your issue.
... View more
10-01-2010
10:24 AM
|
0
|
0
|
2234
|
|
POST
|
Marc, That is the new DrawTool's draw tips and is not controlled by my widget. The only way to change it is to modify the MapManager.mxml and add drawTool.showDrawTips = false;
... View more
10-01-2010
10:09 AM
|
0
|
0
|
3338
|
|
POST
|
Dasa, You guys might want to put something in the documentation about the ArcGIS Server 10 requirement. I did not see anything about this in the documentation unless I overlooked it.
... View more
10-01-2010
08:46 AM
|
0
|
0
|
1398
|
|
POST
|
Deona, My advice would be abandon the changes you made to the viewers framework and just attempt to one by one migrate individual widgets over into the new viewer. The great thing is that you have a good functioning site so just leave that in place until you are happy with your 2.1 work. My plan for my presentation at the 2011 Dev Summit is "How to migrate a 1.x SFV widget to FlexViewer 2.x" So of the changes that you have made to things like the MapManager.mxml you will be able to pick apart and re-work for the new version but there will definitely not be a simple copy and paste with this migration.
... View more
10-01-2010
08:40 AM
|
0
|
0
|
1479
|
|
POST
|
Tony, I was able to duplicate your results when using a 9.3.1 Server so it Must only work with a 10 Server, although I don't see where the API documents this.
... View more
10-01-2010
06:38 AM
|
0
|
0
|
1398
|
|
POST
|
Pete, A Component is kind of in a world of it's own so it can not see the "ClickLink" function that you have outside of it. You need to add the fx script block inside the component and you should be good to go.
... View more
10-01-2010
06:28 AM
|
0
|
0
|
604
|
|
POST
|
Tony, I am pretty sure you do not need Server 10. Although just because execute is returning a featureset doe not mean that the feature set has any features in it. Can you check the length of the returned featureset?what does your query look like?
... View more
10-01-2010
03:34 AM
|
0
|
0
|
1398
|
|
POST
|
Don, Took a while to find time for this but here it is: index.template.html code: <script type="text/javascript">
function getFlexApp(appName)
{
if (navigator.appName.indexOf ("Microsoft") !=-1)
{
return window[appName];
}
else
{
return document[appName];
}
}
function someFlexFunction()
{
getFlexApp('index').flexTalk('Hello World');
}
</script>
<input type="button" id="butFlexTalk" onclick="someFlexFunction()" value="Say Hello" />
index.mxml portion <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:viewer="com.esri.viewer.*"
xmlns:managers="com.esri.viewer.managers.*"
pageTitle="ArcGIS Viewer for Flex"
initialize="initApp()">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function initApp():void
{
if (ExternalInterface.available)
ExternalInterface.addCallback("flexTalk", flexTalk);
}
public function flexTalk(sayThis:String):void
{
Alert.show(sayThis);
}
]]>
</fx:Script>
<fx:Style source="defaults.css"/> Of course from here you will have to use some appEvent or something to get from the index.mxml into some widget or what ever you are trying to do.
... View more
09-30-2010
01:21 PM
|
0
|
0
|
2613
|
|
POST
|
Cristi, This is known bug in flex 3 and the only solution is monkey patching (not simple). Here are some links to monkey patches: http://custardbelly.com/blog/?p=70 http://blog.flexexamples.com/2010/05/05/modifying-the-corner-white-box-on-an-mx-container-when-scroll-bars-are-visible-in-flex/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+FlexExamples+%28Flex+Examples%29 http://cookbooks.adobe.com/post_Remove_white_box_at_bottom_right_corner_of_contain-16864.html
... View more
09-30-2010
12:37 PM
|
0
|
0
|
1562
|
|
POST
|
Jonas,
//Line 15 -22 replace with
<viewer:BaseWidget xmlns:esri="http://www.esri.com/2008/ags"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:Search="widgets.Search.*"
xmlns:viewer="com.esri.viewer.*"
x="600" y="300"
widgetConfigLoaded="init()" currentState="textInput">
//comment out
//Line 801 wTemplate.addTitlebarButton(ICON_URL + "i_searchgraphical.png", graphicalsearchLabel, showStateGraphicalSearch);
//Change line 801 to
wTemplate.selectedTitlebarButtonIndex = 1;
... View more
09-30-2010
06:28 AM
|
0
|
0
|
1003
|
|
POST
|
API Team, I wonder If you all have tried to import the FlexViewer 2.1 Src as defined in your instruction on a clean (no setting tweaked in Flash Builder like you guys probably have) and then switched to design view on any widget and refreshed? These are the errors that I get. The same errors that Ejay gets and posted in another thread. I thought I had these errors resolved but they have crept back up.
... View more
09-30-2010
05:43 AM
|
0
|
0
|
3784
|
| 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
|