POST
|
A little more information here... It seems that if my definition expression is relatively short (e.g. "BL_ID in ('0001','0002','0003'), the output matches the map in my application. If the definition expression is relatively long (e.g. 70ish building IDs), the the output fails. I am not sure where things start to go sideways. Is there a character limitation of the definition expression?
... View more
12-16-2015
08:59 AM
|
0
|
4
|
608
|
POST
|
I am having an issue with printing using the ExportWebMap service as follows: When I print the map, the printed content is not the same as the content displayed in the map application. Specifically, I am getting features from my feature layer displayed on the printed output which don't appear in the map application. I am using a feature layer and a definition expression -- which I am setting in my application. The definition is respected in the application, but I am picking up what seem to be random additional features which don't meet the definition expression in the printed output. In fact, I can see these in the WebMapAsJson in the browser which is sent to the print service. In troubleshooting, I moved the definition expression to the map/feature service. Again, the expression is respected in the raw service, in my application, but not in the printed output. I am still getting seemingly random features in my map output that aren't included in my map application. The only other thing that might be a factor here is that in the WebMapAsJson, the erroneous/extra features do not contain the attribute which I am using for rendering (that is, the feature attribute object doesn't contain the attribute I am using for rendering). This is because I am adding this on the client side in my application. So the feature isnt being rendered on the client, but it is being rendered in the printed output. Can anyone provide any insight as to how I might address this issue? Many thanks, Greg
... View more
12-16-2015
07:47 AM
|
1
|
5
|
3422
|
POST
|
Argh. Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries. Sadness. Guess I'll need to tackle this another way...
... View more
10-05-2015
11:28 AM
|
2
|
0
|
473
|
POST
|
I am building on my earlier post where I created a feature layer on the client from a Feature Collection. I need to be able to select feature(s) from the layer with a where clause. I am able to select them with featureLayer.selectFeatures -- if I omit the where clause and use only objectIds. If I try to use a where clause, I get an error that my query contains one or more unsupported parameters. This code snippet illustrates the issue: var query = new Query();
query.where = "bl_id = 'B-US-MA-1001'";
//query.objectIds = [0];
featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW); This jsFiddle demonstrates the behavior: Edit fiddle - JSFiddle What am I missing? Thank you. PS. I might add that using the query.where approach works just fine when I have a feature layer that was created from an ArcGIS source. The real issue arises when I build the feature layer on the client from a Feature Collection.
... View more
10-05-2015
09:46 AM
|
0
|
1
|
3078
|
POST
|
I am trying to create a polygon feature layer from a feature collection. I have modified the Flickr sample to use polygon geometries, rather than point geometries. The features are not getting added to the layer properly. I have put together a JSFiddle here that illustrates the problem. JSFiddle I have commented out line 137 where I add the features to the layer, as this results in the map turning white. While the API doesn't display any errors in the console, I don't get the results on the map either. What am I missing?
... View more
09-21-2015
06:02 AM
|
0
|
13
|
5611
|
POST
|
Well it seems that one can avoid all this mess with a properly configured proxy. Livin' and Learnin' Greg
... View more
03-03-2014
08:37 AM
|
0
|
0
|
275
|
POST
|
Hi, I am trying to embed a webmap with a demographics layer in an application. Ive followed much of the advice provided in this thread here: http://forums.arcgis.com/threads/100095-Programmatically-Log-In-to-ArcGIS-Online-via-Javascript-Application?highlight=createMap I am able to render the map/layer without a login, but I am getting some httpCode '498' | 'Invalid Token' | 'Unable to draw graphic (geometry: null, symbol: null) : Invalid Token' errors. There 6 of these for my webmap which includes 2 basemap layers and 1 operational (household income) operational layer. Also the popups for the demographics layer do not work. Here's what I'm doing: 1. Call a server-side class to get a token. 2. Set esri.id = null to suppress the login. (this works) 3. Create the webmap from json. I am including the token in the layer object for my operational layer. webmap.itemData = {
"operationalLayers": [{
"url": "http://demographics1.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries/MapServer" + '?token=' + this.accessToken,
"visibility": true,
"opacity": 0.75,
"title": "USA Average Household Income",
"itemId": "3812e0b5526d4f8798840c86f9fd9ce7"
}] I have also tried iterating over the response to set the layerObject._url.query.token (per the above thread). This isnt effective and seems unnecessary since my token value is is already sitting in that object key. What am I missing here? Thank you, Greg
... View more
03-02-2014
12:51 PM
|
0
|
1
|
1105
|
POST
|
Hi all, Does the legend dijit work with secure (https) map services? There is nothing in the API that would indicate it doesnt. I have a simple mapping application where the legend fails to display when pointed to https services. However, the legend works fine with http services. Any help appreciated. Thank you, Greg
... View more
09-29-2013
05:50 AM
|
0
|
0
|
526
|
POST
|
Hi, Once you've defined the slider style in your js, you can take care of positioning and styling through css. The css class names for the large and small sliders are .esriLargeSlider and .esriSimpleSlider respectively. Here's a sample: https://developers.arcgis.com/en/javascript/jssamples/mapconfig_pos_size.html Hope this helps, Greg
... View more
09-14-2013
04:46 AM
|
0
|
0
|
445
|
POST
|
Thanks Diana. I will give your code a look-see and hopefully Ill have better luck tomorrow. Thanks again...
... View more
08-01-2013
03:54 PM
|
0
|
0
|
459
|
POST
|
Ken, While this certainly wont help you, I am having a similar problem. Selection symbols for feature layers dont seem to work at all. Perhaps there is a real problem here? Greg var eqOutFields = [equipmentLayerIdFieldName, equipmentLayerTitleFieldName];
// prepare equipment layer
var equipmentLayer = new esri.layers.FeatureLayer( gisMapControl.getEquipmentLayerUrl(), {
id: "equipmentLayer",
index: 20,
infoTemplate: eqTemplate,
mode: esri.layers.FeatureLayer.MODE_ONDEMAND, // MODE_SNAPSHOT
opacity: 1.0,
outFields: eqOutFields
});
// add equipment layer
map.addLayer(equipmentLayer);
me.setEquipmentLayer(equipmentLayer);
console.log('Equipment layer added...');
// set equipment layer selection symbol
var eqSelectionSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 12, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 1.0), new dojo.Color([0,0,0,0.35]));
equipmentLayer.setSelectionSymbol(eqSelectionSymbol);
... View more
08-01-2013
12:53 PM
|
0
|
0
|
459
|
POST
|
OK, well this seems to take care of the ZoomTo link in the Dijit Popup. .esriPopup .actionsPane .action {
display: none;
} Hope everyone is enjoying the UC. 😉
... View more
07-11-2013
12:06 PM
|
1
|
0
|
314
|
POST
|
Hi all, I am hoping to implement the PopupMobile Dijit, but would like to override a couple of appearance and behavior items if possible. First, I would like to suppress the display of the feature count (1 of 1). Second, I would like to override the behavior of the showContent button ( > ), so that it calls my own function. Are either of these possible? If not, I guess Im looking at making a custom Dijit of my own. Thanks in advance, Greg PS. I have a similar question for the Popup Dijit. Is it possible to suppress the 'zoom to' link?
... View more
07-11-2013
10:00 AM
|
0
|
3
|
4559
|
Title | Kudos | Posted |
---|---|---|
2 | 10-05-2015 11:28 AM | |
1 | 12-16-2015 07:47 AM | |
1 | 07-11-2013 12:06 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|