POST
|
I verified that when I set up a search on the same polygon feature layer in WAB 1.3 it works fine.
... View more
08-04-2016
04:38 PM
|
0
|
2
|
251
|
POST
|
I'm creating a custom application using WAB 2.1. I'm using the standard Search widget (version 2.1), and have added some search sources using a polygon Feature Layer in my webmap. When I attempt to search on these items I am getting the following error: TypeError: Unable to draw graphic (null): features[0].geometry.getCenter is not a function(…) Anyone else have this issue? The search still works, but it zooms very close on the feature (rather than zooming to it's extent) and the progress circle in the lower right of the app spins infinitely. BTW, I added another search source using a Point feature layer; this works and does not have the same problem as with the polygon.
... View more
08-02-2016
04:34 PM
|
0
|
3
|
1258
|
POST
|
We have a 10.2.2 enterprise geodatabase hosted in SQL Server 2012 (v. 11.0.6523). After updgrading our users to 10.4 desktop, we noticed a significant downgrade in performance, where they're having trouble interacting with the data; e.g. snapping. Our proposed solution is to upgrade the geodatabase to 10.4.1 and migrate the data to a SQL Server 2014 instance. Once that is complete, we plan on upgrading the client desktops to match. Does anyone have any experience/recommendations from a similar situation? Thanks!
... View more
07-26-2016
11:41 AM
|
0
|
0
|
1836
|
POST
|
The layerObject property appears to expose all the underlying FeatureLayer properties -- exactly what I needed, Thank you!
... View more
05-20-2016
04:45 PM
|
0
|
0
|
905
|
POST
|
Is there a way to verify if a layer in the map is visible at the current map extent? FeatureLayer has a .maxScale property which can be used for this. I don't see anything similar for the LayerInfo class. Thanks for any suggestions.
... View more
05-20-2016
03:20 PM
|
0
|
2
|
3558
|
POST
|
Thanks Zoltan, good to know. Starting to look like an issue particular to this phone.. My model number is GT-19500
... View more
05-20-2016
09:34 AM
|
0
|
1
|
1112
|
POST
|
Zoltan, I am having the same issue with my S4, with Android 5.0.1. I can attach photos from my Gallery, but when I try to capture and save a photo, it goes back to the home screen: "Unable to load the map. Please try again.", then the app crashes and I have to restart. I can also add a new point without an attachment fine. I tried adjusting my camera settings...no avail.
... View more
05-17-2016
12:41 PM
|
0
|
1
|
1112
|
POST
|
Brian, I had a similar question/need to yours. Rather than add the click event to the instance of the basewidget, I would like to create a separate class to house my business logic including the map-click event, and use the basewidget as a thin wrapper. This workflow is recommended in Gavin Rehkemper and Tom Brayson's presentation on WAB Development Tools and Techniques: GitHub - gavinr/web-appbuilder-tools-techniques-dev-summit-2016: Dev Summit 2016 Presentation "Web AppBuilder for ArcGIS… Does anyone have an example of what this looks like in practice?
... View more
05-03-2016
10:57 AM
|
0
|
2
|
1748
|
POST
|
Robert, That worked! I'm wondering how though... is the .disablePopup() method defined inside the WAB app folder structure? I can't find that method in the API reference for the LayerInfo object. Thank you for your help!
... View more
04-21-2016
04:53 PM
|
0
|
1
|
782
|
POST
|
I'm now able to select parcels and build a list of taxlots using the following code: postCreate: function() {
console.log('ParcelSoils::postCreate');
this.inherited(arguments);
},
startup: function() {
console.log('ParcelSoils::startup');
var map = this.map;
var taxlotLayerId, taxlotLayer, taxlotList;
var highlightSymbol = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 3
),
new Color([125,125,125,0.35])
);
LayerInfos.getInstance(map, map.itemInfo).then(lang.hitch(function(operLayerInfos) {
operLayerInfos.getLayerInfoArray().forEach(function(layerInfo) {
if (layerInfo.title == 'MC Taxlot') {
taxlotLayerId = layerInfo.id;
console.log('Taxlot layer ID = ', taxlotLayerId)
}
});
}));
taxlotLayer = map.getLayer(taxlotLayerId);
taxlotList = [];
this.own(on(taxlotLayer, 'click', function(e) {
var taxlotString = esriLang.substitute(e.graphic.attributes, "${TAXLOT}");
var highlightGraphic = new Graphic(e.graphic.geometry, highlightSymbol);
map.graphics.add(highlightGraphic);
taxlotList.push(taxlotString);
console.log('Selection = ' + taxlotList);
})); Now I need to figure out how to temporarily disable the Pop-up for the Taxlot layer... Looking through the OTB widget code for that, but it is anything but self-explanatory.
... View more
04-20-2016
02:41 PM
|
1
|
1
|
782
|
POST
|
Thank you Robert, I was able to get the reference to the LayerInfo object in my map using the following: LayerInfos.getInstance(map, map.itemInfo).then(function(layerInfosObject) {
layerInfosObject.getLayerInfoArray().forEach(function(layerInfo) {
if (layerInfo.title == 'MC Taxlot') {
taxlotLayerInfo = layerInfosObject.getLayerInfoById(layerInfo.id)
}
});
});
I'd like to be able to do two things with the taxlot layer: 1. disable the popup 2. use something similar to the following so the user can click on the map and build a list of taxlots (field = "TAXLOT"), to be passed to another service: featureLayer.on('click', function(e){
var taxlotString = esriLang.substitute(e.graphic.attributes, "${TAXLOT}");
var highlightGraphic = new Graphic(e.graphic.geometry, highlightSymbol);
map.graphics.add(highlightGraphic);
taxlotList.push(taxlotString);
});
}); Any suggestions, or help pointing me in the right direction would be much appreciated. Adam
... View more
04-18-2016
02:54 PM
|
0
|
0
|
782
|
POST
|
I'm wondering what the easiest way to create a custom widget where I can select one or more parcels and pass the parcel_id attribute to another service. I would like to use the draw toolbar to draw a geometry and select the parcels that intersect, similar to this example: Feature layer with selection | ArcGIS API for JavaScript first step: How do I define/cast the parcel layer in my webmap as a FeatureLayer (esri/layers/FeatureLayer)?
... View more
04-12-2016
05:16 PM
|
0
|
6
|
3438
|
POST
|
I need to update one field, AnnotationClassID, for all annotation in our versioned SDE. There are close to a million records in a half dozen feature classes. What are the ramifications of using the arcpy.da module to do this task? Curious to know how others have handled this task. Below is a basic sketch of what I had in mind. Many Thanks! import arcpy
import os
fc = r'X:\Database connection to vm-sql3.sde\Anno0100scale'
workspace = os.path.dirname(fc)
edit = arcpy.da.Editor(workspace)
edit.startEditing(False, True)
edit.startOperation()
cursor = arcpy.UpdateCursor(fc, ["AnnotationClassID","SymbolID"])
for row in cursor:
row.AnnotationClassID = row.SymbolID
cursor.updateRow(row)
edit.stopOperation()
edit.stopEditing(True)
... View more
04-05-2015
09:41 PM
|
1
|
2
|
3727
|
Title | Kudos | Posted |
---|---|---|
1 | 04-20-2016 02:41 PM | |
1 | 10-06-2017 02:24 PM | |
2 | 05-25-2018 09:47 AM | |
3 | 10-09-2017 09:29 AM | |
1 | 09-12-2016 12:59 PM |
Online Status |
Offline
|
Date Last Visited |
01-11-2021
06:56 PM
|