Creating a layer for Training Map

1295
14
Jump to solution
09-01-2016 07:14 PM
ChrisPolley
New Contributor III

I'm looking to create a layer that will be used to place points( icons such as emergency responders will be placed) on a map for a table top scenario. When scenario is done and we are to refresh the browser or close the browser and reopen I don't want these points (Emergency icons ) saved. I thought I handle this before but I'm drawing a blank on how to create this.

Thank you.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   If you would like to have a draw widget symbololgy set that are specific to you and your needs then several files need some edits/creation.

The symbols that are available in the draw widget come from 10 json files that specify the symbols in json format

[install dir]\server\apps\[app#]\jimu.js\dijit\SymbolsInfo.

The json files then contain (minified) symbols:

[{
    "imageData": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAEM5JREFUeF7tWglUlFey7m56gabZN6GbpaGRBgOCkmecYwyJJsYzeU8d44tLnERj4uRNjM84ahaj5o0xiQuJuMcVg1EwwQ0UQRTFBQUlKGLiqIwi4gYIskPzvaq/uxEYVEQz58jhnlOnl///773fd6vqVtX9RaKu1sVAFwNdDHQx0MVAZ2TAgkB1J7HvjODEBIoBttX86M+PSU6T1JJcIenT2UhgAiQk/GluDvTle5JKEvj4+GDkyJGQy+Wg3z92NgJa42EyUhl4v379sG7dOpSVleHQoUOwsLBgAhZ3dgL+zODHjx+P5m3w4MEMvooksDMTICVwv9ra2uLGjRtN+O/evQtXV1cmIL0zg2ds/8ur//nnn7dY/aysLAbf6dXfi52ek5MTbt++3YKAVatWmQkY3ek0QBeqcrFzlA8jYNt5lefMmdMCPP+YMGECE2AgCeoUBLz8Zoi1VCGZJJKL02gDLCMRVrit1W9sbERYWBhfzydRPA4BbvRwb5KBJK+bJPRxOuzgs2JLa+keBmwnscCLShsEyhQCAW2tfkFBAZRKJV+P78h4HD5+QXKCpNzkS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Wzg81e7GMFomO08L8UTC6AjqsHHevHlCosQEEGBOjjrUnJ2d/QUiaJJWVEV6h4qowkqT/ESV5dbgEwk8F2F2O/kKBdrs0YG4skyPm9u1uM07Tvoo3D27BIbiTNqvaoXXZPhMwXQ6zETwy1PBHZosP9S7d28qCIkv+/pqERMTI7x2JpVKp3e4Q9OD9PbWS+TAcpmIZ8lZriF/wNsdk8EnwGant4cI2E2rfuylAFxeFkQHNloUp7yAu6cXoK6ESuL3aWfPnhXOOrh/k4lyTaNjzdLS8g3uaAAdOjo4OMBKqeSa/2M3d3eRkkjgAoewa3B9cT+t8l4iQrB7Ap9IK589NohWvDtu7+mFitwoGKpvtSs8NxgMePfdd4XDFBpj9+NOeIOJTVBq/ETfu6HobiTtGpx641VrW8EBptN2l+jsi5OjedX96YzyPx+44g9ihA9jqO+2CjyPxgmp7QhSfz7ieuLNyspKQyTwoQa8pDIsclQjO0yPW7GBBJ5qg5XX27XqrW9KTU0Fn31Svzue+KR/jw7Jx/C2Wclb7ofhruTd/egQZFeHwOfl5cHdXdgVbpHwqz5PRyPP3UMslQoO8vlga/yWm/7IBPBZoqmqBdq1+Dzg6Wq0+ygtLGSCg3R0csH69evbTUJ8fDzVEY1vsBCZY58u5K1mSw6XX7oQHOQoqkQXFRW1SURVVRUYeLOtr8D07FONX5g8vTShoa2Mj9mh0Wgwffp0REdHIy4uDmvXrsXEiRPh5+dn3vM50owSnGpna6TOHNo2vWvAhJiE84w0kikUtrd1SNp5qODIlOy7P2/JhGoE7RojHic07zzMdCHpYqCLgS4GOsjAv7yb28F+nrbH+NhM/P9LfyqVJs3YVQAAAABJRU5ErkJggg==",
    "height": 24,
    "xoffset": 0,
    "yoffset": 0,
    "width": 24,
    "name": "Airplane",
    "contentType": "image/png",
    "type": "esriPMS",
    "angle": 0,
    "url": "http://static.arcgis.com/images/Symbols/Transportation/Airplane.png"
}, {

The imageData above is the Base64 encoded string of the image file (online utility website for that Base64 Decode and Encode - Online )

So you would create a new 11.json file and add symbol code like above in an array (so you will need your images you will be using to be hosted on a web server).

Then in the [install dir]\server\apps\[app#]\jimu.js\dijit\templates\SymbolChooser.html you would add your new 11.json to the list (line 31 below):

<div style="width:320px;">
     <div class="symbol-section point-symbol-section" data-dojo-attach-point="pointSection">
          <table class="symbol-set-table" cellspacing="0">
               <colgroup>
                    <col width="130px"></col>
                    <col width="auto"></col>
               </colgroup>
               <tbody>
                    <tr>
                         <td>
                              <span>${nls.preview}:</span>
                         </td>
                         <td>
                              <div data-dojo-attach-point="pointSymPreview" style="width:100%;"></div>
                         </td>
                    </tr>
                    <tr class="point-sym-class-select-tr">
                         <td colspan="2">
                              <select class="restrict-select-width" data-dojo-attach-point="pointSymClassSelect" data-dojo-type="dijit/form/Select" style="width:100%;height:30px;">
                                    <option value='0' selected="selected">${nls.basic}</option>
                                    <option value='1'>A-Z</option>
                                    <option value='2'>${nls.arrows}</option>
                                    <option value='3'>${nls.business}</option>
                                    <option value='4'>${nls.cartographic}</option>
                                    <option value='5'>${nls.nationalParkService}</option>
                                    <option value='6'>${nls.outdoorRecreation}</option>
                                    <option value='7'>${nls.peoplePlaces}</option>
                                    <option value='8'>${nls.safetyHealth}</option>
                                    <option value='9'>${nls.shapes}</option>
                                    <option value='10'>${nls.transportation}</option>
                                    <option value='11'>my custom symbols</option>
                              </select>
                         </td>
                    </tr>

That's it now you have a custom symbol set in your apps draw widget that you can use.

View solution in original post

14 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   Are developing this map using the JS API or some other API?

0 Kudos
ChrisPolley
New Contributor III

I would like something for WAB or even Flex 3.7 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   You could just use the WAB otb draw widget. If that does not meet your needs then developing a custom widget that use a graphics layer would be the route to go.

0 Kudos
ChrisPolley
New Contributor III

Yes, this is what I was coming to but I'm having difficulties on how to dig into the draw widget.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

  What specifics do you need help with?

0 Kudos
ChrisPolley
New Contributor III

I suppose the source code and folders that hold the icons is what I need, I will need as point icons Emergency Respondes (Police, Fire, Ambulance) Excavators (backhoe, Augars) Resources (Buses, Barricades)

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   If you would like to have a draw widget symbololgy set that are specific to you and your needs then several files need some edits/creation.

The symbols that are available in the draw widget come from 10 json files that specify the symbols in json format

[install dir]\server\apps\[app#]\jimu.js\dijit\SymbolsInfo.

The json files then contain (minified) symbols:

[{
    "imageData": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAEM5JREFUeF7tWglUlFey7m56gabZN6GbpaGRBgOCkmecYwyJJsYzeU8d44tLnERj4uRNjM84ahaj5o0xiQuJuMcVg1EwwQ0UQRTFBQUlKGLiqIwi4gYIskPzvaq/uxEYVEQz58jhnlOnl///773fd6vqVtX9RaKu1sVAFwNdDHQx0MVAZ2TAgkB1J7HvjODEBIoBttX86M+PSU6T1JJcIenT2UhgAiQk/GluDvTle5JKEvj4+GDkyJGQy+Wg3z92NgJa42EyUhl4v379sG7dOpSVleHQoUOwsLBgAhZ3dgL+zODHjx+P5m3w4MEMvooksDMTICVwv9ra2uLGjRtN+O/evQtXV1cmIL0zg2ds/8ur//nnn7dY/aysLAbf6dXfi52ek5MTbt++3YKAVatWmQkY3ek0QBeqcrFzlA8jYNt5lefMmdMCPP+YMGECE2AgCeoUBLz8Zoi1VCGZJJKL02gDLCMRVrit1W9sbERYWBhfzydRPA4BbvRwb5KBJK+bJPRxOuzgs2JLa+keBmwnscCLShsEyhQCAW2tfkFBAZRKJV+P78h4HD5+QXKCpNzkSMz2xJ+NJOxZe3Sk8448Y2eneJHnMZCA79D4YqfGD2ra3+3bsH1W/6SkJPN8P3iU8Tzp5uUkvG/C09MTQ4cOxZQpU7Bo4UI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m9u1uM07Tvoo3D27BIbiTNqvaoXXZPhMwXQ6zETwy1PBHZosP9S7d28qCIkv+/pqERMTI7x2JpVKp3e4Q9OD9PbWS+TAcpmIZ8lZriF/wNsdk8EnwGant4cI2E2rfuylAFxeFkQHNloUp7yAu6cXoK6ESuL3aWfPnhXOOrh/k4lyTaNjzdLS8g3uaAAdOjo4OMBKqeSa/2M3d3eRkkjgAoewa3B9cT+t8l4iQrB7Ap9IK589NohWvDtu7+mFitwoGKpvtSs8NxgMePfdd4XDFBpj9+NOeIOJTVBq/ETfu6HobiTtGpx641VrW8EBptN2l+jsi5OjedX96YzyPx+44g9ihA9jqO+2CjyPxgmp7QhSfz7ieuLNyspKQyTwoQa8pDIsclQjO0yPW7GBBJ5qg5XX27XqrW9KTU0Fn31Svzue+KR/jw7Jx/C2Wclb7ofhruTd/egQZFeHwOfl5cHdXdgVbpHwqz5PRyPP3UMslQoO8vlga/yWm/7IBPBZoqmqBdq1+Dzg6Wq0+ygtLGSCg3R0csH69evbTUJ8fDzVEY1vsBCZY58u5K1mSw6XX7oQHOQoqkQXFRW1SURVVRUYeLOtr8D07FONX5g8vTShoa2Mj9mh0Wgwffp0REdHIy4uDmvXrsXEiRPh5+dn3vM50owSnGpna6TOHNo2vWvAhJiE84w0kikUtrd1SNp5qODIlOy7P2/JhGoE7RojHic07zzMdCHpYqCLgS4GOsjAv7yb28F+nrbH+NhM/P9LfyqVJs3YVQAAAABJRU5ErkJggg==",
    "height": 24,
    "xoffset": 0,
    "yoffset": 0,
    "width": 24,
    "name": "Airplane",
    "contentType": "image/png",
    "type": "esriPMS",
    "angle": 0,
    "url": "http://static.arcgis.com/images/Symbols/Transportation/Airplane.png"
}, {

The imageData above is the Base64 encoded string of the image file (online utility website for that Base64 Decode and Encode - Online )

So you would create a new 11.json file and add symbol code like above in an array (so you will need your images you will be using to be hosted on a web server).

Then in the [install dir]\server\apps\[app#]\jimu.js\dijit\templates\SymbolChooser.html you would add your new 11.json to the list (line 31 below):

<div style="width:320px;">
     <div class="symbol-section point-symbol-section" data-dojo-attach-point="pointSection">
          <table class="symbol-set-table" cellspacing="0">
               <colgroup>
                    <col width="130px"></col>
                    <col width="auto"></col>
               </colgroup>
               <tbody>
                    <tr>
                         <td>
                              <span>${nls.preview}:</span>
                         </td>
                         <td>
                              <div data-dojo-attach-point="pointSymPreview" style="width:100%;"></div>
                         </td>
                    </tr>
                    <tr class="point-sym-class-select-tr">
                         <td colspan="2">
                              <select class="restrict-select-width" data-dojo-attach-point="pointSymClassSelect" data-dojo-type="dijit/form/Select" style="width:100%;height:30px;">
                                    <option value='0' selected="selected">${nls.basic}</option>
                                    <option value='1'>A-Z</option>
                                    <option value='2'>${nls.arrows}</option>
                                    <option value='3'>${nls.business}</option>
                                    <option value='4'>${nls.cartographic}</option>
                                    <option value='5'>${nls.nationalParkService}</option>
                                    <option value='6'>${nls.outdoorRecreation}</option>
                                    <option value='7'>${nls.peoplePlaces}</option>
                                    <option value='8'>${nls.safetyHealth}</option>
                                    <option value='9'>${nls.shapes}</option>
                                    <option value='10'>${nls.transportation}</option>
                                    <option value='11'>my custom symbols</option>
                              </select>
                         </td>
                    </tr>

That's it now you have a custom symbol set in your apps draw widget that you can use.

ChrisPolley
New Contributor III

Nice! Thank you Robert.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

don't forget to mark the question as answered by clicking on the "Correct Answer" link on the reply that answered your question.

0 Kudos