| Issue 320: | Flash API - Encoded Polygon | |
| 7 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
Creating a polygon from an array of EncodedPolylineData objects does not
seem to work. The trace is :
ReferenceError: Error #1069: Property options not found on
com.google.maps.overlays.EncodedPolylineData and there is no default value.
at com.google.maps.overlays::Polygon$/fromEncoded()
at com.google.maps.core::MapsFactory/createPolygonFromEncoded()
at com.google.maps.wrappers::IMapsFactoryWrapper/createPolygonFromEncoded()
at com.google.maps.overlays::Polygon$/fromEncoded()
...
And here is the code I used :
//Simple square
var encodedPoints:String = "iuowFh{kbM_seK??~reK~reK??_seK";
var encodedLevels:String = "BBBBB";
var encoded: EncodedPolylineData = new EncodedPolylineData(encodedPoints,
32, encodedLevels, 4);
/*Polylines are OK : shown on the map */
var encodedPolyline:Polyline = Polyline.fromEncoded(encoded,
new PolylineOptions());
map.addOverlay(encodedPolyline);
/*Error (see trace above) */
var polygon: Polygon = Polygon.fromEncoded([encoded],
new PolygonOptions());
map.addOverlay(polygon);
|
||||||||||||||||
,
May 15, 2008
Thanks, I've told the team.
Status: Accepted
Labels: Internal-1176446 ApiType-Flash |
|||||||||||||||||
,
Jun 04, 2008
(No comment was entered for this change.)
Status: FixedNotReleased
Labels: Introduced-1.0 Fixed-1.4 |
|||||||||||||||||
,
Jun 06, 2008
(No comment was entered for this change.)
Status: Fixed
|
|||||||||||||||||
|
|
|||||||||||||||||