Who Me Too'd this topic

Showing results for 
Search instead for 
Do you mean 
Posts: 62
Registered: ‎11-17-2015
Accepted Solution
Geospatial Portal SDK: Add legend entries with a category

I am using Geospatial Portal SDK (2016 version) to build several custom analyses (based on WMPS) at a single time and then add them to the legend. I build an array of analysis configurations and then use $GP.queries.add to add them to the portal.


When all the queries are added, I developed a callback to add them to the legend, using $GP.legend.add. This is called with the array of analyses ids added, as config parameter. My problem is that these new legend entries appear in the Map Content Panel, Categories tab without any category associated making it confusing to the customer to identify the new legend entries added, as shown in the picture:AnalysesNoCategory.png


Is it possible to add these legend entries inside a new category (folder), with name specified by developer, using Geospatial Portal SDK?



Bruno Santos

Who Me Too'd this topic