|
POST
|
Jeremy, You want to use the initial and full extent info fro the REST Service Directory. So open a web browser and type in http://YourArcGISServerName/ArcGIS/rest/services and then choose the map service and get the initial and full extent values from that web page.
... View more
07-28-2010
05:50 AM
|
0
|
0
|
1352
|
|
POST
|
Jason, Please attach your LiveLayerWidget.mxml and xml.
... View more
07-27-2010
09:58 AM
|
0
|
0
|
1994
|
|
POST
|
Nathan, Your issue now is with the proxy in the mapmanager.mxml. Comment out line 177 //dynlayer.proxyURL = configData.proxy;
... View more
07-27-2010
06:59 AM
|
0
|
0
|
953
|
|
POST
|
Jason, Can you get that exact query to run in the REST Service page for that layer?
... View more
07-27-2010
05:28 AM
|
0
|
0
|
1994
|
|
POST
|
Ganael, Most cartographic lines use composite symbols and the documentation for the createswatch states Creates a swatch for a symbol which can be used in a legend. Swatches only work with symbols which are supported in the FeatureService, i.e., swatches are not supported for CompositeSymbol, InfoSymbol and TextSymbol. as far as it not working for the Symbol.draw method I don't know why that is not working.
... View more
07-27-2010
05:25 AM
|
0
|
0
|
563
|
|
POST
|
Guys, I am not sure what you are doing wrong. I developed two very simple widgets in SFV1.3 to show how it works and to test the messaging between widgets any they work just fine. Widget A: <?xml version="1.0" encoding="utf-8"?>
<BaseWidget xmlns="com.esri.solutions.flexviewer.*" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
private function sendMessage():void
{
var recAC:ArrayCollection = new ArrayCollection();
recAC.addItem("Hello World");
addSharedData("Some Unique Name", recAC);
}
]]>
</mx:Script>
<WidgetTemplate id="wTemplate">
<mx:Button x="10" y="10" label="Button" click="sendMessage()"/>
</WidgetTemplate>
</BaseWidget> Widget B: <?xml version="1.0" encoding="utf-8"?>
<BaseWidget xmlns="com.esri.solutions.flexviewer.*" xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<![CDATA[
import com.esri.solutions.flexviewer.SiteContainer;
import com.esri.solutions.flexviewer.utils.Hashtable;
import mx.collections.ArrayCollection;
import com.esri.solutions.flexviewer.AppEvent;
private function init():void
{
SiteContainer.addEventListener(AppEvent.DATA_UPDATED, sharedDataUpdated);
}
private function sharedDataUpdated(event:AppEvent):void
{
var dataTable:Hashtable = event.data as Hashtable;
if (dataTable.containsKey("Some Unique Name"))
{
var recAC:ArrayCollection = dataTable.find("Some Unique Name") as ArrayCollection;
var obj:Object = recAC[0];
//do something with obj
ta.text = obj.toString();
dataTable.remove("Some Unique Name");
}
}
]]>
</mx:Script>
<WidgetTemplate id="wTemplate">
<mx:TextArea id="ta" width="100%" height="100%"/>
</WidgetTemplate>
</BaseWidget> Config.xml entries: <widget label="Send" icon="com/esri/solutions/flexviewer/assets/images/icons/i_lego.png" menu="menuWidgets" config="">com/esri/solutions/flexviewer/widgets/SendMessageWidget.swf</widget>
<widget label="Recieve" icon="com/esri/solutions/flexviewer/assets/images/icons/i_lego.png" menu="menuWidgets" config="">com/esri/solutions/flexviewer/widgets/MessagingWidget.swf</widget>
... View more
07-27-2010
05:18 AM
|
0
|
0
|
927
|
|
POST
|
C Pennington, Yep you will have to wait for the full release.
... View more
07-26-2010
10:32 AM
|
0
|
0
|
1234
|
|
POST
|
Jason, Did you import UIComponent? import mx.core.UIComponent
... View more
07-26-2010
08:41 AM
|
0
|
0
|
1994
|
|
POST
|
mmust, The NavigationTool has to be given the map that it is to work with so if you are using multiple maps that you have to change the map attribute of the NavigationTool each time you switch the map.
... View more
07-26-2010
07:36 AM
|
0
|
0
|
446
|
|
POST
|
Glenn, I went to maplage.com yesterday and I am a little unclear what the site is all about and where to find info on the API? Can you clear this up for me?
... View more
07-26-2010
06:55 AM
|
0
|
0
|
2746
|
|
POST
|
Glen, Using this sample app I can get the code to work fine. As you can see in the attached image. I forgot to mention the opaqueBackground="false" is not correct Here is the documentation on it. If set to a number value, the surface is opaque (not transparent) with the RGB background color that the number specifies. If set to null (the default value), the display object has a transparent background. The opaqueBackground property is intended mainly for use with the cacheAsBitmap property, for rendering optimization. For display objects in which the cacheAsBitmap property is set to true, setting opaqueBackground can improve rendering performance. <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:ml="com.MapLarge.*"
applicationComplete="testLoad()"
>
<esri:Map id="gisMap" >
<esri:ArcGISTiledMapServiceLayer
id="baseMap"
url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<ml:MapLargeTileLayer id="virtualTiles" />
</esri:Map>
<fx:Script>
<![CDATA[
private function testLoad():void{
var mapObj:Object = gisMap;
var layerObj:Object = baseMap; //inspect with debugger
}
]]>
</fx:Script>
</s:Application>
... View more
07-25-2010
07:58 PM
|
0
|
0
|
2746
|
|
POST
|
V, Best thing for you to do is download and read the Developer Guide. http://gis.calhouncounty.org/FlexViewerDevelopersGuide_.pdf
... View more
07-25-2010
06:23 PM
|
0
|
0
|
1234
|
|
POST
|
Glen, You still have a problem with LODs. The debugger is rounding the values of the ArcGIS Online LODs so because they are not identical both layers will not display together. To get the exact values of the LODs in one of ESRI you need to look at it's REST service directory page. Here is the corrected code. package com.MapLarge
{
import com.esri.ags.SpatialReference;
import com.esri.ags.geometry.Extent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.layers.TiledMapServiceLayer;
import com.esri.ags.layers.supportClasses.LOD;
import com.esri.ags.layers.supportClasses.TileInfo;
import flash.net.URLRequest;
import mx.containers.Tile;
public class MapLargeTileLayer extends TiledMapServiceLayer
{
public function MapLargeTileLayer()
{
super();
buildTileInfo();
setLoaded(true); // Map will only use loaded layers
}
internal const scalar:Number = 1;
public var _tileInfo:TileInfo;
private function buildTileInfo():void
{
var tileInfo:TileInfo = new TileInfo();
tileInfo.spatialReference = new SpatialReference(102100);
tileInfo.dpi = 96;
tileInfo.format = "PNG8";
tileInfo.width = 256;
tileInfo.height = 256;
tileInfo.origin = new MapPoint(-2.0037508342787E7,2.0037508342787E7);
tileInfo.lods = [
new LOD(0,156543.033928,591657527.591555),
new LOD(1,78271.5169639999,295828763.795777),
new LOD(2,39135.7584820001,147914381.897889),
new LOD(3,19567.8792409999,73957190.948944),
new LOD(4,9783.93962049996,36978595.474472),
new LOD(5,4891.96981024998,18489297.737236),
new LOD(6,2445.98490512499,9244648.868618),
new LOD(7,1222.99245256249,4622324.434309),
new LOD(8,611.49622628138,2311162.217155),
new LOD(9,305.748113140558,1155581.108577),
new LOD(10,152.874056570411,577790.554289),
new LOD(11,76.4370282850732,288895.277144),
new LOD(12,38.2185141425366,144447.638572),
new LOD(13,19.1092570712683,72223.819286),
new LOD(14,9.55462853563415,36111.909643),
new LOD(15,4.77731426794937,18055.954822),
new LOD(16,2.38865713397468,9027.977411),
new LOD(17,1.19432856685505,4513.988705),
new LOD(18,0.597164283559817,2256.994353),
new LOD(19,0.298582141647617,1128.497176)
];
_tileInfo = tileInfo;
}
override public function get fullExtent():Extent
{
return new Extent(-2.0037508342787E7, -1.99718688804086E7, 2.0037508342787E7, 1.99718688804086E7,new SpatialReference(102100));
}
override public function get initialExtent():Extent
{
return this.fullExtent;
}
override public function get units():String
{
return "esriMeters";
}
override public function get spatialReference():SpatialReference
{
return new SpatialReference(102100);//102113
}
override public function get tileInfo():TileInfo {
return _tileInfo;
}
override protected function getTileURL(level:Number, row:Number, col:Number):URLRequest
{
//http://2api.maplarge.com/Tile/Tile?layer=geo~poly~Counties|data~AllGeocodedFinal~DonationCode~sum&x=2&y=5&z=4&filter=&shader=method~interval|count~100|colors~DarkBlue-200/Blue-128,Blue-128/White-128,White-128/Red-128,Red-128/DarkRed-200|ranges~-1000000/-20000,-20000/0,0/20000,20000/1000000
var one:String = "http://2api.maplarge.com/Tile/Tile?layer=geo~poly~Counties|data~AllGeocodedFinal~DonationCode~sum";
var two:String = "&x="+col+"&y="+row+"&z="+ level;
var three:String = "&filter=&shader=method~interval|count~100|colors~DarkBlue-200/Blue-128,Blue-128/White-128,White-128/Red-128,Red-128/DarkRed-200|ranges~-1000000/-20000,-20000/0,0/20000,20000/1000000";
var url:String = one + two + three;
return new URLRequest(url);
}
}
}
... View more
07-25-2010
06:17 PM
|
0
|
0
|
2746
|
|
POST
|
Glenn, The issue is that both tiled (Cached) map services need to have the same LODs (Levels of Display) with in your case they do not. I don't have the specifics for you of what needs to be changed but this function in the PortlandTiledMapServiceLayer need to be updated ti have the same LODs as ArcGIS Online. private function buildTileInfo():void
{
_tileInfo.height = 512;
_tileInfo.width = 512;
_tileInfo.origin = new MapPoint(-180, 90);
_tileInfo.spatialReference = new SpatialReference(4326);
_tileInfo.lods = [
new LOD(0, 0.351562499999999, 147748799.285417),
new LOD(1, 0.17578125, 73874399.6427087),
new LOD(2, 0.0878906250000001, 36937199.8213544),
new LOD(3, 0.0439453125, 18468599.9106772),
new LOD(4, 0.02197265625, 9234299.95533859),
new LOD(5, 0.010986328125, 4617149.97766929),
new LOD(6, 0.0054931640625, 2308574.98883465),
new LOD(7, 0.00274658203124999, 1154287.49441732),
new LOD(8, 0.001373291015625, 577143.747208662),
new LOD(9, 0.0006866455078125, 288571.873604331),
new LOD(10, 0.000343322753906249, 144285.936802165),
new LOD(11, 0.000171661376953125, 72142.9684010827),
new LOD(12, 0.0000858306884765626, 36071.4842005414),
new LOD(13, 0.0000429153442382813, 18035.7421002707),
new LOD(14, 0.0000214576721191406, 9017.87105013534),
new LOD(15, 0.0000107288360595703, 4508.93552506767)
];
}
... View more
07-25-2010
10:57 AM
|
0
|
0
|
2746
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 16 | 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
|