Skip to main content

Comments

35 comments

  • Stefan Schweigert

    Hello Guido,

    Please refer to the section on the Integration Module (Third-Party Maps) section in the Administrator and Developer Guide, which can provide more information on setup. Depending on which Third Party provider you are using, you may need to include a key within the configuration files.

     

    Thanks,

     

    Stefan
    0
  • Frank Martin

    I'm having problems as well.  I followed the instructions in the HTML5 Administrator and Developer Guide. Included a key within the BingMaps.html file, added the configuration code to the viewers Desktop.json.js file (set "headerIsVisible" to "false"), and added the the "3rd Party Maps" tool to the toolbar.  When the viewer is launched, the "3rd Party Maps" tool is not active.  Any suggestion?

    Are there any values needed for the "allowedOrigins" parameter when using the Bing example configuration? 

    Also, I noticed that the example configuration code in the documentation for the "externalComments" "uri" parameter has a value of ""Resources/ThirdPartyMaps/BingMaps.html", however the folder name created when the viewer was added in my installation is "Resources/3rdPartyMaps/BingMaps.html". 

    "externalComponents": [

     

    {

     

    "id": "bingMaps",

     

    "displayName": "Bing Maps",

     

    "uri": "Resources/ThirdPartyMaps /BingMaps.html",

     

    "viewpointIndicatorUri": "Resources/Images/Icons/location-direction-red-32.png"

     

    }

     

    ]

     

    0
  • Longguang Fan

    Hi Frank,

    Could you please try  "uri": "Resources/3rdPartyMaps/BingMaps.html" in "externalComponents"?

    Long

    0
  • Frank Martin

    Hi Long,

    I did change the "uri" to "Resources/3rdPartyMaps/BingMaps.html", but the results were the same.  The "3rd Party Maps" tool is still inactive.

    Thanks,

    Frank

    0
  • Permanently deleted user

    Hi Frank,

    When configuring the 'externalComponents', are you editing the file of the sites Virtual directory? eg: 

    C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\[instance]\REST Elements\Sites\[site]\Viewers\[viewer]\VirtualDirectory\Resources\Config\Default

     

    Also, just to clarify, the Bing example does not require configuring the 'allowedOrigins' parameter, and the 'externalComments' 'uri' parameter should point to the '3rdPartyMaps' folder instead 'ThirdPartyMaps' as below (this has been fixed in the Administrator and Developer Guide for the next release):

    "externalComponents": [

     

        {

     

            "id": "bingMaps",

     

            "displayName": "Bing Maps",

     

            "uri": "Resources/3rdPartyMaps/BingMaps.html",

     

            "viewpointIndicatorUri": "Resources/Images/Icons/location-direction-red-32.png"

     

        }

     

    ]

    Thanks,

     

    Cody
    0
  • Nelson Dobbs

    Frank,

    I don't know if you noticed, but by default the Integration module is in the desktop.json.js file after install.  So you may want to check if you have 2 integration modules in that file if you added it like the documentation mentions.

    0
  • Frank Martin

    Thanks Nelson!  That was it!  Over thinking what I had to do to get the 3rd party maps to work.. Took the words "Copy this configuration to the configuration file for each user interface that you support in your viewer—Desktop or Tablet." too literally.  Didn't dawn on me that it was already there..

     

     

    Thanks again,

    Frank

    0
  • Cattyann Campbell

    I'm getting the gray bix the example map I saw had Pictometry, Google Maps and Bing... Where do I put a key if I need one?

     

    0
  • Longguang Fan

    Hi Cattyann,

    Please refer to Administrator and Developer Guide page 128.

    For example, Integrate with Bing Maps.

    - Find the file is at "C:\inetpub\wwwroot\Html5Viewer\Resources\3rdPartyMaps\BingMaps.html",

    - find var bingApiKey = ""; 

    - Type or copy your Bing Maps key between the quotation marks.

    Long

    0
  • Cattyann Campbell

    I have it in but the map extent is pointing to Africa instead of upstate NY ... Goggle Street view works well but can't get Bing to center or anything.

    0
  • Cattyann Campbell

    /customer/servlet/servlet.FileDownload?file=00P6000000elu6NEAQ

    How do I fix this?

    0
  • Permanently deleted user

    Hi Cattyann,

    It appears Bing maps is opening at its default location, this could be caused if the ID in BingMaps.html is different from Desktop.json.js, it should be 'bingMaps' and is case sensitive. 

    If that does not work, could you check the debug log (ctrl + shift + `) and see if any warnings appear when opening Bing Maps?

    Thanks,

     

    Cody
    0
  • Permanently deleted user

    Is it possible to have both the Bing Maps button and the Google Street View button available on the toolbar so the user may choose which one to view?

    0
  • Cattyann Campbell

    @Cody

    Thanks you :-)  that was it the Desktop.json file had "BingMaps" for the ID instead of "bingMaps"

    "1/2 a day gone because on a lower case b."

    Thanks again!

    0
  • Permanently deleted user

    The ShowExternalComponentView command is not working in a hyperlink I have set up in a feature description. When using workflows to zoom to and select parcels and addresses, I would like to be able to use this hyperlink in the feature description to open the 3rd Party Maps view. The button on my toolbar that uses this command works just fine. 

    The HTML anchor tag in the feature description looks like this: <a href="command:ShowExternalComponentView">Open Street View</a>

    Has anyone else encountered this?

    0
  • Permanently deleted user

    Hello all,

    I am trying to get the GoogleMaps tool working with no success so far.

    I downloaded the GoogleMaps.html and put it in the HTML5 viewer that we are using located here: F:\inetpub\wwwroot\Html5Viewer24\Resources\3rdPartyMaps

    I edited the Desktop.json file at: D:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\ErieCountyNY\Viewers\HTML\VirtualDirectory\Resources\Config\Default  and modified the existing ExternalComponentViewModel section to the following:

     {

     

                "id": "ExternalComponentViewModel",

     

                "type": "geocortex.essentialsHtmlViewer.mapping.modules.integration.ExternalComponentViewModel",

     

                "configuration": {

     

                  "containerRegionName": "ExternalComponentRegion",

     

                  "containerRegionType": "geocortex.framework.ui.DivStackRegionAdapter",

     

                  "headerIsVisible": true,

     

                  "showXButton": true,

     

                  "showMaximizeButton": true,

     

                  "resizeY": true,

     

                  "selectorIconUri": "Resources/Images/Icons/Toolbar/map-24.png",

     

                  "selectorText": "@language-integration-selector-text",

     

                  "statusText": "@language-integration-viewpoint-indicator-desc",

     

                  "defaultComponents": [],

     

                  "externalComponents": [

     

                    {

     

                      "id": "googleMaps",

     

                      "displayName": "Google Street View",

     

                      "uri": "Resources/3rdPartyMaps/GoogleMaps.html",

     

                      "viewpointIndicatorUri": "Resources/Images/Icons/location-direction-blue-32.png"

     

                    }

     

                  ]

     

                }

     

              }

     

            ]

     

          },

     

     

    I added the 3rd Party Maps tool to the toolbar and it shows as available but I get this message: "Street View data not found for this location" in my application when I click on the tool.  Any clues on what I am failing to catch?

    Thanks,

    Mike 

     

    0
  • Permanently deleted user

    Just a silly question but is the location that the device is trying to use actually near a 'StreetViewed' road?

    Regards

    Ralph Price

    0
  • Chris Dunlop

    I've set up both Bing Maps and Google Street View.  A couple of questions:

    - In Internet Explorer, when I open the 3rd Party Maps tool, it gives me the dreaded "Only secure content is displayed".  I think it's Bing Maps related.  Any ideas how to fix this?

    - Is it possible to have both Bing Maps and Google Street View both open automatically, not just one of them?

    Thanks,

    Chris

    0
  • Permanently deleted user

    @ Mike Leber

    You can use the 'DisplayDockedExternalComponentById' command to create buttons on the toolbar to open individual 3rd party maps. However if you already have Bing maps open and use a Google Street View button, it will open both in the panel.

    @ Robert

    The Integration module commands (including ShowExternalComponentView) currently do not work with hyperlinks. This has been addressed for the next maintenance release.

    @ Chris

    To address the "Only secure content is displayed" issue, you will need to edit the BingMaps.html page, which in a default deployment can be found here:

    'C:\inetpub\wwwroot\Html5Viewer\Resources\3rdPartyMaps\BingMaps.html'

    Look for the line '<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>' and update the src to "https ://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1 "

    Google Maps is already using https so it should not have an issue.

    Pictometry would also need to be updated, to change the following strings in 'Pictometry.aspx' from http to https:

    public string IpaLoadUrl = "https ://pol.pictometry.com/ipa/v1/load.php";

    public string IpaJsLibUrl = "https ://pol.pictometry.com/ipa/v1/embed/host.php?apikey=" + ApiKey;

     

    To have both Bing Maps and Google Street View both open automatically, you can set the defaultComponents property of the Integration module. For example:

    {

     

        "moduleName": "Integration",

     

        ...

     

        "viewModels": [

     

            {

     

                ...

     

                "configuration": {

     

                    ...

     

                    "defaultComponents": [ "bingMaps", "googleMaps" ],

     

                    ...

     

    Thanks,

     

    Cody
    0
  • Cattyann Campbell

    The new features video on 3rd party map has a sync-menu-item feature in the last part of the video where do I find this? How do I enable?

    0
  • Permanently deleted user

    In order to edit the menu items, you need to customize the ThirdPartyMap.js file:

    'C:\inetpub\wwwroot\Html5Viewer\Resources\3rdPartyMaps\ThirdPartyMap.js'

    On lines 52-65 you can see the action buttons (or just search for 'actionButtons') group, where each one has a 'show' property. Setting this to true for the 'syncButton' will enable this feature in the menu list.

    Note: When the maps are synced with this feature, the viewpoint indicator will change to the default (blue) as you can have several maps synced at the same time and the indicator cannot be dragged directly.

    Cody

    0
  • Cattyann Campbell

    Thanks!

    0
  • Permanently deleted user

    Is it possible to use the 3rd party maps function to open google maps itself, rather than into streetview directly?

    0
  • Permanently deleted user

    Hi Mick,

    It is possible, but requires adapting the GoogleMaps.html page to use a different map from the (https://developers.google.com/maps/documentation/javascript/reference) Google map API   such as this  simple map example ( https://developers.google.com/maps/documentation/javascript/examples/map-simple).

    Cody

    0
  • Permanently deleted user

    Where can the GoogleMaps.html be found? After the install, I don't see this file

    in the /Resources/3rdPartyMaps directory.

    Walter

    0
  • Longguang Fan

    Hi Walter,

    You can find GoogleMaps.html in the(https://support.geocortex.com/google-street-view-integration) code gallery . 

    Long

    0
  • Permanently deleted user

    Thanks Long.

    Walter

    0
  • Permanently deleted user
    The GoogleMaps.html is no longer located in the Code Gallery.  Was it removed or moved?  The only thing that comes up when a search of the entire site is done for "GoogleMaps.html" is a Question regarding how to display the image date.
    0
  • Permanently deleted user
    I am also interested if there is a way to integrate the zoom scales between the Essentials Viewer and the 3rd Party Map (Bing as an example)?
    0
  • Permanently deleted user
    Sorry for the confusion, Dane.  We'll get that moved into the new Code Gallery today!

     

     
    0

Please sign in to leave a comment.