|
POST
|
Sandeep, Strange all of that is fine... Must be somewhere in your banner.mxml. Try pasting your banner.mxml code. Be sure to use the # button in the toolbar to wrap your code in the proper code block.
... View more
06-16-2010
11:35 AM
|
0
|
0
|
1209
|
|
POST
|
Sandeep, Please attach your <subtitle> from your config.xml. Also look at your BannerSubtitle css style in your style shhet.
... View more
06-16-2010
10:50 AM
|
0
|
0
|
1209
|
|
POST
|
Sandeep, All you have to do is change this line in the Banner.mxml <mx:Label styleName="BannerSubtitle" text="{subtitle}"/> to this one <mx:Text styleName="BannerSubtitle" htmlText="{subtitle}"/> and in the config.xml use a line like this for the subtitle <subtitle>Powered by ArcGIS Server Powered by ArcGIS Server Powered by ArcGIS Server<br/>Powered by ArcGIS Server Powered by ArcGIS Server</subtitle> The important part is <br/> for the line return
... View more
06-16-2010
10:01 AM
|
0
|
0
|
1209
|
|
POST
|
wyeo, your locator service probably does not have a Loc_name field that it returns so you are getting the error.
... View more
06-16-2010
08:29 AM
|
0
|
0
|
348
|
|
POST
|
Peter, Here is the code to do exactly what you are after.
... View more
06-16-2010
07:10 AM
|
0
|
0
|
280
|
|
POST
|
Ravinder, Sure this is what I use when opening my Google StreetView window. var url:String = "http://gis.calhouncounty.org/FlexView/StreetView.html?lat=" + lat + "&lng=" + lng;
var window:String = "StreetView";
var features:String = "toolbar=no,location=no,resizable=no,directories=no,status=no,scrollbars=no,copyhistory=no,width=610,height=700";
var WINDOW_OPEN_FUNCTION : String = "window.open";
ExternalInterface.call( WINDOW_OPEN_FUNCTION, url, window, features );
... View more
06-15-2010
11:20 AM
|
0
|
0
|
1187
|
|
POST
|
Susan, Lets try that again. I had to rename the file ext to lpk to get past the file size limit of a txt file. Still the same thing just rename to mxml when you get it.
... View more
06-14-2010
01:39 PM
|
0
|
0
|
568
|
|
POST
|
Allison, With out much to go on here all I can do is take stabs in the dark: 1. On your web server where the app is deployed ensure you have the sd_overlay.png file. Should be in the \com\esri\solutions\flexviewer\assets\images\toc folder. 2. Look at your REST Services directory for that map service and then a layer that is scale dependent and ensure that it has either a max or min scale (like my layer 67 has Min. Scale: 15000).
... View more
06-14-2010
12:46 PM
|
0
|
0
|
818
|
|
POST
|
Susan, Here is the mxml just renamed to dot txt. so when you download it just change the extension to dot mxml and overwrite your current LiveLayerWidget.mxml in your src.
... View more
06-14-2010
12:37 PM
|
0
|
0
|
568
|
|
POST
|
Allison, That is strange... Is your map service public? If so I could test on my end and see if i get the same results.
... View more
06-14-2010
12:29 PM
|
0
|
0
|
818
|
|
POST
|
Allison, I am the developer of that code and have not seen the issue you are having. Did you clear your REST Service directory Cache once you made your map service changes?
... View more
06-14-2010
11:59 AM
|
0
|
0
|
818
|
|
POST
|
Susan, Here is a zip that has the complete LiveLayerWidget.mxml. It has been tried and tested.
... View more
06-14-2010
11:55 AM
|
0
|
0
|
902
|
|
POST
|
Simon, The Flex Dev Team stated that they are anticipating a public Beta of the 2.0 viewer this month. No exact date.
... View more
06-14-2010
04:57 AM
|
0
|
0
|
295
|
|
POST
|
David, There are several ways you could do this depending on what you want as far as user experience. 1. You could just add the new map service to the existing map and then have a button to remove it when the user wanted to return to the normal map. 2. Use the removeAllLayers command of the map and add just the desired layer (pretty complicated to get the map map back to it's original state and probably not the desired user experience) 3. Set the visibility of all the other map layers to false, after the new layer is added and then have a button to revert. 4. Have your standard map component and then a second map component that is not visible that would get the new map service added and be set to visible when desired and vice versa. As far as the code and user interaction to get an event fired for any of the the above routes. I would add a graphics layer that had a mouse over and mouse double click event attached to the extent of the area that the map defines. The graphics symbology would be completely transparent or nearly transparent until the mouse is over and then it would change to 100 percent alpha and maybe have to text on the screen that says to view area double click. The double click would avoid the use just click on the area and only wanting to pan or zoom.
... View more
06-14-2010
04:52 AM
|
0
|
0
|
284
|
|
POST
|
I have run into an issue using the 2.0 API update 3 that I think is a BUG or just my lack of understanding. So here is the scenario. Using the DrawTool and ensuring that the map has the useHandCursor set to true. The LINE, FREEHAND_POLYLINE, FREEHAND_POLYGON, and EXTENT all return the mouse cursor to the hand once you finish drawing and the DrawTool is deactivated. The MAPPOINT, MULTIPOINT, POLYLINE and POLYGON all do not restore the hand cursor once the DrawTool is deactivated. Here is the DrawToolSample from the sample page with the one little change of having the useHandCursor set to true on the map, that demonstrates this issue. <?xml version="1.0" encoding="utf-8"?>
<s:Application 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:esri="http://www.esri.com/2008/ags"
pageTitle="Basic usage of DrawTool">
<s:layout>
<s:VerticalLayout paddingBottom="5"/>
</s:layout>
<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
mx|ToolTip
{
font-size: 14;
}
</fx:Style>
<fx:Script>
<![CDATA[
import spark.events.IndexChangeEvent;
protected function bb_changeHandler(event:IndexChangeEvent):void
{
if (event.newIndex == -1)
{
drawTool.deactivate();
}
else
{
switch (bb.dataProvider.getItemAt(event.newIndex))
{
case "Point":
drawTool.activate(DrawTool.MAPPOINT);
break;
case "Multipoint":
drawTool.activate(DrawTool.MULTIPOINT);
break;
case "Single Line":
drawTool.activate(DrawTool.LINE);
break;
case "Polyline":
drawTool.activate(DrawTool.POLYLINE);
break;
case "FreeHand Polyline":
drawTool.activate(DrawTool.FREEHAND_POLYLINE);
break;
case "Polygon":
drawTool.activate(DrawTool.POLYGON);
break;
case "Freehand Polygon":
drawTool.activate(DrawTool.FREEHAND_POLYGON);
break;
case "Rectangle":
drawTool.activate(DrawTool.EXTENT);
break;
}
}
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Symbol for all point shapes -->
<esri:SimpleMarkerSymbol id="sms"
color="0x00FF00"
size="12"
style="square"/>
<!-- Symbol for all line shapes -->
<esri:SimpleLineSymbol id="sls"
color="0x00FF00"
width="3"/>
<!-- Symbol for all polygon shapes -->
<esri:SimpleFillSymbol id="sfs"
color="0xFFFFFF"
style="diagonalcross">
<esri:outline>
<esri:SimpleLineSymbol color="0x00FF00" width="2"/>
</esri:outline>
</esri:SimpleFillSymbol>
<esri:DrawTool id="drawTool"
fillSymbol="{sfs}"
graphicsLayer="{myGraphicsLayer}"
lineSymbol="{sls}"
map="{myMap}"
markerSymbol="{sms}"/>
</fx:Declarations>
<s:controlBarLayout>
<s:HorizontalLayout horizontalAlign="center"
paddingBottom="7"
paddingTop="7"/>
</s:controlBarLayout>
<s:controlBarContent>
<s:ButtonBar id="bb" change="bb_changeHandler(event)">
<s:ArrayList>
<fx:String>Point</fx:String>
<fx:String>Multipoint</fx:String>
<fx:String>Single Line</fx:String>
<fx:String>Polyline</fx:String>
<fx:String>FreeHand Polyline</fx:String>
<fx:String>Polygon</fx:String>
<fx:String>Freehand Polygon</fx:String>
<fx:String>Rectangle</fx:String>
</s:ArrayList>
</s:ButtonBar>
</s:controlBarContent>
<esri:Map id="myMap" level="3" useHandCursor="true">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<esri:GraphicsLayer id="myGraphicsLayer"/>
</esri:Map>
<s:Label text="The DrawTool can be used to draw new features which can then either be used as input for another task or saved as new features in a feature service (using the FeatureLayer.applyEdits)" width="100%"/>
</s:Application>
... View more
06-12-2010
02:55 PM
|
0
|
1
|
599
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM | |
| 1 | 01-30-2019 07:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2025
05:12 AM
|