Personnaliser des déploiements JMap Web / Customize JMap Web deployments
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.
- Mettez la valeur false à une ou plusieurs des options suivantes dans le fichier index de JMap Web// Options de carte et navigationaddGeolocateButton: true,addCoordinateZoomButton: true,addInitialViewButton: true,addRewindViewButton: true,addMapOverview: true,addMousePosition: true,addScaleBar: true,addZoomButtons: true,isMapOverviewMaximized: false,// Outils JMapaddInfoReportTool: true,addMeasureTools: true,addMeasureAreaTool: true,addMeasureDistanceTool: true,addMeasureCircularAreaTool: true,addMouseOverTool: true,addAnnotations: true,// Outils d'éditionsaddEditionTools: false,addEditionCreateElementTool: true,addEditionModifyElementTool: true,addEditionShowElementFormButton: true,// Outils de SélectionaddSelectionTools: true,addCircleSelectionTool: true,addLineSelectionTool: true,addPointSelectionTool: true,addRectangleSelectionTool: true,addShapeSelectionTool: true,// AutreaddFullScreenButton: 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 GoogleaddGoogleDirections: true,addGoogleGeocoding: true,addGoogleStreetView: true
- 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.
- Set one or more of the following options to false in the JMap Web index file:// Map and navigation optionsaddGeolocateButton: true,addCoordinateZoomButton: true,addInitialViewButton: true,addRewindViewButton: true,addMapOverview: true,addMousePosition: true,addScaleBar: true,addZoomButtons: true,isMapOverviewMaximized: false,// JMap ToolsaddInfoReportTool: true,addMeasureTools: true,addMeasureAreaTool: true,addMeasureDistanceTool: true,addMeasureCircularAreaTool: true,addMouseOverTool: true,addAnnotations: true,// Edition ToolsaddEditionTools: false,addEditionCreateElementTool: true,addEditionModifyElementTool: true,addEditionShowElementFormButton: true,// Selection ToolsaddSelectionTools: true,addCircleSelectionTool: true,addLineSelectionTool: true,addPointSelectionTool: true,addRectangleSelectionTool: true,addShapeSelectionTool: true,// OtheraddFullScreenButton: 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 featuresaddGoogleDirections: true,addGoogleGeocoding: true,addGoogleStreetView: true
- Update the deployment. The JMap Web application will not display the targeted features.