POST
|
Thanks i guess i will have to look at this from a different angle. But if you think about it, if you can convert a graphic to a feature, shouldn't you be able to vice versa. Well you can but without symbols. Anyways the help doc is clear by not mentioning anything about symbology. Thanks.
... View more
09-30-2015
12:38 AM
|
0
|
0
|
321
|
POST
|
Hi guys so i am using the **JSON to features** tool in the ArcMap conversion toolbox and i cannot seem to get the symbology right. This JSON i am using is a GPFeatureRecordSetLayer which i have written to a .json file { "displayFieldName": "pointFeature", "hasM": false, "hasZ": false, "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 102100, "latestWkid": 3857 }, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" }, ... ], "features": [ { "geometry": { "type": "point", "x": 19865753.933378372, "y": -2051854.6857393598, "spatialReference": { "wkid": 102100, "latestWkid": 3857 } }, "symbol": { "color": { "r": 0, "g": 0, "b": 0, "a": 0.001176470588235294 }, "size": 13.333333333333332, "type": "simplemarkersymbol", "style": "circle", "outline": { "color": { "r": 0, "g": 255, "b": 255, "a": 1 }, "width": 2.6666666666666665, "type": "simplelinesymbol", "style": "solid" }, "xoffset": 0, "yoffset": 0 }, "attributes": { "OBJECTID": "4131", ... } } ], "exceededTransferLimit": true } When i run the **Features to JSON** tool on the generated features i get this JSON string which totally skips any symbology information. { "displayFieldName": "pointFeatures", "fieldAliases": { "OBJECTID": "OBJECTID" }, "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 102100, "latestWkid": 3587 }, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" }, ... ], "features": [ { "attributes": { "OBJECTID": "4131", ... }, "geometry": { "x": 19865753.933378372, "y": -2051854.6857393598 } } ] } Everything else works fine. Is this a known limitation?
... View more
09-29-2015
08:55 PM
|
0
|
2
|
2605
|
POST
|
Ok this is how i solved it. I added a renderer to drawingOptions var sls = new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, esri.Color([255, 255, 0]), 3); drawingOptions.renderer = SimpleRenderer(sls); After i did that i had to enable dynamic workspaces in the service capabilities via the server manager. Hope this helps someone.
... View more
01-11-2015
05:39 PM
|
0
|
1
|
567
|
POST
|
Hi guys does anyone know how i would go about hiding labels in a ArcGISDynamicMapServiceLayer? This is part of my code so far var routeLayer = ArcGISDynamicMapServiceLayer(...); map.addLayer(routeLayer); var drawingOptions = new LayerDrawingOptions(); drawingOptions.showLabels = false; var options = []; options[0] = drawingOptions; routeLayer.setLayerDrawingOptions(options); After doing this however the layer isn't shown on the map. Do i need to set the renderer property for drawingOptions also?
... View more
01-11-2015
02:25 PM
|
0
|
2
|
4930
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|