diff --git a/assets/bundle.js b/assets/bundle.js index 5630c87..7ae708e 100644 --- a/assets/bundle.js +++ b/assets/bundle.js @@ -52,12 +52,17 @@ var Map = React.createClass({ zoomControl: false }); + new L.Control.Zoom({ position: 'topright' }).addTo(_this.map); + _this.map.attributionControl.setPrefix('David Rumsey | Stanford University Libraries'); $.getJSON(this.state.mapid, function (data) { _this.setState({ mapInfo: data }); _this.map.attributionControl.addAttribution(data.attribution); - var iiifLayer = L.tileLayer.iiif(data.sequences[0].canvases[0].images[0].resource.service['@id'] + '/info.json', {}); + var iiifLayer = L.tileLayer.iiif(data.sequences[0].canvases[0].images[0].resource.service['@id'] + '/info.json', { + tileSize: 1024 + }); + _this.map.addLayer(iiifLayer); var firstTime = true; // Zoom in for more detail diff --git a/lib/map.js b/lib/map.js index c8a5d04..84e4249 100644 --- a/lib/map.js +++ b/lib/map.js @@ -27,6 +27,8 @@ var Map = React.createClass({ zoomControl: false }); + new L.Control.Zoom({ position: 'topright' }).addTo(_this.map); + _this.map.attributionControl.setPrefix('David Rumsey | Stanford University Libraries'); @@ -34,7 +36,9 @@ var Map = React.createClass({ _this.setState({mapInfo: data}); _this.map.attributionControl.addAttribution(data.attribution); var iiifLayer = L.tileLayer.iiif(data.sequences[0].canvases[0].images[0].resource.service['@id'] + '/info.json', { + tileSize: 1024 }); + _this.map.addLayer(iiifLayer); var firstTime = true; // Zoom in for more detail