Falke-Design / PMOrtho

Leaflet PMOrtho: Adds Ortho mode (45° steps) to Polyline, Polygon and Rectangle while shift holding
7 stars 2 forks source link

baseAngleOfFirstSegment for polygon #7

Open Mackiavelly opened 3 years ago

Mackiavelly commented 3 years ago

It's a greate plugin but I think need add some small function analog baseAngleOfLastSegment: true for polygons add baseAngleOfFirstSegment: true for create ideal rectangle on screen image

Falke-Design commented 3 years ago

hmmm, I don't know if this is possible but I will try to implement this. (In the next days)

Mackiavelly commented 3 years ago

Are there any advances in this matter?

Falke-Design commented 3 years ago

I've tried a bit around but haven't found a solution that works. I always want to come back to this and try it again, but I don't have enough time right now.

Mackiavelly commented 3 years ago

image Basically, this is necessary for drawing such polygons, with angles of 90 degrees, and you can get this result only when using snapAngle: 90.