|
POST
|
Desa: any example of the above scenerio will be appreciated
... View more
01-10-2011
11:11 AM
|
0
|
0
|
821
|
|
POST
|
what i wanted was: create graphic layer from the feature layer and render it differently than the feature layer..I donot want to loose the feature layer and it will be rendered different than the graphic layer..
... View more
01-10-2011
11:06 AM
|
0
|
0
|
821
|
|
POST
|
However it looks like the feature layer does not show (even though you make fLayer visible and gl not visible)
... View more
01-10-2011
11:02 AM
|
0
|
0
|
821
|
|
POST
|
I have a feature layer and it shows polygons. i want to create another graphic layer from the above .. I tried to use graphiclayer.graphicprovider = featurelayer.graphicprovider , but it did not work.. I tried creating a deep copy of the arraycollection of the featurelayer and then use that as the graphiclayer graphicprovider but that did not work Is there any way of creating this? Thanks
... View more
01-10-2011
07:24 AM
|
0
|
8
|
3133
|
|
POST
|
If I use Bing map as base map, and flex api 2.0 , and load data points from sql server, Do I need to have Arcgis server at all? Is there any fee/license for using flex api 2.0?
... View more
10-25-2010
10:44 AM
|
0
|
1
|
590
|
|
POST
|
Desa: Do you have any example of using custom renderer? Both the class and implementation... Thanks..
... View more
10-05-2010
08:37 AM
|
0
|
0
|
1013
|
|
POST
|
I converted symbol function as follows: package Components { import com.esri.ags.Graphic; import com.esri.ags.renderers.Renderer; import com.esri.ags.symbols.Symbol; public class MinorityRenderer extends Renderer { public var symbol1:Symbol; public var symbol2:Symbol; public var symbol3:Symbol; public var symbol4:Symbol; public var symbol5:Symbol; public var symbol6:Symbol; public var othersymbol:symbol; public var booldefault:Boolean; public var strminoritypercentfields:String; public var numaabreak1toplimit:Number; public var numaabreak2toplimit:Number; public var numaabreak3toplimit:Number; public var numaabreak4toplimit:Number; public var numaabreak5toplimit:Number; private var minpall:Number; private var tmnumber:Number=0; public function MinorityIncomeRenderer() { super(); } override public function getSymbol(graphic:Graphic):Symbol { if (booldefault) minpall = graphic.attributes.MIN_P_ALL; else { if (stringselected.length > 0) { if (strminoritypercentfields.indexOf("t_pop_black_african_amer") > -1) tmnumber += Number(graphic.attributes.t_pop_black_african_amer); if (strminoritypercentfields.indexOf("t_pop_asian") > -1) tmnumber += Number(graphic.attributes.t_pop_asian); if (strminoritypercentfields.indexOf("t_pop_hisp") > -1) tmnumber += Number(graphic.attributes.t_pop_hisp); if (strminoritypercentfields.indexOf("t_pop_haw_PI") > -1) tmnumber += Number(graphic.attributes.t_pop_haw_PI); minpall = (graphic.attributes.persons_pop==0)?0:(tmnumber*100/graphic.attributes.persons_pop); } else minpall = 0; } if (minpall >=0) { if (minpall < numaabreak1toplimit)//20 return symbol1; else if (minpall >= numaabreak1toplimit && minpall < numaabreak2toplimit) return symbol2; else if (minpall >= numaabreak2toplimit && minpall < numaabreak3toplimit) return symbol3; else if (minpall >= numaabreak3toplimit && minpall < numaabreak4toplimit) return symbol4; else if (minpall >= numaabreak4toplimit && minpall < numaabreak5toplimit) return symbol5; else if (minpall >= numaabreak5toplimit ) return symbol6; } else return othersymbol; } } } But for implementing I am having issue with getsymbol function with input parameter???? How I am get graphic for the getSymbol function input parameter?????? private function getaarenderer():Renderer { var minorityrenderer:MinorityRenderer = new MinorityRenderer(); minorityrenderer.booldefault = minoritysetting.boolminoritypercentdefault; minorityrenderer.strminoritypercentfields = minoritysetting.strminoritypercentfields; minorityrenderer.numaabreak1toplimit = commonaasetting.numaabreak1toplimit; minorityrenderer.numaabreak2toplimit = commonaasetting.numaabreak2toplimit; minorityrenderer.numaabreak3toplimit = commonaasetting.numaabreak3toplimit; minorityrenderer.numaabreak4toplimit = commonaasetting.numaabreak4toplimit; minorityrenderer.numaabreak5toplimit = commonaasetting.numaabreak5toplimit; minorityrenderer.symbol1 = gsymbol1; minorityrenderer.symbol2 = gsymbol2; minorityrenderer.symbol3 = gsymbol3; minorityrenderer.symbol4 = gsymbol4; minorityrenderer.symbol5 = gsymbol5; minorityrenderer.symbol6 = gsymbol5; minorityrenderer.getSymbol(?????); }
... View more
10-05-2010
06:20 AM
|
0
|
0
|
1013
|
|
POST
|
I had a symbolfunction that looked like this: private function getTrackSymbol(graphic:Graphic):Symbol { var symbol:Symbol = nodatasymbol; var minpall:Number; if (mapvariables.strshowAALayer==MapInitialData.strMinorityField ) { if (minoritysetting.boolminoritypercentdefault) minpall = graphic.attributes.MIN_P_ALL; else { if (minoritysetting.strminoritypercentfields.length > 0) { var tmnumber:Number = 0; if (minoritysetting.strminoritypercentfields.indexOf("t_pop_black_african_amer") > -1) tmnumber += Number(graphic.attributes.t_pop_black_african_amer); if (minoritysetting.strminoritypercentfields.indexOf("t_pop_asian") > -1) tmnumber += Number(graphic.attributes.t_pop_asian); if (minoritysetting.strminoritypercentfields.indexOf("t_pop_hisp") > -1) tmnumber += Number(graphic.attributes.t_pop_hisp); if (minoritysetting.strminoritypercentfields.indexOf("t_pop_haw_PI") > -1) tmnumber += Number(graphic.attributes.t_pop_haw_PI); minpall = (graphic.attributes.persons_pop==0)?0:(tmnumber*100/graphic.attributes.persons_pop); } else minpall = 0; } } else if (mapvariables.strshowAALayer==MapInitialData.strIncomeField) minpall = graphic.attributes.INC_P_ALL; // show on map if (minpall >=0 ) { if (minpall < commonaasetting.numaabreak1toplimit)//20 { symbol = gsymbol1;//trackinsymbol[0]; } else if (minpall >= commonaasetting.numaabreak1toplimit && minpall < commonaasetting.numaabreak2toplimit) { symbol = gsymbol2;//trackinsymbol[1]; } else if (minpall >= commonaasetting.numaabreak2toplimit && minpall < commonaasetting.numaabreak3toplimit) { symbol = gsymbol3;//trackinsymbol[2]; } else if (minpall >= commonaasetting.numaabreak3toplimit && minpall < commonaasetting.numaabreak4toplimit) { symbol = gsymbol4;//trackinsymbol[3]; } else if (minpall >= commonaasetting.numaabreak4toplimit && minpall < commonaasetting.numaabreak5toplimit) { symbol = gsymbol5;//trackinsymbol[3]; } else if (minpall >= commonaasetting.numaabreak5toplimit ) { symbol = gsymbol6;//trackinsymbol[3]; } } return symbol; } The issue is here: in symbolfunction I could get a value say: minpall = graphic.attributes.MIN_P_ALL; and based on user selection I could compute a value and then compare the value with the limits to give symbols. But in classbreak renderer in api 2, I can only mention classValuerenderer.attribute = "MIN_P_ALL"; and compare that attribute value to the limits.. Is there a way to do a computed value comparison with the limits in api 2 (similar to symbol function in 1.3)?
... View more
10-04-2010
10:22 AM
|
0
|
7
|
1336
|
|
POST
|
RPC Fault faultString="" faultCode="400" faultDetail="Invalid value for parameter '<i>Input_Features</i>' Maximum length exceeded. Parameter name: input" The geoprocessor service works when input-features is small , gives the above error when it is more..
... View more
09-30-2010
12:12 PM
|
0
|
1
|
770
|
|
POST
|
Can renderer be a function in graphicLayer something like <esri:GraphicsLayer id="graphicsLayerLoanHMDA" renderer="{getloanhmdarenderer();}" /> private function getloanhmdarenderer():Renderer { ................................ var simplerenderer:SimpleRenderer = new SimpleRenderer(); ...................... return simplerenderer as renderer; } It does not work...
... View more
09-28-2010
01:01 PM
|
0
|
1
|
554
|
|
POST
|
i think it is happening because of the onDemand mode and the current viewport is not in the definitionexpression area... Snapshot mode works fine.. Note first time onDemand mode, it zoom to the extent of the queried area(say example some parts of California). second time I put a different definitionexpression (say some parts in Florida and this area is not in the current viewport), then it can not get to the extent of the queried area... But If I pan to the new queried area(parts of Florida), I can see the new area is drawn(I think the drawing of these graphics are happening after the panning to the new area on demand) Is there a way to zoom to the extent of the new definitionexpression area in the OnDemand mode without user needs to pan to the new area?
... View more
09-28-2010
10:08 AM
|
0
|
0
|
1144
|
|
POST
|
I have a feature layer and i use its graphicprovider to access the graphics.. First time i use a definition expression to limit my output and get the graphics.. Next time I change the definitiondexpression to get features and this time graphicsprovider does not return any value.. Why I am not getting any value from the graphicsprovider??? Is there anyway to get the return graphics from this feature layer with the new definitionexpression? Thanks...
... View more
09-28-2010
08:01 AM
|
0
|
10
|
3860
|
| Online Status |
Offline
|
| Date Last Visited |
03-12-2025
06:15 AM
|