POST
|
Hi Robert, After a certain amount of head scratching and a lot of code chasing, I managed to figure out the issue of the features not labelling, it was nothing to do with the set up of my labels, it was how the geometry of the feature was created, if the ring of the polygon was created anti clockwise the feature would not label, ensuring all polygon rings are created clockwise sorted it out. There is a function within the JavaScript API on polygon geometry that checks if the geometry is clockwise: Polygon | API Reference | ArcGIS API for JavaScript 3.18 Hope this stops other people from the headache, Regards Anthony
... View more
11-01-2016
01:52 PM
|
1
|
0
|
2673
|
POST
|
Hi Robert, Yes when I label in a straight forward page outside of Web AppBuilder it works fine. I have just sent you an email to your work account with the widget attached for you to look at Regards Anthony
... View more
10-27-2016
08:58 AM
|
0
|
1
|
2673
|
POST
|
Robert, That property is set to true by default, I have tried setting it manually but no luck Regards Anthony
... View more
10-27-2016
08:46 AM
|
0
|
3
|
2673
|
POST
|
Hi Robert Your fix off changing the _show2DWebMap function in the jimu.js/MapManager.js file worked for adding labels when the feature class is created from a URL, but I am still having issues when creating the feature class from a feature collection within the client. Below is a snippet of the JavaScript where I am setting up the label class and applying it to the feature layer. If the feature layer is created from an existing feature layer from a URL the labeling works (commented out below), if the layer is created from a feature collection it does show the labels. Is there anything else I need to enable to show the labels when using a feature collection? Thanks for your help so far, Regards Anthony // create a renderer for the grg layer to override default symbology
var gridColor = new Color("#000");
var gridLine = new SimpleLineSymbol("solid", gridColor, 1.5);
var gridSymbol = new SimpleFillSymbol("solid", gridLine, null);
var gridRenderer = new SimpleRenderer(gridSymbol);
var featureCollection = {
"layerDefinition": {
"geometryType": "esriGeometryPolygon",
"fields": [{
"name": "grid",
"alias": "grid",
"type": "esriFieldTypeString"
}]
}
};
// create a text symbol to define the style of labels
var GRGLabel = new TextSymbol().setColor(gridColor);
GRGLabel.font.setSize("12pt");
GRGLabel.font.setFamily("arial");
var json = {
"labelExpressionInfo": {"value": "{grid}"}
};
var labelClass = new LabelClass(json);
labelClass.symbol = GRGLabel;
this._featureLayer = new FeatureLayer(featureCollection,{
outFields: ["*"]
});
//this._featureLayer = new FeatureLayer("https://xxxx/ags/rest/services/GRG_Layer/FeatureServer/0",{
//outFields: ["*"]
//});
this._featureLayer.setRenderer(gridRenderer);
this._featureLayer.setLabelingInfo([ labelClass ]);
this.map.addLayer(this._featureLayer);
... View more
10-27-2016
03:07 AM
|
0
|
5
|
2673
|
POST
|
Robert, Thanks for the rapid response, I have logged off for the evening, so will give your response a try first thing in the morning and let you know how I get on. its a shame you cannot change this parameter in the widget so you can distribute to existing apps without having to then go and change other external files to the widget. thanks again, Anthony
... View more
10-26-2016
12:40 PM
|
0
|
1
|
2673
|
POST
|
Hi All, i am creating a custom widget that utilises a feature layer created either from a feature collection or a URL to an existing published feature service (I have tried both methods). I want to label the features but I have tried every possibility going with no luck. if I create a sample HTML page using the 3.18 JS library out side of WAB I can get the labels to appear. I think the issue is setting the map.showLabels to true within the widget. To experiment a little further I have tried turning the map attribution off within the widget using map.showAttribution = false but this does not work either. I see there is no getter or setter methods for changing these attributes to the map object. has anyone else managed to get labels to work on a feature layer within a WAB widget? Or is this a limitation of WAB? Regards Anthony
... View more
10-26-2016
12:15 PM
|
0
|
16
|
4739
|
DOC
|
Robert, I have just downloaded a fresh version of the 3.17 API and it seems to be ok, Sorry for any inconvenience Regards Anthony
... View more
09-16-2016
06:43 AM
|
1
|
0
|
6927
|
DOC
|
Robert, I have done a little more testing and it appears the chart distances are correct for both my local gpservice and the esri elevation gpservice if I use the hosted API in my env.js(//jsdev.arcgis.com/3.17). If I used a locally hosted version of the API (3.17) they are both incorrect. Are you able to replicate? Regards Anthony
... View more
09-16-2016
06:26 AM
|
0
|
0
|
6927
|
DOC
|
Robert, I am using 2.1 WAB and 3.17 API If that helps Regards Anthony
... View more
09-16-2016
02:13 AM
|
0
|
0
|
6927
|
DOC
|
Robert, I am getting the same result when using the online gpservice http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer Regards Anthony
... View more
09-15-2016
07:42 AM
|
0
|
0
|
6927
|
DOC
|
Hi Robert, I am experiencing a similar issue with distance values when using my own profile service set up using the download linked above, the distance just seems to be incorrect on the chart as the measurement distance is correct. I have included screen shots below using your demo using the online GP Service and my set up using a local GP Service, measuring the same line. When I switch to the local config to use the online gpservice the results are also incorrect. It only appears that the chart is correct in both x and y values if I use meters which is the default value for the GPService Regards Anthony Your Demo: My Set Up: Your Demo: My Set Up:
... View more
09-15-2016
03:54 AM
|
0
|
0
|
6927
|
POST
|
Dilson, You are probably zooming in on the base-map to a scale that has not been cached. regards Anthony
... View more
07-03-2016
11:55 AM
|
1
|
0
|
660
|
POST
|
Cheers Dan, I thought it would be somewhere and had overlooked the main page. I thought it would reiterate on this page, but it doesn't: Make your first app—Web AppBuilder for ArcGIS | ArcGIS Regards Anthony
... View more
04-04-2016
11:16 AM
|
0
|
0
|
550
|
POST
|
Hi, Do I need an organization account to create a web application using Web AppBuilder with ArcGIS Online. I have had a look this morning with my both my accounts, when I go to share a map, my organization account has the option (extra tab for WAB): My public account doesn't: Has this always been the case? If so, is it documented anywhere? Regards Anthony
... View more
04-04-2016
02:30 AM
|
0
|
2
|
3770
|
POST
|
Hi All, I am not entirely sure where to post this question as it could fall under Server, Portal or WAB but here goes. I have a 10.4 instance of server and portal and I was keen to explore the new on premise analysis starting with a simple buffer operation. I created a simple map with just city points overlaying the topographic basemap and then used this map within Web AppBuilder (v2 Beta). I then configured the analysis widget to use the buffer geoprocessing tool. I ran my application and test the widget: Which all ran fine, apart from always naming the layer 'bufferLayers' instead of what I have specified. The issue now comes when you click the back button to run the tool again, you end up with the following: This results in the widget becoming unresponsive and this state remains even if you close and re open the widget. The only way to get the widget functioning again is to refresh the whole application. Is this a bug??? Regards Anthony P.S. Further testing on other analysis tools such as Aggregate Points and Summarize Within results in the same error
... View more
03-24-2016
02:58 AM
|
0
|
0
|
2066
|
Title | Kudos | Posted |
---|---|---|
1 | 11-01-2016 01:57 PM | |
1 | 02-04-2013 01:05 AM | |
1 | 04-11-2013 09:53 PM | |
1 | 04-03-2013 09:42 AM | |
1 | 07-25-2014 10:58 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|