Skip to main content

Turn on "Find Me" onload?

Comments

6 comments

  • Permanently deleted user
    Hi Gordon,

     

    You could do this via a simple workflow that runs at startup:

     

    Screenshot from Workflow Designer, showing a RunExternalCommand activity calling the Geolocate command.

     

    Note that because both Chrome and iOS require SSL in order to allow the browser to share your location, you will need to secure your site if your users are using these environments.
    0
  • Permanently deleted user
    The Command for turning on the Geolocate button?  Is is a VB Script one?
    0
  • Permanently deleted user

    It's a (http://gedemo.geocortex.com/SamplesViewer/#commands.Geolocation) viewer command , which is part of the viewer's JavaScript API. It's effectively the same as clicking the "Find Me" button, but can be called even if the viewer isn't configured to display the button.

    0
  • Permanently deleted user
    Using the RunExternalCommand activity from within a workflow saves you from having to script anything -- you create the workflow and it does the rest for you.

     

    I've put the workflow for you (http://data.latitudegeo.com/community/WorkflowSamples/FindMe.zip) here . You can copy it to a location within your sites directory and then add it via Manager as I've done below:

     

    Adding a workflow to an Essentials site in Manager.

     

    In my example, I've put the workflow in a Workflows folder inside my Bing_Maps site.
    0
  • Permanently deleted user
    Oh, its really simple.

     

    In a new workflow put "Geolocate" in the Command Name  (nothing in the Parameter) and "Run Workflow on Startup"

     

     
    0
  • Permanently deleted user
    Yes, exactly.
    0

Please sign in to leave a comment.