This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('a[href$=.pdf]').click(function(){ | |
| if(pageTracker){ | |
| var fixedLink = this.href; | |
| fixedLink = fixedLink.replace(/https?:\/\/(.*)/,"$1"); | |
| fixedLink = '/downloads/' + fixedLink; | |
| pageTracker._trackPageview(fixedLink); | |
| if(console){ | |
| console.log('page tracked: ' + fixedLink); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var eightteensixtyOptions = { | |
| getTileUrl: function(coord, zoom) { | |
| return "/1860/tiles-1860/" + zoom +"/" + coord.x+"/"+coord.y+ ".png"; | |
| }, | |
| tileSize: new google.maps.Size(256, 256), | |
| isPng: true, | |
| maxZoom:14, | |
| minZoom:10, | |
| name:"What", | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sqlite3, os | |
| conn = sqlite3.connect('Mills1860.mbtiles') | |
| results=conn.execute('select * from tiles').fetchall() | |
| for result in results: | |
| zoom, column, row, png= result | |
| try: | |
| os.makedirs('%s/%s/' % (zoom, row)) |
NewerOlder