|
POST
|
Hi William - did you ever get this figured out? David
... View more
07-20-2015
08:26 AM
|
0
|
2
|
990
|
|
POST
|
Actually this might not be so much a bug as an oversight(?) in that a where expression can't operate against a parent graphic class?
... View more
07-17-2015
09:56 AM
|
1
|
1
|
1964
|
|
POST
|
Right, see I think it's a bug in that the API reference for the labeling info property on a feature layer reads - 'Label definition for this layer, specified as an array of label classes. Use this property to specify any changes to the structure of the label'. For my particular need what I am doing is specifying one label class based on an AddressNumber and a second class based on an AddressStatus and then positioning the first at upper right and the second at lower right . . . Thanks for looking into this all- David
... View more
07-17-2015
09:52 AM
|
0
|
2
|
1964
|
|
POST
|
Robert, I'm not certain I have made this situation clear. In your sample above, you're basically jsut adding a lable layer after a setDefinitionExpression has been applied to the feature layer that is passed into the label layer, then adding that label layer to the map which is totally doable. What I am trying to do is set up two label classes with where clauses based on the REST API sample thusly: var acClass = new LabelClass({
labelPlacement: "esriServerPointLabelPlacementAboveRight",
labelExpression: "[AddNum]",
symbol: {
type: "esriTS",
color: [38,115,0,255], //255,0,0,255],
font: {
family: "Arial",
size: 7,
style: "italic",
weight: "bold",
decoration: "none",
},
},
minScale: 2401,
maxScale: 0,
//where: "AddressStatus LIKE 'A%'"
});
var iaClass = new LabelClass({
labelPlacement: "esriServerPointLabelPlacementAboveRight",
labelExpression: "[AddNum]",
symbol: {
type: "esriTS",
color: [255,0,0,255], //[38,115,0,255],
font: {
family: "Arial",
size: 7,
style: "italic",
weight: "bold",
decoration: "none",
},
},
minScale: 2401,
maxScale: 0,
//where: "AddressStatus LIKE 'I%'"
}); Then add the label classes to an array: var labelArray = [acClass,iaClass]; and lastly set the labeling info on the feature layer per it's labeling info property accessed via setLabelingInfo method (per the jsapi): lyrAddresses.setLabelingInfo(labelArray); All of the value changes per label class optoins such as a placement change or a font style or color change are immediatly visible EXCEPT the where clauses. Whenever I un-comment them, the labels will no longer render as graphics David
... View more
07-17-2015
08:36 AM
|
0
|
6
|
3793
|
|
POST
|
Thanks Robert. I wasn't actually specifiying a labelClass reference as I wasn't sure I needed to - - that's likely what I am missing. David
... View more
07-15-2015
11:03 AM
|
0
|
0
|
3793
|
|
POST
|
Hello- So I'm trying to override the default feature layer labels, but the where clause isn't being honored. For my map constructor options: showLabels : true My LabelingInfo: var labelArray = [
{
labelPlacement: "esriServerPointLabelPlacementAboveRight",
labelExpression: "[AddNumber]",
symbol: {
type: "esriTS",
color: [255,0,0,255], //[38,115,0,255],
font: {
family: "Arial",
size: 9,
style: "italic",
weight: "bold",
decoration: "none",
}
},
minScale: 2401,
maxScale: 0,
where: "AddressStatus LIKE 'A%'"
}
];
console.log(labelArray); and finally for the feature layer: lyrAddresses.setLabelingInfo(labelArray); All of the other constructor options for the labelng info are being honored, but wheneverI try to invoke the where clause, none of the points will label- Thanks David
... View more
07-14-2015
01:20 PM
|
0
|
23
|
10953
|
|
POST
|
Phu- sorry for the delayed response. Anecdotally, yes I reccomend disabling hyperthreading on Windows Servers hosting SQL Server 2005 or 2008R2. We found that performance was impacted when hyperthreading was enabled. However, without performing tests and research, I can only speculate as to why. Perhaps hyperthreading can cause an I/O or disk contention issue? David
... View more
06-30-2015
09:05 AM
|
1
|
4
|
2134
|
|
POST
|
Check all your directory permissions, SDE privileges, model parameters and pathways, tool input and output parameters. GPs that run well on the desktop with physical output locations do well, but when publishing as a GP service locations must be reset to in_memory so the input and jobs directories can access them. Lastly, back your model up to the first point of failure and solve from there
... View more
06-23-2015
08:38 AM
|
2
|
2
|
2502
|
|
POST
|
oh good, sql and sde do not like hyperthreading. Hyperthreading killed one my sql updates, I think when we went from 2005 to 2008r2. Could not figure it out until I found an obsucre thread in the old forums and sure enough, one of the admins had enabled hyperthreading on the database server...
... View more
06-18-2015
02:49 PM
|
2
|
6
|
2134
|
|
POST
|
Aaron, maybe a dumb question but you all don't have hyperthreading set up do you?
... View more
06-18-2015
02:00 PM
|
0
|
8
|
2134
|
|
POST
|
Ah, that's it. Thanks Chris and yes I'm looking forward to your GIT
... View more
06-12-2015
11:34 AM
|
1
|
0
|
1653
|
|
POST
|
Great, thank Chris. Hmm, yes the jQuery example - there is clearly a lot going on in it. I'm not sure I understand how this is bootstrap and not just jQuery...
... View more
06-12-2015
08:40 AM
|
1
|
2
|
1653
|
|
POST
|
Hi Chris, I'm following the group but have yet to join. My name is David Coley, I am the ArcSever Admin for Sarasota County, FL where I also work as the app developer along with my sde admin and colleague, Michael Stranovsky. I am an MS in Geography from the University of Florida (2003). We have some 9 focused javascript apps that work very well on the desktop and, while mobile-friendly, are not platform responsive(yet!). I need to incorporate bootstrap but don't quite know how to do that yet. Anyway, that's why I want to follow the group and will certainly join. Here's an example of one of my lookup apps: Sarasota County Public Works Thanks- David
... View more
06-11-2015
07:18 PM
|
1
|
4
|
1653
|
|
POST
|
Really? Wow that's tough Aaron, I now see where you're coming from.. I've asked ESRI on several occasions to chime in on spatial index tuning params when using sql geometry with no feedback. I don't think they know. Perhaps Vince Angelo's Blog can chime in here. For us, we did find that our spatial index tuning did solve draw and snapping problems on our larger poly layers, and (again for us) sql 2012 handles sql gemoetry better than sql 2008. I don't know why: a columnstore index on the geometry column that didn't exist at 2008? But if that were the case wouldn't things work better for you? David
... View more
06-11-2015
07:02 PM
|
0
|
0
|
2681
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-27-2026 01:27 PM | |
| 2 | 03-25-2026 06:29 AM | |
| 2 | 03-04-2026 11:14 AM | |
| 1 | 02-26-2026 09:46 AM | |
| 1 | 10-30-2025 11:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|