Hello!

Using: map_flex_1_20.swc

I have a suggestion to increace accuracy class in encoding algorythm
for EncodedPolylineData.

For now it is 1e5 :

"The steps for encoding such a signed value are specified below.
   1. Take the initial signed value:
      -179.9832104
   2. Take the decimal value and multiply it by 1e5, rounding the
result:
      -17998321 "

its not very nice for me. i need accuracy class minimum 1e8
i'v tried to do it manually by "EncoderPolyline Class":

lat_e5 = Math.round(point.lat() * 1e8);
lng_e5 = Math.round(point.lng() * 1e8);

i got longer encoded string of couse. no problem. but when i'm trying
to decode it  - i have nothing.

here is my result for 1e8:

Encoded: "傩mbf...@pag@p}sirkj_bb...@knthrkqnab"

From: (61.23792437046245, 73.45081911039348),(61.237719163121305,
73.45071182203289),(61.23778369387606, 73.45020488452907),
(61.237988900796154, 73.45031485509868),(61.23792437046245,
73.45081911039348)

pls refer any ideas how to decode it and make it works?

for "google maps" developers i suggest to include new parameter in
"EncodedPolylineData" and call it like "accuracy class"
for example:
PG3_arr[i] = Polygon.fromEncoded(
                                                [
                                                        new 
EncodedPolylineData(PG3_points[i], NEW_PARAMETER, 2,
PG3_levels[i], 18)
                                                ]
                                        );

where NEW_PARAMETER is number 1-15

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to