Select to view content in your preferred language

Batch update image urls in a story map (map journal or map tour)?

1856
6
Jump to solution
11-18-2016 02:23 PM
KateNewell1
Frequent Contributor

Is there a way to batch update the image urls in a story map (map journal or map tour)? I have several story maps with images that are referenced by url and hosted on our own web server. The urls are not stored in a field with the data (especially for the map journal). The web server path has changed and I need to update the image URLs.  Is there an easy way to do this? Do the admin tools provide this service (free or Pro version)?

0 Kudos
1 Solution

Accepted Solutions
OwenGeo
Esri Notable Contributor

Hi Kate,

You should be able to do this using the ArcGIS Online Assistant.

Obviously, be very careful when editing the JSON.

  1. Sign in using your ArcGIS Online account.
  2. Find your story the left column.
  3. In the header choose I want to > View an item's JSON
  4. Click your story to view the JSON.
  5. In the right panel, scroll down to the Data section.
  6. I recommend COPYING the JSON before you edit, just in case something goes wrong. There's a button to do this.
  7. Click Edit (the pencil icon) to edit the JSON.
  8. Do a find and replace on your server name.
  9. Slick the Save icon to save changes.
  10. Load your story in another tab to see your updated story.

The Admin tools from GeoJobe may do this as well.

Owen

Owen Evans
Lead Product Engineer | StoryMaps

View solution in original post

6 Replies
SarahNoakes1
Frequent Contributor

Hi,

I don't know about the journal story map (I've not made one of those yet), but you can export, edit and upload the data used in a map tour as follows:

  • In ArcGIS Online, go to My Content
  • Find the web map and open it in the map viewer
  • Under the Map Tour layer, click the Perform Analysis tool
  • Expand Manage Data
  • Click Extract Data
  • Update the fields as necessary making sure you export as a csv file.
  • Go to My Content
  • Find the extracted csv file and download it
  • Note: If you have moved any points within the story map builder then in the exported file the Long and Lat fields will hold the correct locations and the long and lat fields will hold the original locations. Delete the long and lat fields before continuing
  • Edit and save the csv
  • In the story map builder, click the Organize button
  • Uncheck Use the first point as introduction
  • Select and delete all the existing points
  • Click Apply
  • Click Import
  • Select csv and drag the csv file in again
  • Once it has imported, Click Organize again and check the Use the first point as introduction option if required
  • Save

Hope that helps,

Sarah

Cornwall Council

0 Kudos
OwenGeo
Esri Notable Contributor

Hi Kate,

You should be able to do this using the ArcGIS Online Assistant.

Obviously, be very careful when editing the JSON.

  1. Sign in using your ArcGIS Online account.
  2. Find your story the left column.
  3. In the header choose I want to > View an item's JSON
  4. Click your story to view the JSON.
  5. In the right panel, scroll down to the Data section.
  6. I recommend COPYING the JSON before you edit, just in case something goes wrong. There's a button to do this.
  7. Click Edit (the pencil icon) to edit the JSON.
  8. Do a find and replace on your server name.
  9. Slick the Save icon to save changes.
  10. Load your story in another tab to see your updated story.

The Admin tools from GeoJobe may do this as well.

Owen

Owen Evans
Lead Product Engineer | StoryMaps
AdministratorAccount
New Contributor

Oh my goodness, I didn't know you could do that!  That's awesome!

Thank you Owen - I was just about to post a question about something else and you've solved it for me.   I'm now off to play with some JSON...

Cheers,

Sarah.

0 Kudos
SarahNoakes1
Frequent Contributor

Oops - I was logged in as the wrong account when I posted that.  But it's still really cool ;o)

0 Kudos
OwenGeo
Esri Notable Contributor

Sure, no problem.

Yes, this can be a very useful tool in your toolbox, but there is a risk of breaking your story or web map if you aren't careful...

So just be careful playing when around in the JSON!! 🙂

Owen

Owen Evans
Lead Product Engineer | StoryMaps
0 Kudos
KateNewell1
Frequent Contributor

Fantastic! Thanks so much Owen!!!

-Kate

0 Kudos