EncodedPolyline: Added encode() method

The write() method will follow in the next commit.
This commit is contained in:
Tobias Bieniek
2012-12-28 01:31:24 +01:00
parent 8651e05e75
commit 510d42b12f
2 changed files with 83 additions and 0 deletions
+8
View File
@@ -91,6 +91,14 @@
}
}
function test_Format_EncodedPolyline_encode(t) {
t.plan(1);
var format = new OpenLayers.Format.EncodedPolyline();
t.eq(format.encode(basePoints, 2), encoded);
}
</script>
</head>
<body>