Skip to main content

Remove Toolbar Button from Handheld

Comments

3 comments

  • Permanently deleted user
    Hi Lisa,

     

    To remove the Toolbar button from the handheld view, look in the viewer's handheld.json.js file for the "viewModelId": "CompactToolbarViewModel", This will give a couple results but look for the json object like the following:

     

      , { "id": "CompactToolbarButtonView", "viewModelId": "CompactToolbarViewModel", "visible": true, "region": "HeaderRegion", "type": "geocortex.essentialsHtmlViewer.mapping.modules.toolbar.ToolbarButtonView", "markup": "Mapping/modules/Toolbar/ToolbarButtonView.html" }

     

    If you remove this from the handheld.json.js file the toolbar button at the top-right of the viewer will now be gone. Unfortunately now there is some white space where the toolbar used to be.  I am not entirely sure how to get rid of that whitespace at the moment, but I will check with out graphics team and they may have a solution.

    User-added image

    I will reply back if/when I find a solution for the white space.

    Cory Purnell

     

    Latitude Geographics Quality Assurance Team
    0
  • Permanently deleted user

    Hi Lisa,

    I found that if you place the following in the viewer's custom handheld.css file (located here: C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<site_name>\Viewers\<viewer_name>\VirtualDirectory\Resources\Styles\Custom\Handheld.css) the search icon should be pushed all the way over to cover that blank space:

    .shell-small .region.header-region .view.SearchView { right: 0;

     

    User-added image

    Let me know how this works out, and if you have any questions!

    Cory Purnell

     

    Latitude Geographics Quality Assurance Team
    0
  • Permanently deleted user
    Thank you so much Cory, that did the trick!
    0

Please sign in to leave a comment.