Skip to main content

Add a tool to a map region

Comments

3 comments

  • Mark Norbury
    I see.  For example, there is the geolocate tool, which is part of the navigation module.  The items in Desktop.json.js for this are:

     

                "type": "geocortex.essentialsHtmlViewer.mapping.modules.geolocate.GeolocateView",

     

                "require": "Mapping/modules/Geolocate/GeolocateView",

     

                "markup": "Mapping/modules/Geolocate/GeolocateButtonView.html",

     

                "region": "TopLeftMapRegion",

     

                "configuration": {}

     

    What about if I want to add the Zoom to Initial Extent tool?  The command is:

     

    "command": "ZoomToInitialExtent",

     

    How do I add this tool to this TopLeftMapRegion?

     

     
    0
  • Gandhar Wazalwar
    I do not see any module with a view associated with this command.

     

    I think you would have to create own view (optionally a viewmodel), wire command to a button in the view, and then attach the view/vm to a module (let's say navigation), update desktop config refering to this module and view alongwith the region of your choice.
    0

Please sign in to leave a comment.