Skip to content

Commit

Permalink
change zoom extend
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Oct 9, 2018
1 parent c73d5cf commit 011d3cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/README-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Once the parameters have been set or changed, the map needs to be built or updat
| *map*.**csvDataSource**([*value*]) | Object | null | To load statistical data from a CSV file, set this parameter with an object *{ url: "", geoCol: "", valueCol: ""}* where *url* is the URL to get the file, *geoCol* is the column where the NUTS_ID is specified, and *valueCol* is the column containing the statistical values. |
| *map*.**statData**([*value*]) | Object | null | - |
| *map*.**scale**([*value*]) | String | *"20M"* | The simplification level of the map, among *"10M"*, *"20M"*, *"60M"*. The most simplified version is *"60M"*. |
| *map*.**scaleExtent**([*value*]) | Array | *[1,4]* | The zoom extent. The first value within [0,1] defines the maximum zoom out - the second value within [1,infinity] defines the maximum zoom in. Set to null or *[1,1]* to forbid zooming. |
| *map*.**scaleExtent**([*value*]) | Array | *[1,3]* | The zoom extent. The first value within [0,1] defines the maximum zoom out - the second value within [1,infinity] defines the maximum zoom in. Set to null or *[1,1]* to forbid zooming. |
| *map*.**proj**([*value*]) | String | *"3035"* | The map projection EPSG code. Possible values are given in [Nuts2json](https://github.com/eurostat/Nuts2json/blob/gh-pages/README.md). |
| *map*.**nutsLvl**([*value*]) | int | *3* | The nuts level to show on the map, from 0 (national level) to 3 (more local level). Note that not all NUTS levels are always available for Eurostat databases. |
| *map*.**NUTSyear**([*value*]) | int | *2013* | The version of the NUTS dataset to use. Possible values are given in [Nuts2json](https://github.com/eurostat/Nuts2json/blob/gh-pages/README.md). Note that the default value will be adjusted in the future depending on the [NUTS legislation in force](https://ec.europa.eu/eurostat/web/nuts/legislation). |
Expand Down
2 changes: 1 addition & 1 deletion js/eurostat-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//use https://github.com/badosa/JSON-stat/blob/master/utils/fromtable.md ?
out.statData_ = null;
out.scale_ = "20M";
out.scaleExtent_ = [1,4];
out.scaleExtent_ = [1,3];
out.proj_ = "3035";
out.nutsLvl_ = 3;
out.NUTSyear_ = 2013;
Expand Down

0 comments on commit 011d3cc

Please sign in to comment.