MCPcopy Index your code
hub / github.com/MapServer/MapServer / msClusterLayerGetItems

Function msClusterLayerGetItems

mapcluster.c:1381–1390  ·  view source on GitHub ↗

Query for the items collection */

Source from the content-addressed store, hash-verified

1379
1380/* Query for the items collection */
1381int msClusterLayerGetItems(layerObj *layer)
1382{
1383 /* we support certain built in attributes */
1384 layer->numitems = MSCLUSTER_NUMITEMS;
1385 layer->items = msSmallMalloc(sizeof(char*) * (layer->numitems));
1386 layer->items[0] = msStrdup(MSCLUSTER_FEATURECOUNT);
1387 layer->items[1] = msStrdup(MSCLUSTER_GROUP);
1388
1389 return msClusterLayerInitItemInfo(layer);
1390}
1391
1392
1393int msClusterLayerGetNumFeatures(layerObj *layer)

Callers

nothing calls this directly

Calls 3

msSmallMallocFunction · 0.85
msStrdupFunction · 0.85

Tested by

no test coverage detected