Changing bookmark order

1482
5
Jump to solution
01-14-2021 06:32 AM
MarceloRosensaft
New Contributor III

Hello,

At this moment I'm building an experience at the AGOL but I also have the developer edition installed so my question is also relevant for the ExB developer edition. The enterprise portal version is 10.6 but we will upgrade to 10.8.1 around next week.

The experience we're building is a guided tour in a geological park. I'm using the bookmarks widget to move between the stations and have already added several bookmarks with a lot of configuration - map configuration and styles.

We've decided to change the order of the stations and I cannot find how to do it without having to set all the settings of each bookmark from the beginning. I hope there's a way to do that.

Thank you in advance,

Marcelo

Tags (1)
1 Solution

Accepted Solutions
DaveFullerton
Occasional Contributor III

I tried something with the developer edition that seemed to work.  I am still using version 1.1 for reasons I won't explain.  The ExB projects are named with integer values starting with 0 and going up.  Using project number 1 as an example, in arcgis-experience-builder-1.1\server\src\public\apps\1\resources\config\config.json find the code for the widget by searching for it's label (e.g., Bookmark-1).  Within the json you can cut and paste the objects to reorder them.  You should probably backup the file first. Here is an example of a bookmark json object:

       {
            "id"2,
            "name""Bookmark-A",
            "title""Bookmark-A",
            "type""2d",
            "imgParam": {},
            "snapParam": {
              "fileName""widget_2-snap2.jpg",
              "originalName""widget_2-snap2",
              "url""${appResourceUrl}/images/widget_2/widget_2-snap2.jpg",
              "type""IMAGE",
              "size"235789,
              "created"1610661908021,
              "resourcesPrefix""images/widget_2",
              "fileFormat""image/jpeg"
            },
            "imagePosition""FILL",
            "imgSourceType""SNAPSHOT",
            "extent": {
              "spatialReference": {
                "wkid"102677
              },
              "xmin"2241999.3155568424,
              "ymin"208827.52623204477,
              "xmax"2268665.9822235093,
              "ymax"235494.19289871145
            },
            "viewpoint": {
              "rotation"0,
              "scale"40000,
              "targetGeometry": {
                "spatialReference": {
                  "wkid"102677
                },
                "x"2255332.648890176,
                "y"222160.8595653781
              }
            },
            "graphics": [],
            "showFlag"true,
            "mapViewId""widget_2editor-null",
            "mapDataSourceId"null,
            "layersConfig": {}
          }
 
ADDITIONAL NOTE:  You should probably also do this in server\src\public\apps\1\resources\config\config.json.   I have now been told that "one config is for published version, one config is for draft version."

View solution in original post

5 Replies
BrunoSousa1
Occasional Contributor

I've been trying to do that for sometime as well. Even sent a message to the Bookmark widget developer about this but I got no feedback

DaveFullerton
Occasional Contributor III

I tried something with the developer edition that seemed to work.  I am still using version 1.1 for reasons I won't explain.  The ExB projects are named with integer values starting with 0 and going up.  Using project number 1 as an example, in arcgis-experience-builder-1.1\server\src\public\apps\1\resources\config\config.json find the code for the widget by searching for it's label (e.g., Bookmark-1).  Within the json you can cut and paste the objects to reorder them.  You should probably backup the file first. Here is an example of a bookmark json object:

       {
            "id"2,
            "name""Bookmark-A",
            "title""Bookmark-A",
            "type""2d",
            "imgParam": {},
            "snapParam": {
              "fileName""widget_2-snap2.jpg",
              "originalName""widget_2-snap2",
              "url""${appResourceUrl}/images/widget_2/widget_2-snap2.jpg",
              "type""IMAGE",
              "size"235789,
              "created"1610661908021,
              "resourcesPrefix""images/widget_2",
              "fileFormat""image/jpeg"
            },
            "imagePosition""FILL",
            "imgSourceType""SNAPSHOT",
            "extent": {
              "spatialReference": {
                "wkid"102677
              },
              "xmin"2241999.3155568424,
              "ymin"208827.52623204477,
              "xmax"2268665.9822235093,
              "ymax"235494.19289871145
            },
            "viewpoint": {
              "rotation"0,
              "scale"40000,
              "targetGeometry": {
                "spatialReference": {
                  "wkid"102677
                },
                "x"2255332.648890176,
                "y"222160.8595653781
              }
            },
            "graphics": [],
            "showFlag"true,
            "mapViewId""widget_2editor-null",
            "mapDataSourceId"null,
            "layersConfig": {}
          }
 
ADDITIONAL NOTE:  You should probably also do this in server\src\public\apps\1\resources\config\config.json.   I have now been told that "one config is for published version, one config is for draft version."
MarceloRosensaft
New Contributor III

Thank you so much!

I'm using the AGOL version but I guess it's time to move to the developers edition and get some flexibility. I'll try your solution when I get there.

I would expect some response from the ESRI people but I guess they're busy enhancing the product 😇. It's so good that we have plenty of time 😎

Best,

Marcelo

DaveFullerton
Occasional Contributor III

Working with the developer edition can be much the same as the AGOL version once it is installed.  An added benefit is that sometimes an update to the AGOL version could create a new bug that breaks something that worked in the past.  With the developer edition you decide when to move to the next version.  The developer edition must be installed locally and the project files will be stored locally too.  I have been making occasional backups of the project files because I don't know of any way for them to be stored directly on a network share.

0 Kudos
kaifeiji
New Contributor

AGOL 2024R01 / developer edition 1.14 supports changing order now.

0 Kudos