Ahh, ok Bummer. I've implemented this MVCArray-sharing technique for measuring lines/polygons on a few different applications. In my opinion, this is one of the big reasons to use MVCArrays, so that related feature(s) can automatically be notified of changes.
Like you said, using two separate MVCArrays should be an easy enough workaround but I'd like to hear if others are using this technique as well. Thanks for the info. Jason On Fri, Apr 15, 2011 at 12:06 AM, Chris Broadfoot <[email protected]> wrote: > Hi Jason, > > The reason for this bug is that polylines and polygons can no longer share > the same MVCArray. This is a new limitation (one might call it a > regression), but easily mitigated in your case. > > Here are a few workarounds: > - Apply the stroke to the polygon. A polygon with two vertices will be > rendered as a line. > - Use two separate MVCArrays > > If you (or others) feel these workarounds aren't sufficient, please let me > know why. > > Chris > > On Thu, Apr 14, 2011 at 12:24 PM, Jason Sanford <[email protected]>wrote: > >> I've got a demo that shows using Google's geometry library to measure >> length/area which doesn't work any more. The geometry for the polygon is >> still good, as the area measurements I'm getting are accurate, but polygon >> is drawn. I'm actually drawing a line and a polygon and the line stops >> drawing after 3 vertices, but continues returning valid length measurements. >> Dropping to v3.3 fixes the issue, but I'm leaving it up in hopes to help >> debug the problem. >> >> http://demos.geojason.info/google-maps-api-v3-geometry-library.php >> >> >> On Wed, Apr 13, 2011 at 4:52 PM, Adam <[email protected]> wrote: >> >>> *Temp fix:* >>> http://maps.google.com/maps/api/js?*v=3.3*&sensor=true >>> >>> *Theory:* >>> Polygons must have a border in 3.4. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Maps JavaScript API v3" 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-js-api-v3?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps JavaScript API v3" 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-js-api-v3?hl=en. >> > > > > -- > http://twitter.com/broady > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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-js-api-v3?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
