Line Linkage Layer with Metric Expression
POST Request
POST http://hostname:port/rest/Spatial/MappingService/maps/image.png;w=800;h=600;c=-.3,.3,epsg%3A4326;z=20000%20mi
Content-type: application/json
Authorization: <Basic or Spectrum Token>
Example
{
"layers":[
{
"type":"LineLinkageLayer",
"relationshipexpression":"Country",
"sourceexpression":"Source_Airport",
"destinationexpression":"Destination_Airport",
"metricexpression":"Metric",
"sourcepointstyle":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/PointStylePin"
},
"destinationpointstyle":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/PointStyleStar"
},
"linkagetable":{
"type":"NamedTable",
"name":"/Samples/NamedTables/FlightsTable"
},
"themelist":{
"theme":[
{
"type":"CustomRangeTheme",
"expression":"Metric",
"allothers":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/LineStyleSolid"
},
"rangebinlist":{
"rangebin":[
{
"style":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/LineStyleDash"
},
"lowerbound":{
"type":"DoubleValue",
"value":"1"
},
"upperbound":{
"type":"DoubleValue",
"value":"8"
}
},
{
"style":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/LineStyleSolid"
},
"lowerbound":{
"type":"DoubleValue",
"value":"9"
},
"upperbound":{
"type":"DoubleValue",
"value":"20"
}
}
]
}
}
]
},
"geometrytable":{
"type":"NamedTable",
"name":"/Samples/NamedTables/WorldTable"
}
},
{
"type":"FeatureLayer",
"table":{
"type":"NamedTable",
"name":"/Samples/NamedTables/WorldTable"
}
}
]
}