[Devel] [GIT] OpenBioMaps GIT repository, branch devel_2.2 updated: Some project variables moved into db. This upgrade let project settings

git at vocs.unideb.hu git at vocs.unideb.hu
Wed Feb 7 10:34:38 CET 2018


    The project "OpenBioMaps GIT repository":

    The branch, devel_2.2 has been updated
       via  2eacd7694887118604ae6ec54c04aadb4f67f917 (commit)
      from  60c9c944699903e0c978398fb3399226736825bf (commit)


- Log -----------------------------------------------------------------
commit 2eacd7694887118604ae6ec54c04aadb4f67f917
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Wed Feb 7 10:29:27 2018 +0100

Some project variables moved into db. This upgrade let project settings
to be more flexible.

New table in biomaps db: project_variables

CREATE TABLE project_variables (
project_table character varying(64) NOT NULL,
map_center geometry,
map_zoom smallint DEFAULT 7,
click_buffer smallint DEFAULT 0,
zoom_wheel boolean DEFAULT true,
default_results_view character varying(12) DEFAULT 'list'::character varying,
default_layer character varying(12) DEFAULT 'layer_osm'::character varying,
fixheader boolean DEFAULT false,
turn_off_layers character varying(128),
subfilters boolean DEFAULT false
);

According to this upgrade the

MAPCENTER_X
MAPCENTER_Y
ZOOM
CLICK_BUFFER
ZOOM_WHEEL_ENABLED
DEFAULT_VIEW_RESULT_METHOD
DEFAULT_LAYER
FIXHEADER
TURN_OFF_LAYERS
SUBFILTERS

constants should be removed from the local_vars.php.inc after values
inserted into the new table!

-----------------------------------------------------------------------

Summary of changes:
 libs/create_new_project.php | 31 ++++++++++++----
 libs/main.js.php            | 90 +++++++++++++++++----------------------------
 2 files changed, 57 insertions(+), 64 deletions(-)

-- 
OpenBioMaps GIT repository


More information about the Devel mailing list