Relative paths for map tour images

741
2
Jump to solution
02-05-2014 12:45 PM
EvanThoms
Occasional Contributor II
The readme that comes with the tour map template states that you can use a relative path for PIC_URL, but I can't get this to work.

First, if my index.html is at
http://localhost:8080/MyTour/

and my image is at
http://localhost:8080/MyTour/Images/foo.bmp

wouldn't the relative path be ..//Images/foo.bmp? No variant of this that I have tried works including putting foo.bmp in the same folder as index.html and simply supplying foo.bmp, which the readme says you can do.

and Second, it would appear that you can't change the PIC_URL value to a relative path once the csv has been uploaded to AGOL and you are, for instance, trying to make this edit when in builder mode. Is that right?
0 Kudos
1 Solution

Accepted Solutions
GregoryL_Azou
Occasional Contributor III
It should work, did you try "Images/foo.bmp"? (path is relative to index.html)

You are correct, you can't enter relative URL within the builder.

PS: we don't recommend using bmp because of the larger file size. That's not supported with builder (but it works through CSV).

View solution in original post

0 Kudos
2 Replies
GregoryL_Azou
Occasional Contributor III
It should work, did you try "Images/foo.bmp"? (path is relative to index.html)

You are correct, you can't enter relative URL within the builder.

PS: we don't recommend using bmp because of the larger file size. That's not supported with builder (but it works through CSV).
0 Kudos
EvanThoms
Occasional Contributor II
Duh, it's working. I bet I wasn't saving the changes after importing the csv with the new relative paths.
Sorry to trouble you,
Thanks for the tip about bmps. I will convert them.
0 Kudos