Hi, The "jsondef" part is there to define your layer. It should be very similar to the mapfile layer part. Maybe you could try the textual values defined here: http://mapserver.org/mapfile/layer.html (see the "TYPE" tag description).
Else the integer values for "type" should be something like this: MS_LAYER_POINT = 0 MS_LAYER_LINE = 1 MS_LAYER_POLYGON = 2 MS_LAYER_RASTER = 3 MS_LAYER_ANNOTATION = 4 MS_LAYER_CIRCLE = 6 MS_LAYER_TILEINDEX = 7 MS_LAYER_CHART = 8 Thomas Le 05/06/2011 23:05, Andreas Douvalis a écrit : > Hi > > according to clientdynamiclayers: > > > .................................................. > json complete definition > > var test_def4 = '{\ > "type":"json",\ > "layername":"test4",\ > "jsondef":{\ > "name":"test4",\ > "type":2,\ > "template":"void",\ > "METADATA": {\ > "CATEGORY":"cat_admin"\ > },\ > "classes": [\ > {\ > "class":{\ > "style": {\ > "size":10,\ > "color": [0, 255, 0],\ > "outlinecolor": [0, 0, 0]\ > }\ > }\ > }\ > ]\ > }\ > }'; > ....................................................................... > > Regarding the type in the example above it uses : "type":2 > > Is anybody can help about the type number? > What is Type for Point, Line, Polygon, Annotation etc > > I know for example that type is 3 for rasters. > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users