Skip to content

Commit

Permalink
limit the zoom level to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
chillly committed Jun 29, 2012
1 parent fa554a0 commit 00b001e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions showspeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function init() {

var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib='Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>';
var osm = new L.TileLayer(osmUrl, {minZoom: 8, maxZoom: 18, attribution: osmAttrib});
map.setView(hull,14); // set the map to show in Hull and zoom 14
var osm = new L.TileLayer(osmUrl, {minZoom: 14, maxZoom: 18, attribution: osmAttrib});

map.setView(hull,15); // set the map to show in Hull and zoom 14
map.addLayer(osm); // add the base Mapnik layer from OSM
map.speedLayer = new L.GeoJSON(); // create a new, empty, GeoJSON layer
map.addLayer(map.speedLayer); // Add the layer for later use
Expand Down

0 comments on commit 00b001e

Please sign in to comment.