afackler / FireEyes

Github page to keep track of technical issues and suggestions on the FireEyes Wildfire Initial Attack project.
0 stars 0 forks source link

Configure IRWIN Pop-up #24

Open pjdohertygis opened 4 years ago

pjdohertygis commented 4 years ago

We should make the IRWIN pop-up appear similar to the #FireMappers pop-up. I've got the HTML pasted below and it is 90% of the way there.

`From computer-aided dispatch (IRWIN), WILDFIRE named - #{IncidentName}Fire - discovered {FireDiscoveryDateTime}. If this fire is near you, follow local agencies for potential evacuation information.

More Information Type: {IncidentTypeCategory} Acres Burned: {expression/expr0} Percent Contained: {expression/expr1} Cause: {FireCause} Last Update: {ModifiedOnDateTime}`

pjdohertygis commented 4 years ago

HTML

<div style="text-align: center;"><div style="text-align: left;"><div style="text-align: left;">From computer-aided dispatch (<a href="https://www.doi.gov/wildlandfire/hello-my-name-irwin" target="_blank">IRWIN</a>), WILDFIRE named - <a href="https://twitter.com/search?q=%23{IncidentName}Fire&amp;result_type=recent" target="_blank">#{IncidentName}Fire</a> - discovered {FireDiscoveryDateTime}. If this fire is near you, <u>follow local agencies </u><u>for potential evacuation information</u>. <br /><b><br />More Information </b><br /><div>Type: {IncidentTypeCategory}</div><div>Acres Burned: {expression/expr0}<br /></div><div>Percent Contained: {expression/expr1}</div><div>Cause: {FireCause} </div><div>Last Update: {ModifiedOnDateTime}</div></div></div></div><font face="Arial" size="3"></font>

pjdohertygis commented 4 years ago

What I need next is the get the Tweet this map button formatted so it uses the unique fire identifier from IRWIN to share a link to the map at that location. It should be configured similar to

<a href="https://twitter.com/intent/tweet?text=New%20fire%20{iaLocality}%20-%20%23{iaName}Fire%0aMap%20Link%3A%20https%3A//napsg.maps.arcgis.com/apps/webappviewer/index.html%3Fid%3D6dc469279760492d802c7ba6db45ff0e%26query%3DInitial_Attack_Form_2_Public_View_Layer_4057%252Cobjectid%3D{objectid}%0aComments%3A%20{iaComments}%0a%0a%23FireMappers" rel="nofollow ugc" style="background-color:#005288; border-radius:20px; border:1px solid #005288; display:inline-block; cursor:pointer; color:#ffffff; padding:8px 12px; text-decoration:none; margin: 6px;" target="_blank"><b>Tweet This Map #firemappers</b></a>

Except using the IRWIN layer, something like https://napsg.maps.arcgis.com/apps/webappviewer/index.html?id=6dc469279760492d802c7ba6db45ff0e&query=USA_Wildfires_v1_5712%2CUniqueFireIdentifier%2C2020-AKFAS-011236 (where 2020-AKFAS-011236) is supposed to be {UniqueFireIdentifier}

but in the format that works. I don't speak HTML...