Select to view content in your preferred language

publish a filegdb with styling

337
0
08-25-2022 12:46 AM
Mannus_Etten
Occasional Contributor

i use the additem-endpoint and later the publish endpoint to publish a filegdb as a feature service

for the publishproperties I use now the following:

{
    "name":"featureservice",
    "maxRecordCount":2000,
    "hasStaticData":true,
    "targetSR":
        {"wkid": 28992},
    "layerInfo":
    {
       
        "capabilities":"Query"
    }
}
 
how do I add to layerinfo the drawingInfo correctly for my three layers (point, polygon and line)?
I can't find any example for this how to get the correct syntax for that.
 
I would like to publish my feature service always with the same style.
CEO the Right Direction BV/Portal Genius
0 Kudos
0 Replies