Personnaliser des déploiements JMap Web / Customize JMap Web deployments

Produit concerné / Related product

JMap WebVersions7


Jump to English version

Certains administrateurs JMap travaillent avec des gabarits personnalisés pour déployer des applications JMap Web. Ils souhaitent, par exemple, éliminer des options offertes aux utilisateurs de JMap Web. 

Guide étape par étape

Les personnalisations peuvent être effectuées en ajoutant du code javascript dans les pages html. 

  1. Mettez la valeur false à une ou plusieurs des options suivantes dans le fichier index de JMap Web
    // Options de carte et navigation
    addGeolocateButton: true,
    addCoordinateZoomButton: true,
    addInitialViewButton: true,
    addRewindViewButton: true,
    addMapOverview: true,
    addMousePosition: true,
    addScaleBar: true,
    addZoomButtons: true,
    isMapOverviewMaximized: false,

    // Outils JMap
    addInfoReportTool: true,
    addMeasureTools: true,
    addMeasureAreaTool: true,
    addMeasureDistanceTool: true,
    addMeasureCircularAreaTool: true,
    addMouseOverTool: true,
    addAnnotations: true,

    // Outils d'éditions
    addEditionTools: false,
    addEditionCreateElementTool: true,
    addEditionModifyElementTool: true,
    addEditionShowElementFormButton: true,

    // Outils de Sélection
    addSelectionTools: true,
    addCircleSelectionTool: true,
    addLineSelectionTool: true,
    addPointSelectionTool: true,
    addRectangleSelectionTool: true,
    addShapeSelectionTool: true,

    // Autre
    addFullScreenButton: true,
    addLayersMainMenuItem: true,
    addContextManager: true,
    addContextMainMenuItem: true,
    isTabMenuFixedOnStart: false,
    addLogo: true,
    addMessageInfo: false,
    addPrintButton: true,
    addSearchMainMenuItem: true,
    addSharingTools: true,
    addSharingToolsSocialOptions: false,
    addLogoutAsideMenuLink: true,
    displayLogoutOption: true,
    addPreferenceMenu: true,
    continuousZoom: false,

    // Fonctionnalités de l'api Google
    addGoogleDirections: true,
    addGoogleGeocoding: true,
    addGoogleStreetView: true


  2. Mettez à jour le déploiement. L'application JMap Web ne présentera pas les fonctions ciblées.



English version

Some JMap administrators work with custom templates to deploy JMap Web applications. For example, they want to eliminate options for users of JMap Web.

Step-by-step guide


Customizations can be done by adding javascript code in html pages.

  1. Set one or more of the following options to false in the JMap Web index file:
    // Map and navigation options
    addGeolocateButton: true,
    addCoordinateZoomButton: true,
    addInitialViewButton: true,
    addRewindViewButton: true,
    addMapOverview: true,
    addMousePosition: true,
    addScaleBar: true,
    addZoomButtons: true,
    isMapOverviewMaximized: false,


    // JMap Tools
    addInfoReportTool: true,
    addMeasureTools: true,
    addMeasureAreaTool: true,
    addMeasureDistanceTool: true,
    addMeasureCircularAreaTool: true,
    addMouseOverTool: true,
    addAnnotations: true,


    // Edition Tools
    addEditionTools: false,
    addEditionCreateElementTool: true,
    addEditionModifyElementTool: true,
    addEditionShowElementFormButton: true,


    // Selection Tools
    addSelectionTools: true,
    addCircleSelectionTool: true,
    addLineSelectionTool: true,
    addPointSelectionTool: true,
    addRectangleSelectionTool: true,
    addShapeSelectionTool: true,


    // Other
    addFullScreenButton: true,
    addLayersMainMenuItem: true,
    addContextManager: true,
    addContextMainMenuItem: true,
    isTabMenuFixedOnStart: false,
    addLogo: true,
    addMessageInfo: false,
    addPrintButton: true,
    addSearchMainMenuItem: true,
    addSharingTools: true,
    addSharingToolsSocialOptions: false,
    addLogoutAsideMenuLink: true,
    displayLogoutOption: true,
    addPreferenceMenu: true,
    continuousZoom: false,


    // Google API features
    addGoogleDirections: true,
    addGoogleGeocoding: true,
    addGoogleStreetView: true

  2. Update the deployment. The JMap Web application will not display the targeted features.