-
Notifications
You must be signed in to change notification settings - Fork 0
Developers Page
This section provides several useful informations for a developer in order to: manage the MapStore configuration, add and configure additional plugins and develop in general in MapStore.
By default MapStore loads configuration from config/mapStoreConfig.js. Passing the parameter config=myconfig in GET request the page will load: config/myconfig.js instead.
For more informations about configuration see the configuration page
In some cases dont need to use an ExtJs TabPanel as viewer/composer container. For example if we dont use the MetadataExplorer tool. In these cases if you want you can use a simple ExtJs Panel and change the container type. As you can see from the following code this is very simple by modifying the relevant code inside the Composer.html and Viewer.html files.
var appTabs = new Ext.Panel({ // Use Ext.Panel as a new container
region: "center",
layout: "fit", // Set a proper layout for the new container type
border : false,
id : "appTabs",
enableTabScroll: true
});
If you want you can add a welcome sceen during the viewer loading. To do this is very simple by following these steps:
-
Go to the composer.html/viewer.html and uncomment the relative code to import the relavant script
-
MapStore provide for you a default welcome sceen. If you want to customize this please edit the relevant CSS inside the mapstore.css file. The welcome sceen CSS names are:
#loading-mask, #loading, #loading .loading-indicator
In order to enable the graticule plugin please add the followig property to the 'app' definitions inside the composer.html and/or viewer.html:
showGraticule: true,
Follow aconfiguration example:
app = new GeoExplorer.Composer({
...
sources: sources,
showGraticule: true,
...
}, mapIdentifier, authorization, fullScreen);
Make attention that this Plugin only work if the map projection is EPSG:4326.