Skip to content

Commit

Permalink
Merge pull request #899 from OpenGeoscience/camera-clipbounds
Browse files Browse the repository at this point in the history
Allow adjusting camera clipbounds.
  • Loading branch information
manthey authored Aug 21, 2018
2 parents 95c1e62 + 05a2485 commit 65c4132
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 367 deletions.
2 changes: 1 addition & 1 deletion examples/tiles/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ block append mainContent

.form-group(title="The camera can use a parallel or perspective projection. The difference is subtly unless the data has non-zero z-values.")
label(for="camera-projection") Camera Projection
select#camera-projection.cameraparam(param-name="projection", placeholder="parallel")
select#camera-projection.cameraparam(param-name="projection", placeholder="parallel", reload="true")
option(value="parallel") Parallel
option(value="perspective") Perspective

Expand Down
2 changes: 1 addition & 1 deletion examples/tiles/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ $(function () {
}
break;
}
if (ctl.is('.layerparam') && ctl.attr('reload') === 'true') {
if (ctl.is('.layerparam,.cameraparam') && ctl.attr('reload') === 'true') {
map.deleteLayer(osmLayer);
osmLayer = map.createLayer('osm', layerParams);
tileDebug.osmLayer = osmLayer;
Expand Down
Loading

0 comments on commit 65c4132

Please sign in to comment.