Tobias Bieniek
17e972de3d
EncodedPolyline: Backported ol3 polyline parser library
...
The ol3 version of the library is more advanced and complete. It can also
parse into flat array. It can handle unsigned integers, signed integers
and floats.
2013-03-20 20:56:47 +01:00
Tim Schaub
bbc73a21d8
Update copyright date
2013-01-07 22:01:16 -05:00
Bart van den Eijnden
193e2696ad
fix undefined variable that breaks Closure ( closes #819 )
2013-01-04 11:11:40 +01:00
Tobias Bieniek
06bd07ff8d
EncodedPolyline: Added write() method
2012-12-28 20:24:57 +01:00
Tobias Bieniek
06409da72e
EncodedPolyline: Added APIMethod keywords to documentation
2012-12-28 19:14:30 +01:00
Tobias Bieniek
510d42b12f
EncodedPolyline: Added encode() method
...
The write() method will follow in the next commit.
2012-12-28 01:31:24 +01:00
Tobias Bieniek
8651e05e75
EncodedPolyline: Allow setting geometryType to "point
2012-12-27 23:19:44 +01:00
Tobias Bieniek
c118d9884d
EncodedPolyline: Extracted universal decode(encoded, dims) method
2012-12-27 23:09:08 +01:00
Tobias Bieniek
2c5d4c75d4
EncodedPolyline: Merged duplicate code in read() method
...
This patch also prepares the code for making it possible to read encoded
strings with multi-dimensional points.
2012-12-27 23:09:08 +01:00
Tobias Bieniek
aedafc0336
EncodedPolyline: Added geometryType attribute
...
This makes it possible to read polygons or multipoints too. Since the
encoded format is just a list of points the reader needs to be told what
Feature to create from the encoded list.
The example code is edited to reflect that API extension.
2012-12-27 23:09:08 +01:00
Tobias Bieniek
63a9567858
Format: Added EncodedPolyline class
...
This class is able to convert an encoded polyline string into a LineString embedded in a Vector Feature.
See https://developers.google.com/maps/documentation/utilities/polylinealgorithm for more information.
2012-12-26 18:25:04 +01:00