diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-10-11 19:20:25 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-10-11 19:41:32 +0100 |
commit | 7a15b976f8e72cccc55fcb452aacc21f68b7e165 (patch) | |
tree | b21415d5e9aa1b11c91caf8b7699b7637efdf17d /web/js/map-OpenLayers.js | |
parent | 0407e599b3dff6ac04f89acb12a4727ee3d481bc (diff) |
Add Google OpenLayers-based map layer.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index e5ebeba32..a69b22799 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -285,7 +285,11 @@ $(function(){ } for (var i=0; i<fixmystreet.layer_options.length; i++) { fixmystreet.layer_options[i] = OpenLayers.Util.extend({ + // This option is used by XYZ-based layers zoomOffset: fixmystreet.zoomOffset, + // This option is used by FixedZoomLevels-based layers + minZoomLevel: fixmystreet.zoomOffset, + // This option is thankfully used by them both numZoomLevels: fixmystreet.numZoomLevels }, fixmystreet.layer_options[i]); if (fixmystreet.layer_options[i].matrixIds) { |