|
POST
|
i looked into this and found an instance in which another customer experienced similar errors, but noticed that the legend was updated if they zoomed the map in or out afterwards. is this the case for you also by chance?
... View more
09-21-2012
04:18 PM
|
0
|
0
|
2104
|
|
POST
|
in a tech support call, Matej and i isolated a problem in REST in which transparency for featureLayer selectionSymbols is not honored in the output created by 10.1 print services. the issue was documented as [#NIM085074 Opacity supplied via a selectionSymbol color tag is not honored in exported web maps. ]. please don't hesitate to contact support if you would like to have your name added to the list of customers affected by the issue. in the meantime, the best workaround i can think of in this situation is to work with a normal graphics layer instead.
... View more
09-21-2012
08:29 AM
|
0
|
0
|
1694
|
|
POST
|
featureLayers provide you with some nifty tools for setting a definition expression to limit whats drawn, but if you are already handing on to an array of graphics attempting to pass them to a featureLayer isn't really going to make your life any easier. derek is definitely right that the results you have are already graphics. you just have to remember that even though the graphics you get back when querying a layer have geometry and attributes, they don't have symbology defined yet. in the code snippet below we loop through the results and assign them to a new variable called graphic before adding a symbol and pushing to the map dojo.forEach(featureSet.features,function(feature){
var graphic = feature;
graphic.setSymbol(symbol);
//Set the infoTemplate.
graphic.setInfoTemplate(infoTemplate);
//Add graphic to the map graphics layer.
map.graphics.add(graphic);
}); but you could also skip defining the new variable name graphic and do this directly to "feature" dojo.forEach(featureSet.features,function(feature){
//var graphic = feature;
feature.setSymbol(symbol);
//Set the infoTemplate.
feature.setInfoTemplate(infoTemplate);
//Add graphic to the map graphics layer.
map.graphics.add(feature);
}); http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/query_clickinfowindow.html does that clear things up any? 🙂
... View more
09-20-2012
04:20 PM
|
0
|
0
|
1021
|
|
POST
|
i did a quick check and it looks like we have some demographic map services published on our production servers, but it doesn't look like the counties layers include FIPS. http://services.arcgisonline.com/ArcGIS/rest/services/Demographics if you have ArcGIS Desktop installed, the software comes with a generalized US Counties feature class (with FIPS) in the following location ..\ArcGIS\Desktop10.x\TemplateData\TemplateData.gdb\USA\counties You could publish a new service with this data and use your own map service REST url instead.
... View more
09-19-2012
08:24 AM
|
0
|
0
|
337
|
|
POST
|
it sounds as if i understood your request in my previous response and i agree that a custom geoprocessing task would be overkill. in order to generate geometries for only the areas which are contained in the search extent, you will have to use a geometry service rather than attempting to query your map service.
... View more
09-17-2012
01:33 PM
|
0
|
0
|
830
|
|
POST
|
i'm not sure i follow your question, but it sounds as if you would like to return the features that fall partially within the search extent and then calculate the sq. footage for the proportion of area which is included. the query task is a technique of retrieving certain features from a map service (either their geometry, attributes or both) and working with them clientside. since you won't have an attribute field which has already processed the sq. footage of a search extent which is created dynamically in your web application, you can't execute a query to retrieve the result. in this case you will have to use a geometry service to clip some new features based on this dynamic extent and then calculate the area yourself.
... View more
09-17-2012
10:50 AM
|
0
|
0
|
830
|
|
POST
|
you can't query for a feature unless its already been published on the server. if you want to create features with new geometry, you'll have to run an intersect using a geometry service instead. check out the following sample to see an example of utilizing a geometry service and drawing the result on the clientside. http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_convexhull.html
... View more
09-17-2012
07:52 AM
|
0
|
0
|
830
|
|
POST
|
unlike Web ADF, our Javascript API is built upon REST and definitely supports editing (along with a whole lot of other great functionality). see the following link to a collection of application samples to get an idea of some of the things you can do.
... View more
09-17-2012
07:47 AM
|
0
|
0
|
795
|
|
POST
|
it is a known issue that performance degrades when a large number of features are downloaded to the client in IE. please see the following thread for more information. http://forums.arcgis.com/threads/65441-IE-Problems?highlight=slow
... View more
09-17-2012
07:43 AM
|
0
|
0
|
1118
|
|
POST
|
if you can post a sample app, i would be happy to take a look.
... View more
09-12-2012
11:08 AM
|
0
|
0
|
1169
|
|
POST
|
heres a working jsfiddle (just update reference to use your own proxy) var poolFeatureLayer = new esri.layers.FeatureLayer(permitUrl, { "mode": esri.layers.FeatureLayer.MODE_SNAPSHOT, //make sure the layer you wish to add to the legend includes an id to pass to legendLayers "id": "PoolPermits" }); // create a print template for each choice templates = dojo.map(templateNames, function(ch) { var plate = new esri.tasks.PrintTemplate(); var legendLayer = new esri.tasks.LegendLayer(); //set the layerId property for legendLayer legendLayer.layerId = "PoolPermits"; //legendLayer.subLayerIds = []; plate.layout = plate.label = ch; plate.format = "PDF"; plate.layoutOptions = { "authorText": "May by: Esri's JS API Team", "copyrightText": "<copyright info here>", "titleText": "Pool Permits", "scalebarUnit": "Miles", //this property needs to be set with an array of legendLayer objects, not layerIds "legendLayers": [legendLayer], }; return plate; });
... View more
09-12-2012
10:43 AM
|
0
|
0
|
1169
|
|
POST
|
where are you placing that line? can you post a sample application?
... View more
09-12-2012
09:56 AM
|
0
|
0
|
1169
|
|
POST
|
try setting a layerId (and optionally subLayerIds) for legendLayers before the object is passed in the layoutOptions http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/printtemplate.htm#layoutOptions var myLegendLayer = new esri.tasks.LegendLayer();
myLegendLayer.layerId = "Boundaries";
myLegendLayer.subLayerIds = [];
app.printer = new esri.dijit.Print({
map: app.map,
templates: [{
label: "Layout",
format: "JPG",
layout: "Letter ANSI A Landscape",
preserveScale: false,
layoutOptions: {
titleText: "My Print",
authorText: "esri",
copyrightText: "My Company",
scalebarUnit: "Miles",
legendLayer: myLegendLayer
}
}
],
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}, dojo.byId("printButton"));
... View more
09-12-2012
08:49 AM
|
0
|
0
|
1169
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|