Add ol.source.GPX

This commit is contained in:
Tom Payne
2014-01-16 19:00:58 +01:00
parent fa89c1c3a3
commit 917b6cda8f
5 changed files with 51 additions and 0 deletions

View File

@@ -285,6 +285,7 @@ describe('ol.format.GPX', function() {
var text =
'<gpx xmlns="http://www.topografix.com/GPX/1/1">' +
' <wpt lat="1" lon="2">' +
' <magvar>11</magvar>' +
' <geoidheight>4</geoidheight>' +
' <name>Name</name>' +
' <cmt>Comment</cmt>' +
@@ -309,6 +310,8 @@ describe('ol.format.GPX', function() {
expect(fs).to.have.length(1);
var f = fs[0];
expect(f).to.be.an(ol.Feature);
expect(f.get('magvar')).to.be(11);
expect(f.get('geoidheight')).to.be(4);
expect(f.get('name')).to.be('Name');
expect(f.get('cmt')).to.be('Comment');
expect(f.get('desc')).to.be('Description');