Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing key, restricting extent

  • Loading branch information...
commit 4d036413f550fced705453098c8752996eeb0205 1 parent b67d44c
Tom MacWright authored
View
2  mapsonastick/moasutil.py
@@ -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', ?)",
View
1  mapsonastick/static/js/map.js
@@ -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
View
1  mapsonastick/templates/start.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.