From 59edb1968847d00552f66952b6cb575882a35ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 27 Apr 2016 11:34:48 +0200 Subject: [PATCH] Add documentation about the ngeo map configuration --- doc/integrator/ngeo.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/integrator/ngeo.rst b/doc/integrator/ngeo.rst index d2000229bf..2310eead5d 100644 --- a/doc/integrator/ngeo.rst +++ b/doc/integrator/ngeo.rst @@ -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.