We are currently working on embedding a group of maps into our Town website. The order of the maps currently comes in by date and I want to know if there is a way to order the maps alphabetically.
Solved! Go to Solution.
The group embed supports a different set of url parameters than the web map embed that Xander Bakker listed above. For the group you can specify a sort field and order by using the sortfield and sortorder url params. So if I wanted to sort alphabetically I'd set the sortfield to title and the sort order to asc.
You'll need to edit the iframe code that is generated by the share dialog in ArcGIS Online to do this. You'll want to find the src attribute and append the necessary url params for example:
embedGallery.html?sortfield=title&sortorder=asc;displayapps=true&displayinline=true&group=cdbba62078ea4da3995cf89bde03cf3a
Note: We are using ArcGIS Online and trying to embed a group of maps into a web page.
You may want to read this blog: New Options for Embedding Maps | ArcGIS Blog
The group embed supports a different set of url parameters than the web map embed that Xander Bakker listed above. For the group you can specify a sort field and order by using the sortfield and sortorder url params. So if I wanted to sort alphabetically I'd set the sortfield to title and the sort order to asc.
You'll need to edit the iframe code that is generated by the share dialog in ArcGIS Online to do this. You'll want to find the src attribute and append the necessary url params for example:
embedGallery.html?sortfield=title&sortorder=asc;displayapps=true&displayinline=true&group=cdbba62078ea4da3995cf89bde03cf3a
Is there a full list of necessary URL params for the Group embed?
There aren't many url params. The url I posted above shows them all.
To add on to Kelly's post, I am including alternative sort parameters which can be used to sort on additional fields.
sortfield=numviews&sortorder=asc (sort lowest # of views > highest # of views)
sortfield=numviews&sortorder=desc (sort highest # of views > lowest # of views)
sortfield=modified&sortorder=asc (sort newest > oldest)
sortfield=modified&sortorder=desc (sort oldest > newest)
sortfield=owner&sortorder=asc (sort owner name A > Z)
sortfield=owner&sortorder=desc (sort owner name Z > A)
sortfield=avgrating&sortorder=asc (sort low rating > high rating)
sortfield=avgrating&sortorder=desc (sort high rating > low rating)
Cheers,
Eric
Esri Tech Support
To update this thread, can a url parameter now be used to sort by "Category"?, which is a new addition for groups or content.