- Round bounds size. (by @perliedman) #4377
- Workaround for flyTo bug (by @hyperknot) #4376
- Make sure bounds are bounds before testing its validity in fitBounds (by @yohanboniface) #4375
- Remove use of ES5 function (map). Close #4362. (by @perliedman) #4373
- Switch prosthetic-hand to 1.3.0 and use onStop callback (by @IvanSanchez) #4372
- Make L.Control.Layers.collapse/expand public methods (by @yohanboniface) #4370
- Use mean earth radius for distance calculation in L.CRS.Earth. (by [@perliedman](https://github.com/perli
This file contains 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 request = require("request"), | |
mapnik = require('mapnik'), | |
zlib = require('zlib'); | |
request({ | |
uri: "http://vector.mapzen.com/osm/all/17/66388/45097.mvt", | |
// uri: "http://carto.data.gouv.fr/vector/all/17/66386/45096.mvt", | |
encoding: null | |
}, function(error, resp, body) { | |
var info, compression; |
This file contains 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
— HOT | |
* Building digitizing | |
building => yes | |
source => … | |
note => … | |
* Building features | |
building | |
building:levels | |
building:material | |
building:roof |
This file contains 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
# -*- coding: utf-8 -*- | |
import pytest | |
def smart_struncate(s, length=100, suffix='…'): | |
# Be smart here. | |
return s | |
@pytest.mark.parametrize('given,expected,length,suffix', [ | |
[u'Ceci est une longue phrase qui pourrait éventuellement servir de titre à billet de blog mais est vraiment beaucoup trop longue', # noqa | |
u'Ceci est une longue phrase qui pourrait éventuellement servir de titre à billet de blog mais est…', None, None], # noqa |
This file contains 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
/* globals exports */ | |
exports.LocalConfig = function (localizer, project) { | |
localizer.where('Layer').if({'Datasource.type': 'postgis'}).then({ | |
'Datasource.dbname': 'idf', | |
'Datasource.password': '', | |
'Datasource.user': 'ybon', | |
'Datasource.host': '' | |
}); | |
localizer.where('Layer').if({id: 'ne_places'}).then({'Datasource.file': '/home/ybon/Code/maps/osm-bright/osm-bright/data/ne_places/10m-populated-places-simple.shp'}); | |
}; |
This file contains 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
{ | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"rules": { | |
"quotes": "single", | |
"indent": [2, 2] | |
} | |
} |
This file contains 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 csv | |
import json | |
import time | |
from addok.import_utils import FIELDS | |
def main(filepath, destination, limit=None): | |
print('Processing', filepath) |
This file has been truncated, but you can view the full file.
This file contains 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
5 Aa | |
2 AA/13 | |
1 Aade | |
1 Aaison | |
1 Aalmatt | |
24 Aalto | |
1 Aaouats | |
4 Aar | |
5 Aaro | |
133 Aaron |
This file contains 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
exports.LocalConfig = function (localizer, project) { | |
var country = 'burundi', | |
centers = { | |
hispaniola: [-71.7325, 19.1075, 9], | |
burundi: [29.9377, -3.4216, 9], | |
sierraleone: [-13.2366965, 8.4732210, 9], | |
chad: [16.56874, 8.68063, 9], | |
mauritania: [-11.558, 19.725, 9] | |
}; | |
project.mml.compareUrl = "http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png"; |
This file contains 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
{ | |
"cache": { | |
"name": "Disk", | |
"path": "/var/cache/stache" | |
}, | |
"layers": { | |
"hdm": { | |
"provider": { | |
"name": "mapnik", | |
"mapfile": "/home/ybon/src/hdm/hdm/mapnik.xml", |