Creating additional icons - e.g. for Playlist template

5344
21
Jump to solution
11-15-2013 05:25 AM
MarkBrickley
New Contributor II
Are there directions somewhere for making numbered icons? Our "tree memorial" project is being done by college students for a local town. My earlier comment (on the Playlist template page) was that we probably need 500 points, but the Playlist template is limited to 99. I do appreciate the new revision having a search capability, but the real advantage of the Playlist is the ability of people to browse the list (left panel) of people with trees named after them and see a photo. Clicking that item brings you to the tree's location and a popup with more details of that person. The students are computer savvy, so they can build icons if there is a way to do that AND the code will allow us to change the upper limit to 500 or so. If making icons is possible, how do we do that?   Is it necessary to use numbered icons?  Can't we just use the same symbol (a point) for every tree on our map?  Thanks in advance!
0 Kudos
1 Solution

Accepted Solutions
StephenSylvia
Esri Regular Contributor

Hi Julie, did you make sure to download the developer download and follow all these instruction: GitHub - Esri/playlist-storytelling-template-js: A storytelling template that organizes point data s...? The error you're getting appears that you never ran "bundle install" or that you have not installed ruby or the bundle installer appropriately. If you're on windows, you should also make sure you are using a command line program that provides access to the ruby commands. You should be able to run "ruby -v" and "bundle -v" to see the version numbers of each program installed.

View solution in original post

0 Kudos
21 Replies
StephenSylvia
Esri Regular Contributor
The main reason that the playlist has been limited to 99 points is because that is the maximum number of numbered icons that we have created for each color. In order to add new points, you will need to manually create new icons if you would each icon to contain a number.

I've attached the Photoshop files to make it a little easier. For each icon, you will need to open the appropriate Photoshop file, change the text layer with the new number (you will probably need to adjust the font size to make sure it fits within the pin), then "save as" the icon as a jpg.

You will need to save the new jpeg with the exact same file name (changing only the number portion) and in the correct color folder. Once you have added the new icons, you will need a JavaScript developer to modify the source code to allow for more than 99 points.
0 Kudos
EmilyLee
Occasional Contributor II

Hi Stephen,

Would you mind to pinpoint exactly where to modify the Playlist codes in order to allow for more than 99 points please? I've put all the extended numbered marker symbols that Rupert created in the same folder as the rest of 1-99 numbered icons by color. But still can't find where to modify the codes to include them.

Thank you very much in advance!

Emily

0 Kudos
StephenSylvia
Esri Regular Contributor

Emily,

The first thing you'll need to do is make sure you are using the developer download of the Playlist app. Instructions for setting up your computer for testing your app, building it for production, and source code are available here: Esri/playlist-storytelling-template-js · GitHub‌.

After you have added the additional photo icons to the correct folder, open up the MapConfig.js file (source > app > javascript > playlist > config > MapConfig.js). On line 19 you can increase the 'maxAllowablePoints' variable. Then make sure you build you app for production before deploying to your server.

0 Kudos
EmilyLee
Occasional Contributor II

Stehpen,

Thank you very much for your quick reply. I've downloaded the js developer version of the Playlist app, increased the 'maxAllowablePoints' variable from 99 to 700 on line 19 from the MapConfig.js file (source > app > javascript > playlist > config > MapConfig.js), and updated the webmap ID and other minor things from the index.html file (deploy > index.html).  But I still cannot link them together and make the two files talk to each other?  The webapp result still gives me up to 99 features.  I'm sorry that I'm not a developer, and I've followed the instructions and downloaded all the needed files (Git, Ruby, Ruby Dev Kit, Node) many many times, but I'm still stuck and sort of confused from here on:  Playlistjsinstr.PNG

and it gave me this error message from the Git Shell commend prompt:

cm.PNG

Thank you very much for your time here and any help is greatly appreciated!

Sincerely,

Emily

0 Kudos
CONABIONC_for_Knowledge_and_Us
Occasional Contributor

Looks like you are not in the github-shell? Depending on where you have installed github it should show somethihng like: C:\Users\...\GitHub>

You can start the Git-Shell directly from the start-menu or in Git via right-click on the repository where you saved the files of the dev-version.

0 Kudos
StephenSylvia
Esri Regular Contributor

Also, make sure you are running these commands from within the project directory that contains the playlist files. Here’s a trick to get there easily: http://lifehacker.com/5989434/quickly-open-a-command-prompt-from-the-windows-explorer-address-bar

0 Kudos
EmilyLee
Occasional Contributor II

Thank you both Flo and Stephen for your replies.

I think I'm still confused on where to run what. Am I supposed to setup project folder (run 'bundle install', 'npm install -g grunt-cli', 'npm install') in the GitHub location or where I cloned the project?

I tried both environments...but none of them seem to work when I got to 'bundle exec middleman' :

warning.PNG

Git.PNG

Another dumb question please... am I supposed to modify the codes and do my edits after running 'npm install' but before running 'bundle exec middleman'?

Thank you tremendously again!

Emily

0 Kudos
CONABIONC_for_Knowledge_and_Us
Occasional Contributor

Hi Emily,

here´s what I did:

  1. install the programes mentioned by Stephen
  2. create a folder in C:\Users\...\GitHub, e.g. called "playlist"
  3. download the files of the developer version and save them in "playlist"
  4. open Git > click on create repository and browse to the "playlist" folder > ok
  5. the new repository appears in Git > right-click it > open in git-shell
  6. follow the instructions given by Stephen (> bundle install > npm install -g grunt-cli >npm install
  7. test and build the app
0 Kudos
StephenSylvia
Esri Regular Contributor

Emily,

You will need to "set up you project folder" where you cloned the project (location in your first screenshot) but you will need to be using the Git Shell and not just the normal command line. If you type in "git" you should see a list of commands. This will indicate that you are using the correct command line tool.

From there, you will want to run the 4 commands that are in "setup project folder" section. This will install the dependent files and apps to test and build your app.

Then you can run 'bundle exec middleman' and open http://0.0.0.0:4567/‌ when that is running. The runs a local server on your computer that displays a test version of your app. When this is running, modify the source files and refresh your browser to see changes.

When you have all the changes in place, run 'bundle exec middleman build' to create a deployable version of your app.

0 Kudos