Open Street View for a Location Using the Map Context Menu - Sets to Centre of Map
Hi,
I have installed the Open Street View for a Location Using the Context Menu (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_SEARCH_RESULT&id=kA46000000007oR) code on my HTML5 Viewer (vers. 2.8). When I right click on a street location and I get the Context Menu popup and click the Open Street View Here option, it launches the Google Street View pane, but only shows the centre of the map, not the actual location clicked.
Anyone else have this happen?
Thanks,
Gary
0
-
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.
~Stephanie0 -
Hi Stephanie,
Thanks for confirming that this occurs for you as well.
Gary0 -
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 -
How does one change the thumbs up/down button... I clicked on Steph by mistake and can't undo. Dang multi-screens! 0 -
{
"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 -
Gary: I don't see a [space] after the batch command in your sample...
sample "batch":[
working "batch": [
Maybe that's it?0 -
Trevor I would like more detail on the solution you say you reported to Latitude, please.
Thanks,
Justin0 -
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 -
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!
-Amanda0 -
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 -
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 -
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.
-Amanda0 -
Well just shoot me! I must've not wanted it on that site! Thanks. 0 -
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
14 Kommentare