Skip to content

Commit

Permalink
Merge 8b7820e into 52475a1
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 22, 2016
2 parents 52475a1 + 8b7820e commit 32f0b76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 1 addition & 5 deletions contribs/gmf/apps/mobile/js/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ goog.require('gmf.Themes');
/** @suppress {extraRequire} */
goog.require('gmf.authenticationDirective');
/** @suppress {extraRequire} */
goog.require('gmf.layertreeDirective');
/** @suppress {extraRequire} */
goog.require('gmf.proj.EPSG21781');
/** @suppress {extraRequire} */
goog.require('gmf.searchDirective');
/** @suppress {extraRequire} */
goog.require('ngeo.mobileGeolocationDirective');


Expand All @@ -48,7 +44,7 @@ app.MobileController = function(
gmfThemes, fulltextsearchUrl) {
goog.base(
this, defaultLang, langUrls, gettextCatalog, ngeoGetBrowserLanguage,
$scope, ngeoStateManager, ngeoFeatureOverlayMgr,
$scope, ngeoStateManager, ngeoFeatureOverlayMgr, 21781,
gmfThemes, fulltextsearchUrl);
};
goog.inherits(app.MobileController, gmf.AbstractMobileController);
Expand Down
9 changes: 4 additions & 5 deletions contribs/gmf/src/controllers/abstractmobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ goog.require('gmf.mobileBackgroundLayerSelectorDirective');
/** @suppress {extraRequire} */
goog.require('gmf.mobileNavDirective');
/** @suppress {extraRequire} */
goog.require('gmf.proj.EPSG21781');
/** @suppress {extraRequire} */
goog.require('gmf.searchDirective');
/** @suppress {extraRequire} */
goog.require('gmf.themeselectorDirective');
Expand Down Expand Up @@ -50,6 +48,7 @@ gmfModule.constant('isMobile', true);
* @param {ngeo.StateManager} ngeoStateManager the state manager.
* @param {ngeo.FeatureOverlayMgr} ngeoFeatureOverlayMgr The ngeo feature
* overlay manager service.
* @param {number} srid The used EPSG code.
* @param {gmf.Themes} gmfThemes Themes service.
* @param {string} fulltextsearchUrl url to a gmf fulltextsearch service.
* @constructor
Expand All @@ -58,7 +57,7 @@ gmfModule.constant('isMobile', true);
*/
gmf.AbstractMobileController = function(
defaultLang, langUrls, gettextCatalog, ngeoGetBrowserLanguage,
$scope, ngeoStateManager, ngeoFeatureOverlayMgr,
$scope, ngeoStateManager, ngeoFeatureOverlayMgr, srid,
gmfThemes, fulltextsearchUrl) {

/**
Expand All @@ -79,7 +78,7 @@ gmf.AbstractMobileController = function(
labelKey: 'label',
groupsKey: 'layer_name',
groupValues: ['osm'],
projection: 'EPSG:21781',
projection: 'EPSG:' + srid,
url: fulltextsearchUrl
}];

Expand Down Expand Up @@ -126,7 +125,7 @@ gmf.AbstractMobileController = function(
layers: [],
view: new ol.View({
center: [632464, 185457],
projection: ol.proj.get('epsg:21781'),
projection: ol.proj.get('epsg:' + 21781),
minZoom: 3,
zoom: 3
}),
Expand Down

0 comments on commit 32f0b76

Please sign in to comment.