Hi Marvin, I never implemented a solution for maintaining aspect ratio in the end.
Best of luck, Gavin *Gavin Harriss* :: Web / Mobile / Software Developer www.gavinharriss.com On 28 February 2018 at 21:35, Marvin <icebea...@gmail.com> wrote: > Hey, > > any chance to get your code? I can't find any solution for keeping the > aspect ratio... > > Thanks. > > Am Donnerstag, 17. November 2011 02:06:14 UTC+1 schrieb Marcelo: >> >> On Nov 16, 3:56 pm, gavin <m...@gavinharriss.com> wrote: >> > >> > I'll open a feature request as advised. >> > >> >> >> It's quicker to do it yourself! :-) >> http://maps.forum.nu/v3/gm_rectangle_preserve_aspect_ratio.html >> >> The trouble is that the Rectangle object does not have a convenient >> event to which to attach the resize function so, for this demo, I put >> it on the mousemove event. This means that, after resizing the >> rectangle, you need to move the mouse over it to restore the aspect >> ratio. >> >> -- >> Marcelo - http://maps.forum.nu >> -- >> >> Previous post removed as it had the wrong URL. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Maps JavaScript API v3" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/google-maps-js-api-v3/YaZq7fgdr3E/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > google-maps-js-api-v3+unsubscr...@googlegroups.com. > To post to this group, send email to google-maps-js-api-v3@ > googlegroups.com. > Visit this group at https://groups.google.com/group/google-maps-js-api-v3. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.