Skip to content

Commit

Permalink
Add documentation about the ngeo map configuration (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Apr 27, 2016
1 parent 47d86ba commit e673751
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/integrator/ngeo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,23 @@ In the controler you have some lines like:
goog.require('gmf.authenticationDirective');
This is needed to include the javascript of the used directives.

The map configuration will be here:

.. code:: javascript
goog.base(
this, {
srid: 21781,
mapViewConfig: {
center: [632464, 185457],
zoom: 3,
resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05]
}
},
$scope, $injector);
.. note::

The resolutions should be the same as in the previus CGXP application to have
backward compatible permalinks.

0 comments on commit e673751

Please sign in to comment.