''generates object for the specified MapServerLegendClass Private Function legendClass(ByVal lclass As MapServerLegendClass) As jcLegend Dim jcLeg As New jcLegend jcLeg.label = lclass.Label ''!--you may need the line below if you webserver return a image url that is not a ''fully(qualified) url address--! jcLeg.url = Replace(lclass.SymbolImage.ImageURL, "wllbgis", "wlu-23-11.wlu.ca") ''jcLeg.url = lclass.SymbolImage.ImageURL Return jcLeg End Function
Rubio, Your fully qualified domain name is http://wlu-23-11.wlu.ca You really want to get away from using local host or the IP address.So ensure you are using http://wlu-23-11.wlu.ca/restLegend/restLegend.asmx?WSDL in your LivemapsWidget.mxml
Meengla, Well I thought that I had that issue resolved using the loader... I guess it's back to the drawing board on this one. For now you can fix the issue by setting the directory cleanup to 1 hour on your ArcGISOutput folder in ArcGIS Server Manager. So go to server manager and click GIS Server button on the left and then Server Directories, once there verify that the chow combobox says Output Directories and then click the Edit (little pencil icon), look at the Maximum File Age: and set to 60 minute(s)
<?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:HBox xmlns:mx ="http://www.adobe.com/2006/mxml" xmlns:flash ="flash.filters.*" width ="95%" minHeight ="22" backgroundAlpha ="1" paddingLeft ="3" paddingRight ="3" verticalAlign ="middle" backgroundColor="#FFFFFF"> <mx:Script> <![CDATA[ import flash.display.Loader; [Bindable] private var recicon:String = ""; [Bindable] private var title:String; private var _infoData:Object; private var _loader:Loader; public function get infoData():Object { return _infoData; } public function set infoData(value:Object):void { _infoData = value; _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event):void { recIcon.source = e.currentTarget.content; recIcon.visible = true; recIcon.includeInLayout = true; } ); _loader.load(new URLRequest(encodeURI(infoData.icon))); title = infoData.title; } ]]> </mx:Script> <mx:Image id="recIcon" visible="false" includeInLayout="false" /> <mx:VBox verticalGap="0" width="90%"> <mx:Text selectable="false" fontWeight="bold" text="{title}" width="90%"/> </mx:VBox> </mx:HBox>
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.