Make the scale factor of ol.format.Polyline configurable

And export the class
This commit is contained in:
Frederic Junod
2014-05-16 10:00:21 +02:00
parent 0245cb1d56
commit a283977cb9
3 changed files with 101 additions and 64 deletions

View File

@@ -34,27 +34,6 @@ describe('ol.format.Polyline', function() {
beforeEach(resetTestingData);
describe('encodeFlatCoordinates', function() {
it('returns expected value', function() {
var encodeFlatCoordinates = ol.format.Polyline.encodeFlatCoordinates;
// from the "Encoded Polyline Algorithm Format" page at Google
expect(encodeFlatCoordinates(flatPoints)).to.eql(encodedFlatPoints);
});
});
describe('decodeFlatCoordinates', function() {
it('returns expected value', function() {
var decodeFlatCoordinates = ol.format.Polyline.decodeFlatCoordinates;
// from the "Encoded Polyline Algorithm Format" page at Google
expect(decodeFlatCoordinates(encodedFlatPoints)).to.eql(flatPoints);
});
});
describe('encodeDeltas', function() {
it('returns expected value', function() {
var encodeDeltas = ol.format.Polyline.encodeDeltas;