Skip to main content

Open Street View for a Location Using the Map Context Menu - Sets to Centre of Map

Comments

14 comments

  • Permanently deleted user
    Hi Gary,

     

    I noticed that, too.  I think the tool is designed to open the street view based on center of map, not the position clicked.  I have users first click the "Center map here" tool and then open the street view.  You could probably create a workflow that combines this into one step, just haven't had the time to look into it.

     

    ~Stephanie

     

     
    0
  • Permanently deleted user
    Hi Stephanie,

     

    Thanks for confirming that this occurs for you as well. 

     

    Gary 
    0
  • Trevor Floyd
    I was able to find a solution this morning and am reporting to Latitdue...  You must ignore the instructions on the current versions and hack the source code of the site.  The directions for prior sites include a "batch" command to zoom first then open StreetView.  Let me know if you need more.  Trev.
    0
  • Trevor Floyd
    How does one change the thumbs up/down button... I clicked on Steph by mistake and can't undo.  Dang multi-screens!
    0
  • Trevor Floyd
                    {

     

                      "iconUri": "{ViewerConfigUri}../../../Resources/Images/GSview.png",

     

                      "text": "Open Streetview and center",

     

                      "description": "Blue target interacts between views",

     

                      "batch": [

     

                            {

     

                              "command": "PanToPoint",

     

                              "commandParameter": "{{context}}"

     

                            },

     

                            {

     

                              "command": "RunWorkflowById",

     

                              "commandParameter": "OpenStreetviewHere"

     

                            }

     

                        ]

     

                    }
    0
  • Trevor Floyd
    Gary: I don't see a [space] after the batch command in your sample...

     

      sample "batch":[

     

      working "batch": [

     

    Maybe that's it?
    0
  • Justin Kraemer
    Trevor I would like more detail on the solution you say you reported to Latitude, please.

     

    Thanks,

     

    Justin
    0
  • Trevor Floyd
    Just returned from Vacation.... and saw the post...

     

    I was in communication with Amanda from support:

     

    The problem is not with step 10 but with the wording of step 6...

     

     

    Add the right click context menu.  If using version Essentials 4.5 or earlier, follow steps 7 to 11 below.  If using Essentials version 4.6 or newer, you can edit the context menu in Essentials Manager.  Edit the viewer in Essentials Manager and click the "Context Menus" page.  The Map Context Menu is where you would add the new entry for "Open Streetview here".  Skip to step 12 if using version 4.6 or newer otherwise continue with step 7 below..

     

     

    The notes on 4.6 are incorrect as "batch" is not available in manager. ALL VERSIONS must hard code

     

    She noted they were going to attempt a workflow for "PanToPoint" instead of attempting to add batch commands to the interface... but noted wiithin a day or two of Mar 29 the solution would be on the support site???
    0
  • Permanently deleted user
    Hi everyone, 

     

    First off, thanks for helping bring some of these issues to light!  I've modified the workflow and steps a bit after Trevor brought up the issue of step 6 being incorrect.  I think that it should be a bit clearer and easier to use now.  But it does sound like there might be more than one issue being discuessed here, so if there's still problems with the updated version let me know.  It's possible that the event listeners wouldn't work smoothly if panning the map or opening the 3rd party maps panel takes longer than the short wait timeout that they're assigned in the workflow.

     

    Thanks! 

     

    -Amanda
    0
  • Permanently deleted user
    Thanks Amanda!  For folks following this topic, make sure to re-read the instructions that come with the code sample listed in the original post; they are different from what they used to be.  For newer versions, this now works completely within Manager, and there is no need to edit any code.
    0
  • Permanently deleted user
    Amanda,

     

    I've been able to get this to work on a number of sites, but this last one will only center but not open Streetview:

     

    https://maps.srcity.org/Html5Viewer/Index.html?viewer=publiccounty

     

    Any idea how to debug?
    0
  • Permanently deleted user
    Hi Mike, 

     

    Looks to me like that viewer was just never set up for google maps.  The 'Linked Maps' button on the toolbar is greyed out.

     

    -Amanda
    0
  • Permanently deleted user
    Well just shoot me!  I must've not wanted it on that site!  Thanks.
    0
  • Justin Kraemer
    In follow-up tp my post from April, I did manage to get my Open Streetview Here working as I desired. Simply by modifying the workflow I had from the original setup to match Amanda's modified workflow in Code Gallery, the Open Streetview Here command now honours the click location. Thank you Amanda!
    0

Please sign in to leave a comment.