Skip to content

Commit

Permalink
Removing key, restricting extent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom MacWright committed Sep 7, 2010
1 parent b67d44c commit 4d03641
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapsonastick/moasutil.py
Expand Up @@ -102,7 +102,7 @@ def restrictions(db):
sm = SphericalMercator(levels=18)
env_nw = sm.xyz_to_envelope(min_w, min_n, max_zoom, tms_style = True)
env_se = sm.xyz_to_envelope(min_e, min_s, max_zoom, tms_style = True)
metadata['bounds'] = [env_se[0], env_nw[1], env_nw[0], env_se[1]]
metadata['bounds'] = [env_nw[0], env_nw[1], env_se[0], env_se[1]]

conn.execute(
"insert into metadata (name, value) values('bounds', ?)",
Expand Down
1 change: 1 addition & 0 deletions mapsonastick/static/js/map.js
Expand Up @@ -113,6 +113,7 @@ var add_layer = {
resolutions: resolution_range(layer.zooms[0], layer.zooms[1])
}
));
map.restrictedExtent = x;
},
/**
* Basic KML constructor. Only necessary to correctly
Expand Down
1 change: 0 additions & 1 deletion mapsonastick/templates/start.html
Expand Up @@ -46,7 +46,6 @@ <h2 class='layers-title'>Data layers</h2>
</div>
<div class='form-item form-option checkbox'>
<label class='option'>
<span class='key'></span>
<input class='form-checkbox' type='checkbox' />
</label>
</div>
Expand Down

0 comments on commit 4d03641

Please sign in to comment.