Open Street View for a Location Using the Map Context Menu opens Google Maps instead
Many months ago I successfully implemented from the Code Gallery the example named Open Street View for a Location Using the Map Context Menu (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_SEARCH_RESULT&id=kA46000000007oR) . It worked great until recently. Now, whenever clicking Open Street View Here on the context menu, Google Maps opens instead of Street View. The user must then pick Street View from the Select Map dropdown menu, and only then does it open.
You can experience this behaviour here (http://bit.ly/brucemap) .
It is a nuisance for the users. What settings and areas ought I check to troubleshoot, please?
Thanks,
Justin
0
-
Hi Justin,
Can you try setting the default 3rd party map to open? The code is in the Desktop.json.js file and the snippet currently looks like this :
"defaultComponents": [],
"externalComponents": [
{
"id": "googleMaps",
"displayName": "Google Maps™",
"uri": "Resources/3rdPartyMaps/GoogleMaps.html",
"viewpointIndicatorUri": "Resources/Images/Icons/location-direction-red-32.png"
},
{
"id": "googleMapsSV",
"displayName": "Google Street View",
"uri": "Resources/3rdPartyMaps/GoogleMapsSV.html",
"viewpointIndicatorUri": "Resources/Images/Icons/location-direction-blue-32.png"
}
]
}
you would change "defaultComponents": [], to "defaultComponents": ["googleMapsSV"],
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Great! Works like a charm!
Thank you!0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer