POST
|
Don't know if it would be helpful, but I was able use extent.expand() on an array of point graphics using two goTo() calls. Don't animate the first and call the second after the first resolves. That way, you can capture the view's extent on the first goTo() and expand on the second. Could be a workaround until graphicsUtils is added to 4.x. Hope it helps. view.goTo(results.features, {animate: false}).then(function(response) { var zoomView = {}; zoomView = view.extent.expand(2.0); view.goTo(zoomView); });
... View more
08-22-2017
06:51 PM
|
3
|
1
|
3143
|
POST
|
I saw that but I can't use the DigiCert utility because I haven't created the server yet. Do I just create it on my local machine, but then where is the key file located?
... View more
01-23-2017
04:04 PM
|
0
|
0
|
702
|
POST
|
Hello again and thanks again for answering my question a few years ago. I'm trying to use CloudBuilder to stand up an EC2 instance with SSL but I don't know where the private key for the certificate is located. Any advice?
... View more
01-19-2017
08:13 AM
|
0
|
0
|
684
|
POST
|
We have a SSL certficate signed by a CA and I'm trying to use Cloud Builder on Amazon Web Services to add the certificate to the instance we want to create. My problem is that I can't find/locate the private key file that is associated with the certificate. I've found very little guidance on what to do and where to find it. Any help?
... View more
01-18-2017
04:32 PM
|
0
|
2
|
1317
|
POST
|
Thanks, Tim. I managed to work some of it out with DigiCert and some other digging. I'm also going to use your advice!
... View more
11-05-2015
01:06 PM
|
0
|
0
|
684
|
POST
|
We're trying to enable SSL on our AWS EC2 instance, but when we try to get the SSL certificate approved by DigiCert, they said they cannot approve it because of the "amazonaws" in the DNS name for the load balancer. Has anyone else run into this or successfully implemented SSL with an AWS EC2 instance? Any advice?
... View more
06-15-2015
08:58 AM
|
0
|
3
|
3503
|
POST
|
I think I've figured it out. I set up the layer data source incorrectly and used the wrong name for a property. Here's my revised code: var rightTableSource = new LayerDataSource(); rightTableSource.dataSource = new TableDataSource({ workspaceId: "[workspaceid]", dataSourceName: "[tablename]" }); var leftTableSource = new LayerMapSource({ mapLayerId: 0 }); var joinDataSource = new JoinDataSource({ joinType: "left-outer-join", leftTableKey: "Name", rightTableKey: "Name", leftTableSource: leftTableSource, rightTableSource: rightTableSource }); var layerDataSource = new LayerDataSource(); layerDataSource.dataSource = joinDataSource; I tried to set the feature layer source as a JoinDataSource, when it really needs to be a Layer Data Source. And the Layer Data Source has it's "dataSource" (not "source") as the JoinDataSource. "Source" is the property name in the Flex API. Got a bit crossed up! This should work as the source for a feature layer and query task.
... View more
05-26-2015
10:34 AM
|
1
|
0
|
742
|
POST
|
Actually, I need to revised what I said. With the code as I have it above, I get this error: Error: Invalid source 'type' for dynamic layer with 'id': -1. I looked at the API and there is a field for type (string) but I don't know what value to put there or whether that would even solve the problem.
... View more
05-26-2015
08:46 AM
|
0
|
0
|
742
|
POST
|
Try including it in the form so that it gets passed with the updated attributes.
... View more
05-26-2015
08:42 AM
|
2
|
1
|
544
|
POST
|
Does anyone have an example of using a join data source as the source for a feature layer? I've successfully done this in the Flex API, but am having difficulty with the JS equivalent. Here's a bit of my code var rightTableSource = new LayerDataSource();
rightTableSource.dataSource = new TableDataSource({
workspaceId: "[workspaceid]",
dataSourceName: "[tablename]"
});
var leftTableSource = new LayerMapSource({
mapLayerId: 0
});
var dataSource = new JoinDataSource({
joinType: "left-outer-join",
leftTableKey: "Name",
rightTableKey: "Name",
leftTableSource: leftTableSource,
rightTableSource: rightTableSource
});
var featureLayer = new FeatureLayer("[urltomapservice]/dynamicLayer", {
id: "featureLayer",
mode: FeatureLayer.MODE_ONDEMAND,
source: dataSource,
outFields: ["*"]
}); I don't get an error, so I assume it's working but the joined fields are not recognized. I know this is possible with a dynamic map service layer. Any ideas are much appreciated. Thanks!
... View more
05-26-2015
08:13 AM
|
1
|
3
|
6712
|
POST
|
You may also want to check that the OBJECTID for the feature you're trying to update is included in the attributes. I know that tripped me up before. https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#applyedits
... View more
05-26-2015
08:05 AM
|
0
|
3
|
881
|
POST
|
We are using an AWS EC2 instance to run ArcGIS for Server (using an elastic load balancer) and would like to use an SSL certificate from a CA. Does the certificate have to be applied to both the machine running ArcGIS and the ELB? The instance was created manually, not using Cloud Builder.
... View more
05-21-2014
10:22 AM
|
0
|
1
|
510
|
POST
|
This is the code I've used to achieve graduated symbols and varying colors. If there is a better or easier way that I've missed, please let me know. This code snippet is from when the generateRenderer task is executed and complete.
var renderer:ClassBreaksRenderer = event.renderer as ClassBreaksRenderer;
for (var i:int = 0; i < renderer.infos.length; i++) {
var breakSymbol:SimpleFillSymbol = SimpleFillSymbol(ClassBreakInfo(renderer.infos).symbol);
ClassBreakInfo(renderer.infos).symbol = new SimpleMarkerSymbol("circle",(i + 5) * 2,breakSymbol.color,1.0,0,0,0,new SimpleLineSymbol("solid",0xffffff,1.0,2));
} Thanks!
... View more
01-08-2014
12:46 PM
|
0
|
0
|
174
|
POST
|
A little late in my reply, but thanks for the link. I've set the base symbol in the class breaks definition, but can't figure out how get the symbol size to vary for each class break. I manipulated the rendered and changed the symbol sizes, but then couldn't control the color of each break.
... View more
01-08-2014
11:36 AM
|
0
|
0
|
174
|
POST
|
Thank you, zj_zou! Your advice did the trick! I moved the yesAddButton and noAddButton event handlers to a different location in the code so they're only defined once. Now, my original application is working as expected!
... View more
10-21-2013
06:21 AM
|
0
|
0
|
519
|
Title | Kudos | Posted |
---|---|---|
1 | 05-26-2015 10:34 AM | |
3 | 08-22-2017 06:51 PM | |
1 | 05-26-2015 08:13 AM | |
2 | 05-26-2015 08:42 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|