|
POST
|
Tom, I am afraid so unless the developer of the code you are using adds the same ability you are looking for.
... View more
08-17-2010
04:00 AM
|
0
|
0
|
2122
|
|
POST
|
mei 09, Try breaking them up into 2 different groups. I have heard that people have trouble after 7 items
... View more
08-17-2010
03:58 AM
|
0
|
0
|
474
|
|
POST
|
Jason, Open a web browser and test if the web service is doing what it is suppose to. So on the ArcGIS Server machine that you ran the setup on type "http://localhost/restLegend/restLegend.asmx" and then click on generateLegends and type in some default values like: soapUrl: http://services.arcgisonline.com/ArcGIS/services/Demographics/ESRI_Diversity_US_2D/MapServer dpi: 96 pWidth: 20 pHeight: 20 serviceName: Test That should return a XML result.
... View more
08-14-2010
02:03 PM
|
0
|
0
|
3649
|
|
POST
|
Bo, I did that in my old 1.x App, here is the code I used. This is the whole ControllerMenuItem.mxml look at what the code is doing basically it is testing to see what has been activated and changing a certain icon based on that. <?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2008 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions. See use restrictions in the file:
// <install location>/FlexViewer/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<mx:VBox xmlns:mx ="http://www.adobe.com/2006/mxml"
styleName ="MenuBox"
width ="100%"
verticalGap ="0"
horizontalAlign ="center">
<mx:Script>
<![CDATA[
import com.esri.solutions.flexviewer.AppEvent;
import com.esri.solutions.flexviewer.SiteContainer;
import mx.controls.Alert;
private const STYLE_MENU_ACTIVE:String = "MenuBoxActive";
private const STYLE_MENU_NORMAL:String = "MenuBox";
/**
* itemId is the runtime assigned numeric number to the menu item.
*/
public var itemId:Number;
/**
* itemIcon allows add a small icon to the left of the menu item to give
* a visual indication of the funtion of the menu item.
*/
[Bindable]
public var itemIcon:String;
/**
* itemLabel is the text label of the menu item.
*/
[Bindable]
public var itemLabel:String;
/**
* itemRuleVisible toggles the speration line between menu items.
* It can be set to be visible or invisible and is automatically
* set to invisible for the last menu item.
*
* @default true
*/
[Bindable]
public var itemRuleVisible:Boolean = true;
public var itemAction:String;
public var itemValue:String;
/**
* @private
* TODO: logic here need to be refactoried to remove the depandency on named menus.
*/
private function menuItemClick():void
{
switch (itemAction)
{
case "widget":
{
SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, itemId));
if (itemLabel == "Identify" || itemLabel == "Google Street View")
{
var cMenu1:ControllerMenu =
this.parent.parent.parent.parent.parent.parent.getChildAt(1) as ControllerMenu;
cMenu1.menuImage = "com/esri/solutions/flexviewer/assets/images/icons/i_nav.png"
}
break;
}
case "navtool":
{
var data:Object =
{
tool: itemValue,
status: itemLabel
}
var cMenu:ControllerMenu = this.parent.parent.parent.parent.parent as ControllerMenu;
switch (itemLabel) {
case "Zoom In":
{
cMenu.menuImage = "com/esri/solutions/flexviewer/assets/images/icons/i_nav_zoomin.png"
break;
}
case "Zoom Out":
{
cMenu.menuImage = "com/esri/solutions/flexviewer/assets/images/icons/i_nav_zoomout.png"
break;
}
case "Re-center Map":
{
cMenu.menuImage = "com/esri/solutions/flexviewer/assets/images/icons/i_nav_pan.png"
break;
}
}
SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_MAP_NAVIGATION, false, false, data));
break;
}
case "basemap":
{
SiteContainer.dispatchEvent(new AppEvent(AppEvent.BASEMAP_MENU_CLICKED, false, false, itemValue));
break;
}
case "link":
{
/* var theURL:String = itemValue;
if (theURL.indexOf("http") < 0)
{
theURL = "http://gis.calhouncounty.org/FlexView/" + itemValue;
}
var feats:String = "resizable=yes, scrollbars=1,left=0,top=0,width="+ this.parentApplication.width + ",height=" + 30 + this.parentApplication.height;
ExternalInterface.call("window.open", theURL, "_blank" , feats); */
navigateToURL(new URLRequest(itemValue));
break;
}
}
}
private function highlight():void
{
this.styleName = this.STYLE_MENU_ACTIVE;
}
private function clearHighlight():void
{
this.styleName = this.STYLE_MENU_NORMAL;
}
]]>
</mx:Script>
<mx:HBox cornerRadius="5" horizontalGap="0" verticalAlign="middle" horizontalAlign="left" mouseOver="highlight()" mouseOut="clearHighlight()" mouseChildren="false" click="menuItemClick()" width="100%" buttonMode="true" useHandCursor="true" height="24" themeColor="#FFFFFF">
<mx:Spacer width="10"/>
<mx:Image source="{itemIcon}" height="20" width="20"/>
<mx:Label text="{itemLabel}" styleName="MenuItem" paddingLeft="2" />
</mx:HBox>
<mx:HRule styleName="ControllerBreak" alpha="0.3" visible="{itemRuleVisible}" width="90%" />
</mx:VBox>
... View more
08-13-2010
04:54 PM
|
0
|
0
|
594
|
|
POST
|
Jason, I forgot I had already done this work. In the zip is also an update to the liveMapsWidget.mxml code that you may want, it is for when you turn off sub layers of a map service in the TOC those layers are turned off in the legend also.
... View more
08-13-2010
08:02 AM
|
0
|
0
|
3649
|
|
POST
|
Jason, The whole ASP.net webservice was built using 9.3 server so a new web service would have to created for 10. I'll have to see what I can do when I get some time.
... View more
08-13-2010
07:34 AM
|
0
|
0
|
3649
|
|
POST
|
Phillip, So all you need to do is open the CSS File that you are using for your App (i.e. Blackgold.css by default) and replace the existing esri|Navigation with this one
esri|Navigation
{
skinClass: ClassReference("com.esri.viewer.skins.NavigationHorizontalSkin");
tickSpacing: 6;
left: NaN;
top: NaN;
bottom: 20;
horizontal-center: 0;
}
In the src.com.esri.viewer.skins folder right click and choose new MXML Skin For the name enter : NavigationHorizontalSkin For Host Component enter : com.esri.ags.components.Navigation Uncheck create copy of Then click finish Select all the text that was inserted and paste the code from the sample That's it run the app and you now have a horizontal navigation bar
... View more
08-13-2010
07:15 AM
|
0
|
0
|
1447
|
|
POST
|
Jackson, All you need to do is change the theme to Halo instead of Spark. To do this right click on your project and go to properties and Flex Theme and switch to Abobe Themes - Halo.
... View more
08-12-2010
03:04 PM
|
0
|
0
|
1177
|
|
POST
|
Alexander, You would need to use some code like this
map.lods = map.lods.slice(9);//Remove first 9 lods
I would do this after you do the other though.
... View more
08-12-2010
05:01 AM
|
0
|
0
|
1562
|
|
POST
|
Alexander, OK, now I see that we have to go back to what you were originally trying to do and just remove the last couple of LODs from the map. So there are a couple of things you can try one is this in the MapManager.mxml
//map load complete
private function mapLoadComplete(event:MapEvent):void
{
// ViewerContainer.dispatchEvent(new AppEvent(AppEvent.LAYER_LOADED));
map.lods.length = 18;
}
This eliminates the last 2 LODS in the map.
... View more
08-12-2010
04:18 AM
|
0
|
0
|
1562
|
|
POST
|
Divya, Do you have a crossdomain.xml file on server2? Have you read the concept portion of the help that talks about deploying your app? http://help.arcgis.com/en/webapi/flex/help/content/deploy_application.htm
... View more
08-12-2010
03:48 AM
|
0
|
0
|
1499
|
|
POST
|
Cattyann, The red selection color is controlled by the graphicLineSym and the graphicPolySym vars on lines 71 and 73 in the QueryWidget.mxml.
... View more
08-11-2010
07:06 PM
|
0
|
0
|
1610
|
|
POST
|
Matthew, OK, I don't have access to that source yet but there should not be a difference in how it handles the widgettemplate. I just made the change of the width and height in the templatewidget element like I told you, in a 1.3 and a 1.0 flexviewer project and they worked as expected. So the question is have you seen any of your code changes take affect when you run or debug your project?
... View more
08-11-2010
01:58 PM
|
0
|
0
|
1605
|
|
POST
|
Matthew, Ahh, I know what your issue is... In SFV 1.3 there are two LiveMapWidgets on in the src/com/esri/solutions/flexviewer/widgets/LiveMapsWidget.mxml and another in src/com/esri/solutions/esa/widgets/LiveMapsWidget.mxml the latter one in the esa folder is the one that is used by default try changing that one.
... View more
08-11-2010
01:16 PM
|
0
|
0
|
1605
|
| 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
|