Zum Hauptinhalt gehen

feature details in HTML Viewer

Kommentare

8 Kommentare

  • Carmen Durham
    Or is there a way on the Details page to have "Return to Results"?  Or even "return to Home page"?

     

    Thanks and Happy New Year!

     

    Carmen
    0
  • Permanently deleted user

    Hi Carmen,

    In the configuration file for your viewer, there is a section of JSON for which command to run when you click on a result from the results list. The name of the event in question here is "ResultsListFeatureClickedEvent", if you search for that in the configuration file (Desktop.json.js for your desktop shell) there will be a commands section just below.

    By default the command is set to:

    "commands": [ "ShowFeatureDetails" ]

    This will open the feature details within the dataframe when you click on a result in the results list. You can choose to remove this completely in which clicking on a result will do nothing, or you can add a different command. I suggest giving the command "ShowFeatureDetailsExpanded" a try, as it will load the feature details in a different view, therefore still showing the details but not obstructing your results list.

    Let me know if this works for you, or if you have any further questions,

     

    Cory Purnell

     

    Latitude Geographics Quality Assurance
    0
  • Permanently deleted user

    Oh sorry Carmen,

    If you remove the "ShowFeatureDetails" command entirely, it will no longer zoom to the feature when you click on it (it will just do nothing). If you want it to zoom but not show the details, remove "ShowFeatureDetails" and add "ZoomToFeature" in it's place. That will zoom to the feature when you click it but continue to not show the details.

    0
  • Carmen Durham
    Great - thanks Cory!  I will try this first thing Monday morning.
    0
  • Carmen Durham
    Cory,

     

    1)  I tried "ShowFeatureDetailsExpanded" and that displayed the feature details in a different view but still displayed the results.  This was okay when I only had one feature in the results.  But if I had multiple features in the results list and clicked on a 2nd, 3rd, 4th... feature, the map would not zoom to the feature nor would it change the expanded details to display info for the new feature (it was stuck at the first feature's info that I clicked).   Nothing would change when I clicked on new feature in results list until I closed the "Expanded View".  I tried a couple of additional commands with no luck.  Any suggestions as to how to make this work?

     

    2)  I also tried the command ZoomToFeature.  As you said, this would just zoom to the feature and continue to show the results list with the long description but no details.   This worked as I expected and may be what I have to use.  But I would prefer #1 to work.

     

    3) New question, but related...   How to remove "View Additional Details" from the MapTip Footer.  I found a reference to the footer in the HTML Admin doc, but it didn't really help. I found "MapTipActions" in desktop.json.js and think the answer is there.

     

    Thanks for any help.

     

    Carmen
    0
  • Permanently deleted user

    Hi Carmen,

    I took a look at your first issue and you are correct, if you have opened the feature details subsequent feature details fail to open. This is actually a bug and I have reported it and assigned a developer to take a look, it will hopefully be fixed by our next release but unfortunately will be a problem for the time being. I have filed it as GVH-8612 in our internal bug tracking system and you will be able to look for that fix in the release notes of upcoming versions of the Geocortex HTML5 Viewer.

    As for your Map Tip question, you can remove the view additional details completely through the configuration json by looking for "id": "MapTipActions". Within the array of items will be an item for showing feature details, the entire item array looks like this by default:

    "items": [ <s>{ "text": "@language-menu-maptip-actions-view-details", "description": "@language-menu-maptip-actions-view-details-desc", "iconUri": "Resources/Images/Icons/arrow-right-alt-24.png", "batch": [ { "command": "ShowFeatureDetails" }, { "command": "DeactivateView", "commandParameter": "MapTipView" } ], "hideOnDisable": false },</s> { "text": "@language-menu-run-report", "description": "@language-menu-run-report-desc", "command": "ListReports", "commandParameter": "{{context}}", "hideOnDisable": true }, { "text": "@language-feature-layer-edit", "description": "@language-feature-layer-edit-desc", "iconUri": "Resources/Images/Icons/Toolbar/feature-edit-24.png", "command": "StartEditingFeature", "hideOnDisable": false } ]

    You are going to want to delete all the text which has the strike through in my example text above, this will remove that option from your map tips.

    Hopefully this was helpful, sorry about the issue with the expanded view and I will try to get it solved ASAP.

     

    Cory Purnell

     

    Latitude Geographics Quality Assurance Team
    0
  • Permanently deleted user

    Hi Carmen, 

    I actually ended up finding a quick work-around for the issue with the expanded view, set the command to be the following and it works as expected.

    "commands": [ "ShowFeatureDetailsExpanded", "ShowFeatureDetails" ]

    We will still be looking into the issue, but I believe this will work around the issue for now until that fix is in!

     

    0
  • Carmen Durham
    Thanks Cory for your help.  Both of these worked for me! 

     

    This will be helpful as I am trying to show that we can use the  GC HTML viewer to replace some old public facing flex apps (not related to GE) that have a ton of custom code.  This is important because I have to potentially talk someone into paying for another Geocortex Essentials license for a public facing server  as our current license is on intranet only server.  (we need to keep internal apps on a separate server from public facing for now).  This prototype replacement of our current Cemetery Viewer that is written in flex will hopefully do that!
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.