GPX Route Mail App for Alternate 2013 and Alternate On-line

GPX Route Mail App for Alternate 2013 and Alternate On-line As a part of my MEC discuss final month I offered a Mail App that will present a Map with route layer added primarily based on the content material of a GPX attachment on a acquired message. For instance here is a screenshot of the Software that was activated from a GPX file that was exported from the Google Tracks utility .

Mail Apps are a brand new characteristic of Alternate2013/Alternate On-line that offers you a normal manner of extending the performance of Outlook,OWA and OWA for gadgets. The way in which this explicit Mail app works is first, within the Manifest file there’s a filter so it would solely present on messages you open/view which have an attachment eg

  1. <Rule xsi:sort=“RuleCollection” Mode=“And”>  
  2.     <Rule xsi:sort=“ItemIs” FormType = “Read” ItemType=“Message” />  
  3.     <Rule xsi:sort=“ItemHasAttachment” />  
  4. </Rule>  

Subsequent if any individual prompts the appliance the following factor it does is makes use of the brand new Attachments API that was added in 2013 SP1 to first get the small print of the attachments on the message, it then checks if one in every of them is a GPX attachment. If there’s a GPX attachment it then makes use of an externally hosted controller to make the GetAttachment Name to EWS utilizing a token obtained for authentication to get the Attachment content material which is then returned to the MailApp (that is performed utilizing a modified model of the next pattern). As soon as the Mail App has the GPX content material from the attachment it then makes use of leaflet which is a open supply javascript library that makes mapping simpler and in addition a GPX plugin that was developed for leaflet so as to add a GPX layer to the map.

Notice on this pattern I am utilizing  openstreetmap for those who going to make use of this in your individual atmosphere or develop an identical resolution utilizing this code you want to pay attention to the tile utilization coverage http://wiki.openstreetmap.org/wiki/Tile_usage_policy of this or any mapping service you resolve to make use of.

To make use of a Mail App it’s essential to host all of the related the recordsdata your self someplace see http://msdn.microsoft.com/en-us/library/workplace/fp161135(v=workplace.15).aspx for extra particulars. With this explicit utility it’s essential to host each the Mail App and in addition the controller service to can help you get the attachment content material.  I’ve put a download of the hosted code for the Mail App right here https://www.dropbox.com/s/6fzzc3hpli8x5sf/HostedFiles.zip the attachment service makes use of a modified model of http://code.msdn.microsoft.com/workplace/Mail-apps-for-Workplace-Get-38babdc9 I’ve included a replica of the modified controller within the download.

Leave a Reply