Google Maps API rotate Rectangle
问题 I have an application which draws an array of rectangle on Google Maps using JavaScript API version 3. This works, but what I would like to do is rotate or skew each Rectangle based on user input. Is the Rectangle object limited to horizontal/ vertical lines? The API only takes two corner points as location so I don't see any way to rotate this type of shape. Do I in fact have to change the shape type to Polygon ? 回答1: Do I in fact have to change the shape type to Polygon? Yes since google