POST
|
Thanks Robert. Would this be the best way to label something that is not in apart of a layers attribute table?
... View more
06-06-2018
03:02 PM
|
0
|
2
|
1358
|
POST
|
Thanks Robert. I can't get the halos to show. var homelandSecurity = new ArcGISDynamicMapServiceLayer("https://sv07gdchfeat10.ct.dot.ca.gov/server/rest/services/D7Geospatial/CirgisLariacIndex2018/MapServer", { id: "index_filenames", visible: true }); //D7 Server homelandSecurity.setVisibleLayers([1,3]); map.addLayer(homelandSecurity); var optionsArray = []; var drawingOptions = new LayerDrawingOptions(); var labelClass = new LabelClass({ labelExpression: '[' + "FILENAME" + ']', labelPlacement: 'esriServerPolygonPlacementAlwaysHorizontal', symbol: new TextSymbol({ type: "esriTS", color: [0,0,0], haloColor: [0,245,255], haloSize: 2, "font": { "family": "Arial", "weight": "bold", "size": "14px" } }), minScale: 35000 }); drawingOptions.labelingInfo = [labelClass]; drawingOptions.showLabels = true; var labelClass2 = new LabelClass({ labelExpression: '[' + "FILENAME" + ']', labelPlacement: 'esriServerPolygonPlacementAlwaysHorizontal', symbol: new TextSymbol({ "type": "esriTS", "color": [0,0,0], "haloColor": [0,245,255], "haloSize": 2, "font": { "family": "Arial", "weight": "bold", "size": "14px" } }), minScale: 35000 }); var drawingOptions2 = new LayerDrawingOptions(); drawingOptions2.labelingInfo = [labelClass2]; drawingOptions2.showLabels = true; optionsArray[1] = drawingOptions; optionsArray[3] = drawingOptions2; map.getLayer("index_filenames").setLayerDrawingOptions(optionsArray); map.getLayer("index_filenames").show()
... View more
06-06-2018
03:01 PM
|
0
|
3
|
1935
|
POST
|
How is this? var text = new TextSymbol("Hello World"); var pt = new Point(-118.5, 34.5, map.spatialReference); var graphic = new Graphic(pt, text); map.graphics.add(graphic);
... View more
06-04-2018
11:47 AM
|
0
|
4
|
1358
|
POST
|
I was testing this in the sandbox first. I haven't added this to my file yet. I was going to add this right after I my creation of the dynamic layers in my map.
... View more
06-04-2018
09:55 AM
|
0
|
7
|
1358
|
POST
|
Can anybody find anything wrong with this? I want to check myself. var text = new TextSymbol("Hello World"); var pt = new Point(-118.5, 34.5, map.spatialReference); var graphic = new Graphic(pt, text); map.graphic.show(); Thank you
... View more
06-02-2018
11:14 PM
|
0
|
9
|
1474
|
POST
|
my version is as follows: Both set visible layers in the array are shown in the map although the label only shows for the 3rd layer in the array. Also the halo settings are not shown. What am I missing? urlDyn = "https://sv07gdchfeat10.ct.dot.ca.gov/server/rest/services/D7Geospatial/CirgisLariacIndex2018";
homelandSecurity = new ArcGISDynamicMapServiceLayer(urlDyn, {
id: "index_filenames",
opacity: 0.7,
visible: true
});
homelandSecurity.setVisibleLayers([1,3]);
map.addLayer(homelandSecurity);
var optionsArray = [];
var drawingOptions = new LayerDrawingOptions();
var labelClass = new LabelClass({
labelExpression: '[' + "FILENAME" + ']',
labelPlacement: 'esriServerPolygonPlacementAlwaysHorizontal',
symbol: new TextSymbol({
haloSize: 2,
haloColor: [255,255,255]
}),
minScale: 30000
});
drawingOptions.labelingInfo = [labelClass];
drawingOptions.showLabels = true;
optionsArray[1,3] = drawingOptions;
map.getLayer(" index_filenames ").setLayerDrawingOptions(optionsArray);
map.getLayer(" index_filenames ").show();
});
... View more
06-02-2018
11:11 PM
|
0
|
9
|
1935
|
POST
|
What is the least complex way to label a arcgisdynamic service layer that is using a map service comprised of two grids covering two counties with a minzoom of 40000? The label would be the id for each grid. Let me know if more information is needed.
... View more
05-29-2018
08:55 PM
|
0
|
11
|
2705
|
POST
|
Hello: I am trying to refine my coworkers app. I have a content pane that I want to hide at runtime and only have visible when a button is clicked. I have been able to do the reverse of setting the visibility to hidden onclick. I haven't been able to do show onclick. I have my css displayed to none and the javascript visibility set to visible. Does anybody have any ideas as to why off the top? HTML: <div id="rightPane3" class="roundedCorners shadow" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'right', closable:true" style="width:320px;display:none"> JS: var Run = dijit.byId("Run"); Run.on("click", function() { domStyle.set("rightPane3", "visibility", "visible"); }); The panel on the right is want I want to hide at runtime and only show when the run button is clicked. https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=881a1ee0-64a1-4617-a8ce-44796dd69833&searchIndex=0
... View more
04-25-2018
10:00 AM
|
0
|
1
|
754
|
POST
|
I will try changing it in the client/stemApps instead
... View more
04-19-2018
07:21 AM
|
0
|
0
|
510
|
Title | Kudos | Posted |
---|---|---|
1 | 10-06-2017 08:25 AM | |
1 | 01-05-2018 10:12 AM | |
1 | 01-09-2018 10:27 AM | |
1 | 01-05-2018 07:36 AM | |
1 | 10-03-2017 10:23 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|