How to transform coordinates map to point canvas?
I have a map leaflet Map leaflet and when i select polygon, i want to draw the polygon with canvas html5
I have coordinates like this :
[[2.809510437833253,49.408625488749216],[2.8095461924850422,49.40864172401838],[2.8095226856172806,49.40866595550704],[2.809565304449213,49.40868849340382],[2.8097185865450465,49.40858536874469],[2.809677338568488,49.40856463072128],[2.8096442193374154,49.408580757620854],[2.809609885351463,49.40855283978645],[2.809510437833253,49.408625488749216]]
The difficulty is how to get points from map coordinates
This example to display polygon canvas :
<!DOCTYPE html>
<html>
<body>
<svg height="110" width="200">
<polygon points="130,0 0,160 0,485 270,645 560,485 560,160"/>
</svg>
</body>
</html>
Thanks for your help.