Action

Mark Location

Posted by C Basacik, Last update over 5 years ago

Creates a draft pre-populated with a link to Google Maps with current location. Draft is tagged “places”. Best if assigned to a keyboard. This script is modified from the original - original by Greig I think.

Steps

  • script

    /*
      Create new draft with template text and tag assigned.
    */
    
    // create template
    const template = `Place :  
    
    City: 
    
    `;
    
    // create the draft
    var d = Draft.create();
    d.content=template+"https://www.google.com/maps/place/"+draft.processTemplate("[[latitude]]")+","+draft.processTemplate("[[longitude]]");
    d.addTag("places");
    d.update()
    
    // load in editor
    editor.load(d);

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.