Skip to content

Commit

Permalink
[Zurich] Update map tile layers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Feb 26, 2021
1 parent c403325 commit 9bd718b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions perllib/FixMyStreet/Map/Zurich.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ sub tile_parameters {
'https://www.ogc.stadt-zuerich.ch/mapproxy/wmts/',
'https://www.ogc.stadt-zuerich.ch/mapproxy/wmts/',
],
layer_names => [ 'LuftbildHybrid', 'Stadtplan3D' ],
layer_names => [ 'basiskarte_zuerich_orthofoto', 'basiskarte_zuerich_gebaeudeschraegansicht' ],
wmts_version => '1.0.0',
layer_style => 'default',
matrix_set => 'stzh',
suffix => '.jpeg', # appended to tile URLs
matrix_set => 'ktzh',
suffix => '.png', # appended to tile URLs
size => 512, # pixels
dpi => 96,
inches_per_unit => 39.3701, # BNG uses metres
projection => 'EPSG:2056',
origin_x => 2672499.0,
origin_y => 1256999.0,
origin_x => 2480237.0,
origin_y => 1315832.0,
};
return $params;
}
Expand Down
30 changes: 15 additions & 15 deletions web/js/map-wmts-zurich.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,54 @@

// From 'fullExtent' from http://www.gis.stadt-zuerich.ch/maps/rest/services/tiled95/LuftbildHybrid/MapServer?f=pjson
fixmystreet.maps.layer_bounds = new OpenLayers.Bounds(
2672499, // W
1238999, // S
2689999, // E
1256999); // N
2480237, // W
1062032, // S
2846837, // E
1315832); // N

fixmystreet.maps.matrix_ids = [
{
"scaleDenominator": 241904.761905,
"scaleDenominator": 256000,
"identifier": "0",
},
{
"scaleDenominator": 120952.380952,
"scaleDenominator": 128000,
"identifier": "1",
},
{
"scaleDenominator": 60476.1904761,
"scaleDenominator": 64000,
"identifier": "2",
},
{
"scaleDenominator": 30238.0952382,
"scaleDenominator": 32000,
"identifier": "3",
},
{
"scaleDenominator": 15119.0476189,
"scaleDenominator": 16000,
"identifier": "4",
},
{
"scaleDenominator": 7559.52380964,
"scaleDenominator": 8000,
"identifier": "5",
},
{
"scaleDenominator": 3779.76190464,
"scaleDenominator": 4000,
"identifier": "6",
},
{
"scaleDenominator": 1889.8809525,
"scaleDenominator": 2000,
"identifier": "7",
},
{
"scaleDenominator": 944.940476071,
"scaleDenominator": 1000,
"identifier": "8",
},
{
"scaleDenominator": 472.470238214,
"scaleDenominator": 500,
"identifier": "9",
},
{
"scaleDenominator": 236.235118929,
"scaleDenominator": 250,
"identifier": "10",
}
];
Expand Down

0 comments on commit 9bd718b

Please sign in to comment.