Quantcast
Viewing latest article 4
Browse Latest Browse All 4

rotate polygon around point in leaflet map

I have an issue, in my leaflet map I've created a triangle from polygon:

var polygon = L.polygon([     [parseFloat(decimal_lat),parseFloat(decimal_lon)],     [parseFloat(decimal_lat) + 1, parseFloat(decimal_lon) - 1],     [parseFloat(decimal_lat) + 1, parseFloat(decimal_lon) + 1] ],           {            color:'green'    });polygon.addTo(map);

and I want to rotate this polygon around Point[decimal_lon, decimal_lat]. But I'm not able to solve it..
I've created DEMO, where I'm rotating polynom the same I want to rotate my triangle (polygon) to show you my problem.


Viewing latest article 4
Browse Latest Browse All 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>