My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 320: Flash API - Encoded Polygon
7 people starred this issue and may be notified of changes. Back to list
 
Reported by Guilhem.Vellut, May 15, 2008
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);
0 bytes Download
Comment 1 by pamela.fox, May 15, 2008
Thanks, I've told the team.
Status: Accepted
Labels: Internal-1176446 ApiType-Flash
Comment 2 by pamela.fox, Jun 04, 2008
(No comment was entered for this change.)
Status: FixedNotReleased
Labels: Introduced-1.0 Fixed-1.4
Comment 3 by pamela.fox, Jun 06, 2008
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code