Hi Pamela Was there any progress on LOD-based vertices since July 2009 (with reference to issue 1352)?
Best wishes On Jul 11 2009, 2:40 am, "pamela (Google Employee)" <[email protected]> wrote: > Hi DonD- > > Ah, right. You're correct, encoded polygons do not implement LOD-based > vertices. Please file a bug if you would like to be notified when they > do. It's on our radar. > > - pamela > > > > On Sat, Jul 11, 2009 at 6:40 AM, DonD<[email protected]> wrote: > > > Hi Pamela. Thanks for responding. > > > It looks like the example in the Thematic Mapping article is behaving > > like my code: the polygons render but are not simplified when zooming > > out. Encoded polyline objects change complexity when zooming, as > > expected. But, encoded polygon objects do not seem to change > > complexity, even though they accept an array of polylines. > > > --Don D. > > > On Jul 9, 7:19 am, "pamela (Google Employee)" <[email protected]> > > wrote: > >> Hi DonD- > > >> Encoded polys should work correctly; the Thematic Mapping article uses > >> them to visualize countries. I'm afraid I haven't had time to look at > >> your specific code yet. I will when I have the chance. > > >> - pamela > > >> On Wed, Jul 8, 2009 at 12:03 AM, DonD<[email protected]> wrote: > > >> > I don't want to bug everyone, but I'd like to bring up this topic of > >> > encoded polygons again. Has anyone experienced the problems I discuss > >> > below? Pamela, is this a matter of adding features to encoded > >> > polygons? Is it a bug? Am I doing something wrong? > > >> > Thanks again everybody. > > >> > --D. > > >> > On Jul 1, 1:26 pm, DonD <[email protected]> wrote: > >> >> Hi everyone, > > >> >> I have been trying to wrangle encoded polygons, but to no avail. The > >> >> polygon renders, but it doesn't show/hide points as expected. > > >> >> In my code below, I render an encoded polyline and an encoded polygon > >> >> with the same properties except for the points. If you run the code > >> >> you will see that the polyline (on the right side of the map) > >> >> collapses as expected when zoomed out. But, the polygon never > >> >> collapses even though it shares the same encoded levels. > > >> >> Is this a known issue or am I doing something wrong? I have searched > >> >> all over, but have found no one discussing this problem. Any help is > >> >> appreciated. > > >> >> Thank you. > > >> >> --Don D. > > >> >> ==================== > > >> >> <?xml version="1.0" encoding="utf-8"?> > >> >> <mx:Application > >> >> xmlns:mx = "http://www.adobe.com/2006/mxml" > >> >> xmlns:maps = "com.google.maps.*" > >> >> layout="absolute"> > > >> >> <mx:Script> > >> >> <![CDATA[ > >> >> import com.google.maps.controls.ControlPosition; > >> >> import com.google.maps.controls.NavigationControl; > >> >> import com.google.maps.controls.NavigationControlOptions; > >> >> import com.google.maps.LatLng; > >> >> import com.google.maps.LatLngBounds; > >> >> import com.google.maps.MapOptions; > >> >> import com.google.maps.MapType; > >> >> import com.google.maps.overlays.Polygon; > >> >> import com.google.maps.overlays.Polyline; > >> >> import com.google.maps.overlays.PolylineOptions; > >> >> import com.google.maps.overlays.EncodedPolylineData; > > >> >> private const MAP_API_KEY:String = "YOUR_KEY_HERE"; > > >> >> private const MAP_CENTER:LatLng = new LatLng(0, 0); > > >> >> private function onMapPreinitialize(evt:Event):void { > >> >> this.map.setInitOptions(new MapOptions( > >> >> {zoom: 1, > >> >> center:MAP_CENTER, > >> >> mapType: MapType.NORMAL_MAP_TYPE, > >> >> mapTypes: [MapType.NORMAL_MAP_TYPE] > >> >> } > >> >> )); > >> >> } > > >> >> private function onMapReady(evt:Event):void { > >> >> var bounds:LatLngBounds = map.getLatLngBounds(); > > >> >> // Navigation Control > >> >> var navigationControlOptions:NavigationControlOptions = > >> >> new NavigationControlOptions( > >> >> {position: new ControlPosition > >> >> (ControlPosition.ANCHOR_TOP_RIGHT, 4, 60)}); > > >> >> map.addControl(new NavigationControl > >> >> (navigationControlOptions)); > > >> >> map.enableContinuousZoom(); > >> >> map.enableScrollWheelZoom(); > > >> >> // (10,-30) (10-10) (-10,-10) (-10,-30) (10,-30) > >> >> var polylinePoints:String = "_c`|@~jbvD?_gayB~fayB?? > >> >> ~fayB_gayB?"; > > >> >> // (10,10) (10,30) (-10,30) (-10,10) (10,10) > >> >> var polygonPoints:String = "_c`|@_c`|@?_gayB~fayB?? > >> >> ~fayB_gayB?"; > >> >> var polyLevels:String = "GEEGG"; > > >> >> // Polyline > >> >> map.addOverlay( > >> >> Polyline.fromEncoded(new EncodedPolylineData > >> >> (polylinePoints, 4, polyLevels, 9))); > > >> >> // Polygon > >> >> map.addOverlay(Polygon.fromEncoded( > >> >> [new EncodedPolylineData(polygonPoints, 4, polyLevels, > >> >> 9)])); > >> >> } > >> >> ]]> > >> >> </mx:Script> > > >> >> <maps:Map id="map" key="{MAP_API_KEY}" > >> >> mapevent_mapready = "onMapReady(event)" > >> >> mapevent_mappreinitialize = "onMapPreinitialize(event)" > >> >> width="100%" height="100%"/> > > >> >> </mx:Application> -- 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.
